NameSilo

Php help?

SpaceshipSpaceship
SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
post the code.
 
0
Close
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
Close
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
Close
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
Close
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
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

New: watch any domain
You can now watch domains on NamePros. We check each one and notify you when something changes. Search for a domain and press Watch on...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back