Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers!
/Peo, FreeWebSpace.net
I was wondering if there is a way to use php to put a header on a website so I dont have to edit every page everytime I add a new page. I just edit a text file.
If there is a script already out there where can I find it?
PHP outputs the HTML so the browser basically understands HTML... So if the code ur php script generates is compatabile with the browsers it would work fine.
For example if ur php file outputs some IE supported stuff.. then it wont work in NS
the virtual function passes the file you are calling through apache first, adds it to the page, then passes through apache again, so it is inherently slower than include and require (the fastest). virtual is used for incluing cgi or perl scripts' output into the page.
you can use .htaccess and configure your files to be included sitewide without changing actual files themselves as if the include() function has been used
php_value auto_prepend_file "/full_path_blah-blah/header.php3"
the same with auto_append_file "" would be parsed after the main file.
I don't know how to use .htaccess... I just recently got hold of a unix shell acount to teach myself unix and it came with webspace. If you could point me to a good place to learn about .htaccess, I would be happy. I have wanted to learn and I cant find any good places...
At least my question helped someone besides me. Glad it helped... Thanx guys for helping me as well... require is very handy... i am using it for more then headers and footers now...