Re: unexpected include parse error
| From: | Paul Furman | Date: | Tue, 27 Jan 2004 05:10:25 +0000 |
| Subject: | Re: unexpected include parse error | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175848@lists.php.net to get a copy of this message | ||
Paul Furman wrote:
PS I'm on my windows apache server but the forward slash seems to workOK 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;
}