View Full Version : include command in php?
Hobbes
February 2nd, 2001, 19:03
I'm not sure if you can use SSI calls on a php3 page, so how do you include a file (in my case text, when included on the webpage it displays pretty HTML lol) with php code? Thanks.
Sick N Twisted
February 2nd, 2001, 19:24
<?php include ("PATH"); ?>
Woofcat
February 2nd, 2001, 19:27
For maximum efficiency -
If the file you're including contains PHP code:
require('file.inc');
If the file you're including contains Perl code:
virtual('file.inc');
If the file you're including is text/html only:
readfile('file.inc');
Nick
February 2nd, 2001, 21:36
What's the fastest one to use that works out the http root?
Hobbes
February 2nd, 2001, 23:05
Thank you Woofcat *S*
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.