Re: readdir behavior I cannot understand

From: Date: Mon, 20 Sep 2004 06:51:25 +0000
Subject: Re: readdir behavior I cannot understand
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197249@lists.php.net to get a copy of this message
On Monday 20 September 2004 11:44, Jason FB wrote: > Hereis my script, I copied and pasted Example 1 from this page: > > http://us4.php.net/manual/en/function.readdir.php > > > You will see that the only way that I changed I initialize two > variables at the very top that set the directory of the directory to > open. The script should read the contents of the directory and print > them to the resulting page. > > Instead, it returns a the following parse error > > Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in > /Users/jason/Sites/images_exotic/REDESIGN2 FALL > 04/admin/check_set_local.php on line 4 If you did literally copy and pasted the code from the manual then that's probably what's causing the problem. Sometimes c & p from say a browser can introduce spurious characters into your code (usually the TAB character I think). Try *typing* in the code. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* If the master dies and the disciple grieves, the lives of both have been wasted. */

« previous php.general (#197249) next »