[PHP] Re: Parse errors: path?

2002-09-03 Thread nicos

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/ABR\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




[PHP] Re: Parse errors: path?

2002-09-03 Thread Wm

Sorry, I was just snipping part of the path to make it shorter.  The ...
is an abbreviation and isn't really in there, in either the code or the
parse error.  Sounds like the problem must be with the path then.

Wm

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 I get no error with that syntax, thats pretty strange, btw why are you
 putting ... into your directory? You shouldn't.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php