[PHP] File read Parser error
Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt $toread = fopen($filename, 'r'); $contents = fread($toread, filesize($filename)); fclose($toread); echo $contents; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] File read Parser error
On 30-Aug-2001 Gary wrote: Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt ^ semi-colon ? $toread = fopen($filename, 'r'); $contents = fread($toread, filesize($filename)); fclose($toread); echo $contents; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] File read Parser error
geez, time to call it a day! Thanks Gary Don Read wrote: On 30-Aug-2001 Gary wrote: Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt ^ semi-colon ? $toread = fopen($filename, 'r'); $contents = fread($toread, filesize($filename)); fclose($toread); echo $contents; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] File read Parser error
Gary wrote: Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt $toread = fopen($filename, 'r'); $contents = fread($toread, filesize($filename)); fclose($toread); echo $contents; ? It would be useful if you would point out which error it is you are encountering. / franklin -- Franklin van Velthuizen [EMAIL PROTECTED]+46-(0)70-6786613 Ebiris Applications AB http://www.ebiris.se/ +46-(0)19-109917 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] File read Parser error
At 11:53 PM 8/30/01 +0200, you wrote: Gary wrote: Can someone tell me why I am getting an error for the second line below. It works locally but not live. ?php $filename = www/name/test/free.txt $toread = fopen($filename, 'r'); $contents = fread($toread, filesize($filename)); fclose($toread); echo $contents; ? It would be useful if you would point out which error it is you are encountering. my guess would be that you need a semicolon on the first line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]