Re: Opening up a generic text file
| From: | Ron | Date: | Thu, 28 Mar 2002 10:24:18 +0000 |
| Subject: | Re: Opening up a generic text file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90498@lists.php.net to get a copy of this message | ||
Figured it out on a windows platform you have implicitly specify the path
"c:\
"Ron" <allenr@fwd.areur.army.mil> wrote in message
news:20020328095831.97061.qmail@pb1.pair.com...
> I want to open up a generic text file from the same server that my www is
> on.
>
> $file= fopen("The full URL/finance/daily.txt","r");
> $rf=fread($file,100);
> $new=substr ($rf,0);
> fclose($file);
> echo ("<center>$new</center>");
> ?>
>
> I keep on getting errors.......any suggestions on how I can do this???
>
> Warning: fopen("**********", "r") - Invalid argument in
> *:\*****\*****\daily.php on line 4
>
> Warning: Supplied argument is not a valid File-Handle resource in
> *:\*****\*****\daily.php on line 5
>
> Warning: Supplied argument is not a valid File-Handle resource in
> *:\*****\*****\daily.php on line 7
>
>
>