-
ok, basic PHP tutorial:
when using include or require functions, if you do something like this:
Code:
include('$header');
it looks for the file name $header; however, if you do this:
it then includes the file that is assigned to the variable $header.
Hope this helps.
-
-
Didn't see testingsites post.
-
-
Nile, I just realized that your "signature" confused me - I thought it was the answer to my question so I tried to apply it to my code -- sorry, you must have wondered what the heck I was doing.
TTS, I understand that the quotes turn it into a literal. I am just curious that the result seems to be bad syntax because when the variable is replaced, you end up with:
Code:
include(filename.php);
instead of:
Code:
include('filename.php');
I thought using the quotes around filename.php was proper syntax. But I'm not sure.
Thanks, erin
Last edited by kuau; 02-04-2008 at 05:42 AM.
Reason: left stuff out
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks