Execute/run remote php page?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lemonfreshmedia
Forum Commoner
Posts: 26
Joined: Fri Dec 02, 2005 7:14 pm

Execute/run remote php page?

Post by lemonfreshmedia »

Hi I have a php page which needs to be executed every time a page on another server is loaded.
I 'm having trouble getting my host to allow xslt on one server.


Does anyone know how I can do this?
LiveFree
Forum Contributor
Posts: 258
Joined: Tue Dec 06, 2005 5:34 pm
Location: W-Town

Post by LiveFree »

You can try that with include statements, just include the file at the top of the file it shall be executed from
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Code: Select all

<?
$url = 'http://example.com/myscript.php';

$result = file_get_contents($url);
if ($result) {
echo 'script said: '.htmlentities($result);
} else {
echo 'error!';
}
?>
try this
Post Reply