View Single Post
Old 12-03-2011, 07:36 PM  
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by sarettah View Post
Are the domains on the same server or different servers? Also, Nix or Win?

If they are on the same server then include the file from domain 2 using the full path to the file, not the url.
Do that. Use the path, not the URL. Full path or relative path is OK.
The relative path is less likely to break when you move servers.

Quote:
if you are on nix you can use include using the url if allow_url_include is set to true in your php.ini file.
allow_url_include requires allow_url_fopen.
allow_url_fopen requires stupid.
Therefore include(url) requires being stupid.

Use SmokeyTheBear's cURL code if they are on different servers. Be aware that's not like a PHP include, as you're getting the OUTPUT of the remote PHP script, not it's contents.


Quote:
Originally Posted by SmokeyTheBear View Post
<?@readfile("http://www.domain-two.com/folderone/foldertwo/filename-two.php");?>
Smokey was right on the cURL code, but this line is typical for PHP code. Typical because it has three errors in one line of code.
__________________
For historical display only. This information is not current:
support&#64;bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote