Forum Moderators: coopster
Thanks,
Matthew
You can use the function virtual [de2.php.net]().
virtual() is an Apache-specific function which is equivalent to <!--#include virtual...--> in mod_include. It performs an Apache sub-request. It is useful for including CGI scripts or .shtml files, or anything else that you would parse through Apache...
NN
I simply MUST learn PHP soon. The more I read about it the more I'm amazed!
The error page I mentioned in my first post is printed like this:
function display_errors($errors){
$errors = '<li>' . join('<li>', $errors);
print <<<EOF
<html> ... </html>
EOF;
}
How would I use either the virtual() or the exec/system and echo method in this scenario?
And do you know a good PHP resource for a complete know-nothing? I know HTML and CSS pretty well, but absolutely no scripting. So a good beginners book on PHP would be a good thing for me to have.
Thanks,
Matthew
$footer = implode('',file('http://www.yourdomain.com/footer.cgi?your=arg'));
Would do what you are looking for quickly and easily. BUT it is not to pretty.
Find the right place in the form processor to print $footer and $header and that's all there will be to it.
Good online tutorial - [php.net...]
I suggest your first project would be to write header and footer replacements ;) Shouldn't be hard at all.
Good luck.
If that's not enough for you, you can find a ton of turials here:
[devarticles.com...]
I also highly recommend that you download the CHM help from PHP.net. It's your best friend when coding PHP, I use it every day. Grab it here:
[php.net...]
And now start coding :)