|
Posted by Richard Davey on 03/30/05 04:50
Hello Marquez,
Wednesday, March 30, 2005, 2:41:15 AM, you wrote:
MD> Does anyone know how to include a variable page? The variable is a page
MD> name. Such as "inluded_file.html"
MD> Include ('../includes/$include');
MD> Does not seem to work.
You cannot use variables inside single quotes. Try this:
include "../includes/$include";
Same goes for anything in PHP, i.e.:
$test = "apple";
$word1 = "eat the $test";
$word2 = 'eat the $test';
Try this and see the difference the quotes make.
Best regards,
Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I do not fear computers. I fear the lack of them." - Isaac Asimov
[Back to original message]
|