Out of curiosity, try
?php
global $root;
$blah=include\blah.php;
include_once $blah;
?
see if it behaves differently (i.e., no parens around the
include file name).
-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
I did as you suggest with an interesting result:
include_once blah.php;
worked
var $blah=blah.php;
include_once $blah;
gave the following error:
Parse error: parse error in including file on line line number
Where the including file is the file that was doing the include!
Previously
: Re: [PHP] include_once(blah); vs $blah=blah;
include($blah);
I did as you suggest with an interesting result:
include_once blah.php;
worked
var $blah=blah.php;
include_once $blah;
gave the following error:
Parse error: parse error in including file on line
line number
Where
9:11 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] include_once(blah); vs $blah=blah;
include($blah);
I did as you suggest with an interesting result:
include_once blah.php;
worked
var $blah=blah.php;
include_once $blah;
gave the following error:
Parse error: par
comment.
-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:45 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] include_once(blah); vs $blah=blah;
include($blah);
No, the line number is just of the line in the
includING file of the
include_once
] include_once(blah); vs $blah=blah;
include($blah);
I did as you suggest with an interesting result:
include_once blah.php;
worked
var $blah=blah.php;
include_once $blah;
gave the following error:
Parse error: parse error in including file on line line number
Where the including file
Message -
From: Martin Towell [EMAIL PROTECTED]
To: 'Henry' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 4:31 PM
Subject: RE: [PHP] include_once(blah); vs $blah=blah; include($blah);
if that's a direct copy of what you've got, then the parse error's
probably
to do with the var
7 matches
Mail list logo