fopen
| From: | Ben Lovatt | Date: | Thu, 22 May 2003 07:53:14 +0000 |
| Subject: | fopen | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148524@lists.php.net to get a copy of this message | ||
Hiya
I was just learning PHP and was trying to get the fopen command to
work but I can only open files that are online. How can I set it to open stuff
on the computer? So far I've got a form (index.html) with a file(name file) and
a tickbox(named status) input type. Which leads to open.php. Which has:
$myFile = fopen ("$file", "$status","1");
When I try to open from the computer it says it can't be found online
e.g: fopen("C:\test.txt", "r") - No such file or directory
/home/bennyboy/public_html/open/open.php on line 12.
Hope you can help
Benny