B basscleff New Member ★ 15 ★ Impact 0 Dec 6, 2007 920 views 5 replies #1 anyone lend a hand combining 2 different php pages into 1? basically, put a word cloud script inside another page's php header and footer. it's beyond my abilities. thx
anyone lend a hand combining 2 different php pages into 1? basically, put a word cloud script inside another page's php header and footer. it's beyond my abilities. thx
weblord Top Member VIP ★ 15 ★ Impact 816 Dec 6, 2007 #3 either use this or the other: whichever your server permits Code: <?php echo file_get_contents("http://otherdomain.com/other.php"); ?> or Code: <?php include 'http://otherdomain.com/other.php'; ?>
either use this or the other: whichever your server permits Code: <?php echo file_get_contents("http://otherdomain.com/other.php"); ?> or Code: <?php include 'http://otherdomain.com/other.php'; ?>
nick-8318 Established Member ★ 20 ★ Impact 23 Dec 6, 2007 #4 template.php Code: <html> <head> <title><?php echo $title; ?> </head> <body> <?php echo $body; ?> <br><?php echo $footer; ?> </body> </html> index.php PHP: <?php $title = "index page"; $body = "body text"; $footer = "footer © 2005"; include("template.php"); ?> there would be a security problem, but shudnt be a problem atm
template.php Code: <html> <head> <title><?php echo $title; ?> </head> <body> <?php echo $body; ?> <br><?php echo $footer; ?> </body> </html> index.php PHP: <?php $title = "index page"; $body = "body text"; $footer = "footer © 2005"; include("template.php"); ?> there would be a security problem, but shudnt be a problem atm
Peter VIP Member VIP ★ 20 ★ Impact 209 Dec 6, 2007 #5 weblord that is not necessarily the bet thing to do. It is not taking into consideration the possibility of conflicting variables etc. The best would be as suggested, post the code and we can then go from there.
weblord that is not necessarily the bet thing to do. It is not taking into consideration the possibility of conflicting variables etc. The best would be as suggested, post the code and we can then go from there.
weblord Top Member VIP ★ 15 ★ Impact 816 Dec 6, 2007 #6 thanks for the headsup. peter@flexiwebhost said: weblord that is not necessarily the bet thing to do. It is not taking into consideration the possibility of conflicting variables etc. The best would be as suggested, post the code and we can then go from there. Click to expand...
thanks for the headsup. peter@flexiwebhost said: weblord that is not necessarily the bet thing to do. It is not taking into consideration the possibility of conflicting variables etc. The best would be as suggested, post the code and we can then go from there. Click to expand...