Home > Archive > PHP Language > March 2004 > fOpen?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Vik Rubenfeld 2004-03-26, 11:12 pm |
| I'm trying to open a local HTML file. When I run this code:
$filename = '/Library/WebServer/Documents/PT_Test_Site/Results.html';
fOpen($filename, "r");
....I get a blank screen. How can I fix this? Thanks in advance for any
info.
-Vik
| |
| Jedi121 2004-03-26, 11:12 pm |
| Vik Rubenfeld a écrit le 22/03/2004 :
> I'm trying to open a local HTML file. When I run this code:
>
> $filename = '/Library/WebServer/Documents/PT_Test_Site/Results.html';
> fOpen($filename, "r");
>
> ...I get a blank screen. How can I fix this? Thanks in advance for any
> info.
>
> -Vik
fopen() returns a file handle it does not render the page, so it is
normal behaviour.
See manual for more about this function : http://www.php.net/fopen
Tell us what you want to do so we can help.
If you want to redirect try this :
<?php header("Location: $filename"); ?>
| |
| Vik Rubenfeld 2004-03-26, 11:13 pm |
| Thanks. That worked.
-Vik
> If you want to redirect try this :
>
> <?php header("Location: $filename"); ?>
|
|
|
|
|