why don't you try
<?php include("../folder/navfile_".$variableA."_".$variableB.".inc"); ?>

instead? The reason is that the _ usually denotes a session variable.  like
_SESSION or _FILE_ or something like that.
Tim Blalock
[EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Wade Preston Shearer
Sent: Tuesday, March 11, 2003 2:22 PM
To: BYU UUG Post
Subject: [uug] break symbol


when embedding a PHP variable within a set of PHP code, such...

        <?php include("../folder/navfile_$variableA_$variableB.inc"); ?>


...i am running into problems. it thinks that the underscore after
"variableA" is part of "variableA" and then throwing it out because it
doesn't recognize it.

i have tried replacing the underscores with periods and dashes and it
works, so know that it is simply a problem of PHP thinking that the
underscore is part of the variable.

so... is there some sort of a "break" character that i need to use to
tell it where the variable name ends?

...or is it just not good to use underscores and variables next to each
other like that?

-wade preston


____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list


____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://phantom.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to