PHP development
Store file path in variables
Posted by namibnat • 6/01/09 • Subscribe to this Discussion [RSS]
Topics: include, php, variables
Hello,
Can anyone tell me if it is posible to store file paths in a variable in order to call a page or section of a page dynamically.
Something like this:
$thevariable = '/path/path/path/$nameoffile.php';
include $thevariable;
I have been working on this for ages and it works fine on my computer, but when I upload it to the server, I can't get it to work. Any ideas what I could be doing wrong?
Add Your Comment
Login to leave a message.

