php

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
mtbiking
-


Joined: 18 Mar 2004
Posts: 66

PostPosted: Sat Sep 11, 2004 12:23 am    Post subject: php Reply with quote

how can i get a php file to open an html file i have this so far but it isn't working

Code:
<?php
$path = 'C:\Program Files\Abyss Web Server\htdocs\';
$file = $_SERVER["QUERY_STRING"];
if(is_dir($path))
{
$data = fopen("$path/$file.html","r");
fclose($data);
}
else
{
$self = $_SERVER["PHP_SELF"];
$host = $_SERVER["HTTP_HOST"];
mkdir($path);
header("Location: <http://$host$self?$file>");
}
?>
Back to top View user's profile Send private message
k1ll3rdr4g0n
-


Joined: 04 Jul 2004
Posts: 609

PostPosted: Sat Sep 11, 2004 12:33 am    Post subject: Reply with quote

try changing path to something like 127.0.0.1/ or 192.168.1.xxx/ or.....i think you get the idea.
_________________
Back to top View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group