I might be incorrect, but i think there's supposed to be a semicolon at the
line:
$dir="./"
it should read as
$dir="./";
cheers! =)
> ----- Original Message -----
> From: "Paul Furman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 27, 2004 1:10 PM
> Subject: Re: [PHP] unexpected include parse error
>
>
> > Paul Furman wrote:
> > >
> > > PS I'm on my windows apache server but the forward slash seems to work
> >
> >
> >
> > OK actually, it was the back slash that was causing problems, it only
> > works with a forward slash!
> >
> > but... I've still got the include error:
> >
> > ???
> >
> >
> > Parse error, unexpected T_INCLUDE
> >
> >
> > #call
> > $dirstr= "./"
> > include 'scandir.php';#### error here ####
> > scandir('$dirstr');
> >
> >
> >
> > #function
> > function scandir($dirstr) {
> > $files = array();
> > $fh = opendir($dirstr);
> > while (false !== ($filename = readdir($fh))) {
> > array_push($files, $filename);
> > }
> > closedir($fh);
> > return $files;
> > }
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php