Hi, I get no error with that syntax, thats pretty strange, btw why are you putting "..." into your directory? You shouldn't.
-- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet "Wm" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] > 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 > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php