...

View Full Version : Activating a Variable



Hyp3r grunt
11-05-2007, 10:05 PM
How to be a make a variable 'happen'? Here's the problem:


<?php include('./$language'); ?>

The variable is specified in a page called 'above.inc' which is included into the page that I have the above code on. Why does it choose to include '$language' and not the properties of the actual variable? I know that the echo function activates variables but I couldn't think of a way to use that to include the 'language' variable.

aedrin
11-05-2007, 10:08 PM
Single quoted strings are not parsed in PHP, double quoted strings are.


<?php include("./$language"); ?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum