bobcooper Posted January 25, 2008 Share Posted January 25, 2008 Hi there, I have a php file on my website that holds all the navigation elements for my website which are imported using php include, so if I want to change the structure of the site I do not have to edit every page. I want to place an upload page onto my clients website (separate to my own) that uses the same php navigation file. I have tried using php include from the clients website to the php file on my website but it does not seem to import it. this is the code i am using: <?php include("http://www.bobcooper.org.uk/navi/naviBg.php"); ?> anyone got any thoughts on this? Thanks, Bob www.bobcooper.org.uk Quote Link to comment https://forums.phpfreaks.com/topic/87726-php-include-from-a-different-website/ Share on other sites More sharing options...
rajivgonsalves Posted January 25, 2008 Share Posted January 25, 2008 The url your trying to include is not accessible.. Quote Link to comment https://forums.phpfreaks.com/topic/87726-php-include-from-a-different-website/#findComment-448692 Share on other sites More sharing options...
bobcooper Posted January 25, 2008 Author Share Posted January 25, 2008 OK I have changed that, but it is still not importing the code into the file, it imports it fine from my own site but not from an external site. Bob www.bobcooper.org.uk Quote Link to comment https://forums.phpfreaks.com/topic/87726-php-include-from-a-different-website/#findComment-448700 Share on other sites More sharing options...
rajivgonsalves Posted January 25, 2008 Share Posted January 25, 2008 Does it give you any errors ? is your error reporting on in your php.ini file... Quote Link to comment https://forums.phpfreaks.com/topic/87726-php-include-from-a-different-website/#findComment-448702 Share on other sites More sharing options...
bobcooper Posted January 25, 2008 Author Share Posted January 25, 2008 Doh! I just realised what's going on, the other site I was using it on does not let me use php! I tried it on another site and it worked fine! Thanks for your help though. I think i need some more sleep! Bob www.bobcooper.org.uk Quote Link to comment https://forums.phpfreaks.com/topic/87726-php-include-from-a-different-website/#findComment-448704 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.