PDA

View Full Version : Includes



megacool
December 4th, 2000, 10:05
How to include a PHP script from another PHTML page. Further more can i include a PHP script using SSI? I need this info badly.

razor
December 4th, 2000, 15:06
use
include("/path/to/full/dir/scriptname.phtml");

ashben
December 5th, 2000, 05:31
What if the file to be included is not in the web directory (www) but a level down in the root?

Koolguy
December 5th, 2000, 16:21
<?include("http://www.whatever.com/blah/include.inc");?>

megacool
December 12th, 2000, 05:47
can u include a file on some other domain/server..? naaah .. i guess not.. but tell me if i am wrong.

razor
December 12th, 2000, 06:00
probably, if u use the http:// stuff.