Opening up a generic text file

From: Date: Thu, 28 Mar 2002 10:05:33 +0000
Subject: Opening up a generic text file
Groups: php.general 
Request: Send a blank email to php-general+get-90497@lists.php.net to get a copy of this message
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

« previous php.general (#90497) next »