tjhilder Posted October 13, 2007 Share Posted October 13, 2007 Hi, first off I have these directories (sub domains) on the server: [1] /images.mysite.com/ [2] /mysite.com/feeds/ [3] /admin.mysite.com/ I have news feeds in [2] that I want to update via PHP in [3] subdomain (via browser) what happens is when a new article is added to the database, it loads a script (with an include() ) and then updates the feeds. but I can't get the include to work, i tried a few ../ and even copying the entire address but this does not seem to work. the same goes for another where I upload an image at [3] (via browser) to [1] but I can't get the include() url. all folders/files involved have been set to 0777. hope this is understandable. Quote Link to comment https://forums.phpfreaks.com/topic/73111-solved-include-problem-when-including-from-another-sub-domain-directory/ Share on other sites More sharing options...
marcus Posted October 13, 2007 Share Posted October 13, 2007 Use a full directory path. /home/you/public_html/folder so for images: /home/you/public_html/images feeds: /home/you/public_html/feeds admin: /home/you/public_html/admin Quote Link to comment https://forums.phpfreaks.com/topic/73111-solved-include-problem-when-including-from-another-sub-domain-directory/#findComment-368717 Share on other sites More sharing options...
tjhilder Posted October 22, 2007 Author Share Posted October 22, 2007 thanks very much, problem solved Quote Link to comment https://forums.phpfreaks.com/topic/73111-solved-include-problem-when-including-from-another-sub-domain-directory/#findComment-375424 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.