Re: Parse errors: path?
| From: | nicos@php.net | Date: | Tue, 03 Sep 2002 17:34:02 +0000 |
| Subject: | Re: Parse errors: path? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115055@lists.php.net to get a copy of this message | ||
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
nicos@php.net
www.WorldAKT.com - Hébergement de sites Internet
"Wm" <luvs2shoot@hotmail.com> a écrit dans le message de news:
20020903165905.7851.qmail@pb1.pair.com...
> 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
>
>
>
>
>