Re: unexpected include parse error
| From: | R'twick Niceorgaw | Date: | Tue, 27 Jan 2004 06:08:43 +0000 |
| Subject: | Re: unexpected include parse error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175857@lists.php.net to get a copy of this message | ||
Hi Paul,
Quoting Paul Furman <paul@edgehill.net>:
> <?php
> $dirstr= "./"
probably because you are missing a ; at the end?
> include 'scandir.php';
> scandir('$dirstr');
you should also change this to
scandir($dirstr);
> ?>
>
> parse error, unexpected T_INCLUDE in [the above file]
>
> if I comment out the
> $dirstr= "./"
> above that error goes away and the scandir.php include runs (that's a
> php5 function that needs to be defined manually in PHP 4.3.4)
>
>
HTH
R'twick
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.