Forum Moderators: coopster
Basically I get a problem when using an include like this:
include("<?=$CFG->wwwroot?>/index.php");
I also have a problem when using <?=$CFG->wwwroot?> as a link. When in the browser the link displayes the <?=$CFG->wwwroot?> instead of what the variable is, which is my root folder.
Can anyone shed any light on this?
Thanks :)
But, in your original post you had: include("<?=$CFG->wwwroot?>/index.php");
Question: At the point where you have this line in your code, you are already "in" PHP; Right? So why do you have the <?= and?> tags again? Have you tried simply removing those?
$foo = $bar->bar2;
include($foo /foobar.php);
I'm more than a little baffled by the open and close tags in it, too.
ps:
What is the error you get -- is it a parse problem, or an empty vaeriable, or something else?
It doesnt display an actual error. For example in the include - when displayed in my browser it will show the variable and not what I assigned to the variable. Also when using that variable, when its doing something either than an include it will show the php text in my browser.
I am using a tutorial called mymarket to do my site.
Thanks. :)