start ranting 

Frankly, it bugs the heck out of me that PHP searches through a string literal
for variables. That is D-U-M dumb! Literals should be literals. Period.

stop ranting

In my opinion, you should *never* put a variable in double quotes and expect it
to be interpreted as a variable. In anycase, it will screw you up when trying to
do that with C,C++,Java, etc.

So:

"../folder/navfile_$variableA_$variableB.inc"

should be

"../folder/navfile_".$variableA."_".$variableB.inc

Longer, yes, more typing, yes, but you can clearly see what is a string and what
is a variable.

Incidently, that is probably the only thing I dislike about PHP -- but I
*really* dislike it. Really.

whew. I got all energized from that one.

Ryan


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

Reply via email to