On 27 January 2004 05:18, Shawn McKenzie wrote:
> >
> > PS I'm on my windows apache server but the forward slash seems to
> > work in php & that keeps it portable. I tried it both ways.
Yes -- PHP internally translates between / and \ on Windows, precisely for portability
reasons. Thus, you ca
On 27 January 2004 05:50, Paul Furman wrote:
> Shawn McKenzie wrote:
> > I've noticed in both of your posts that you aren't terminating the
> > line before the include with a ;
>
> Yup, thanks!
>
> Then I fixed my global problem without bugging you guys too.
Actually, no you didn't -- you just
Hi Paul,
Quoting Paul Furman <[EMAIL PROTECTED]>:
> $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
Shawn McKenzie wrote:
I've noticed in both of your posts that you aren't terminating the line
before the include with a ;
Yup, thanks!
Then I fixed my global problem without bugging you guys too.
Final result:
#call.php
$dirstr= "./";
include 'scandir.php';
scandir('$dirstr');
#scandir.php
I've noticed in both of your posts that you aren't terminating the line
before the include with a ;
That would probably help.
FYI... If you use / then you don't have to escape it like // only the \.
Also, instead of ".\\" you can use '.\'
-Shawn
"Paul Furman" <[EMAIL PROTECTED]> wrote in messa
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= "./"
David Obrien wrote:
the \ has to be slashed
".\\";
Ah great, thanks! that fixes most of the errors. The following runs
where I define the $dirstr in the function but if I try to define it in
the page that calls the function, it still gives
Parse error, unexpected T_INCLUDE in [#call]
#call
the \ has to be slashed
".\\";
-Dave
At 11:27 PM 1/26/2004, Paul Furman wrote:
I'm new so probably missing something easy or doing something terribly
wrong but I have spent a lot of time experimenting...
parse error, unexpected T_INCLUDE in [the above file]
if I comment out the
$dirstr= ".
8 matches
Mail list logo