I'd do something like this:

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

to work around that particular problem.

-----Original Message-----
From: Wade Preston Shearer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 14:22
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