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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to