PDA

View Full Version : Someone with PHP knowledge please help...


winnipages
09-20-2004, 08:10 PM
Hello, I have recently jumped into php and redesigend my entire site with it.

The question I have is fairly simple:

How do I use server side includes with PHP? I am familiar with the .shtml extension for it's use, but I have no clue as to wether or not I can do the same with the php extension.

Someone please help me on this, would be greatly appreciated, and save soooooo much work!

winnipages
09-22-2004, 01:03 AM
* bump

If anyone could give me a hand it would really help!

webado
09-22-2004, 01:28 AM
You can use the following:


include ('filename.php');


where filename.php is some other php file that has commands or whatever you need.

http://ca3.php.net/manual/en/function.include.php

robinev
09-22-2004, 01:30 AM
This search (http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=php+includes) returns as its second entry PHP Include Tutorial (http://www.php-include.com/) which should answer your questions. The first entry in the search results is the official PHP manual page (http://us4.php.net/include/) on includes.

Search engines are wonderful things, eh?

winnipages
09-22-2004, 02:56 PM
Thanks to you both.

Yes search engines are great, but when you dont know what you're looking for (sometimes as simple as it is!).....

Anyways, I appreciate the help and thank you both again!

webado
11-19-2007, 03:09 AM
Old thread.