View Full Version : Activating a Variable

Hyp3r grunt
11-05-2007, 11: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.

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

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