View Full Version : How to include file from different server
07-12-2007, 07:00 AM
I have a file named file1.php in server 1,
and another file named file2.php in server 2, I wish to include file1.php in the file file2.php. How can i do this?
07-12-2007, 08:06 AM
For security reasons this isn't possible. Otherwise I could easily read any site's PHP code and get all kinds of neato highly sensitive info.
EDIT: That's not entirely true, I forgot about the whole http wrapper thing and the ability to "sort of" include remote PHP files. It's more like you can pass variables to the remote PHP file and get the return value from that file but it's not the same as a normal include.
Read this page for the details:
07-13-2007, 06:39 AM
Thanks fumigator.. it helped me a lot..
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.