Parse errors: path?

From: Date: Tue, 03 Sep 2002 16:59:05 +0000
Subject: Parse errors: path?
Groups: php.general 
Request: Send a blank email to php-general+get-115052@lists.php.net to get a copy of this message
I'm getting a parse error with this PHP statement: <?php $path = '/usr/local/plesk/apache/vhosts/.../httpdocs/thumbnails/'; $dir = opendir($path) or die("Could not open $dir"); while ($file = readdir($dir)){ if (stristr($file, 'jpg') || stristr($file, 'jpeg')){ echo "<A HREF=/enlargements/$file>$file</A><BR>\n"; } } ?> The browser is showing me the following error though, with a changed path: Parse error: parse error in /usr/local/psa/home/vhosts/.../httpdocs/fashion.php on line 144 That's the only PHP in the entire page, so the error has to be in there somewhere. My webhost mapped/aliased my old path to a new directory when they upgraded my server. Does anyone see any errors in the PHP, or should I be troubleshooting the path info??? Wm

« previous php.general (#115052) next »