how to call a php page on an other server

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
byenary
Forum Newbie
Posts: 10
Joined: Mon Apr 03, 2006 6:15 am

how to call a php page on an other server

Post by byenary »

Hello,

How can I call a page2.php from page1.php as in calling a function, so call page2 and stay in page1?
Is this possible (reason is, got two local servers, server1 and server2), server1 is connected trough a tunnel with an internet database.
I have got things happening on server2 where i need to access the internetsever so I like this to do trought server1 by calling a page on that server.
How should one do such thing ?

Thx !
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

If you can mount directories on the remote server you can include() the file
Post Reply