Fw: [PHP] unexpected include parse error

From: Date: Tue, 27 Jan 2004 05:16:39 +0000
Subject: Fw: [PHP] unexpected include parse error
Groups: php.general 
Request: Send a blank email to php-general+get-175850@lists.php.net to get a copy of this message
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" <paul@edgehill.net> > To: <php-general@lists.php.net> > 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 > > > > > >

« previous php.general (#175850) next »