Php help?

SpaceshipSpaceship
Watch

basscleff

New Member
Impact
0
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
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
post the code.
 
0
•••
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';
?>
 
0
•••
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
 
0
•••
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.
 
0
•••
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.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Live Options
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back