View Single Post
Old 12-03-2011, 06:51 PM  
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,091
Quote:
Originally Posted by TheSquealer View Post
in this file:
http://www.domain-one.com/folderone/...lename-one.php

I want to use PHP to include a file located here:
http://www.domain-two.com/folderone/...lename-two.php

I can't seem to get it to work.

I've been looking around for answers and there seems to be a few different ways to do it and I can't get any to work

Help!?
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.

If they are not on the same server then if you are on win you cannot use include to pull it in, 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.


.
__________________
All cookies cleared!
sarettah is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote