I'm also a novice at this. but, let me give it shot.
I've configured Perl scripts before...or installed them (which sometimes is a BIG task)
I've been in to PHP less than a week.
but I'm pretty sure that the functions:
Code:
require($whateverfile) - takes information from $whateverfile
if needed.
include($whateverfile) - takes the entire $whateverfile and
displays the file as it would be called seperately and integrate
that particular file with the file you are calling from.
(i.e. - say if you have a file named "forum.php" and in this
particular file, you use the include() function to call another
file named "header.php", i.e. include(header.php), it would
display the content of header.php in forum.php.)
require() - i'm guessing that you already know what variables
are.
(i.e. you might use the require function if you are creating
a .php file that you might want to use some variables in, but
you don't want to define them in this particular page because
you've already defined them in another page, and it will
gather the variables and such things from the $whateverfile.)
I can probably try and give some better examples if you still don't understand.
since I don't understand this stuff all that well, myself..I would apreciate it if some can tell me if I'm right
or wrong
...either way I'd like to know.
Thanks!
Bookmarks