View previous topic :: View next topic |
Author |
Message |
mtbiking -
Joined: 18 Mar 2004 Posts: 66
|
Posted: Sat Sep 11, 2004 12:23 am Post subject: php |
|
|
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 |
|
 |
k1ll3rdr4g0n -
Joined: 04 Jul 2004 Posts: 609
|
Posted: Sat Sep 11, 2004 12:33 am Post subject: |
|
|
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 |
|
 |
|