Riparian Posted June 18, 2008 Share Posted June 18, 2008 I have just moved servers - PHP4 to PHP5 I have 2 sites involved Site 1 has the management files plus its own emails Site 2 has its own files plus emails I call the emails from site 2 and send them from the management site. I have used this script for 2 years but it will not include the email under php5 require('http://www.site2.com/emails/html_inquiry_reply.inc'); Please help as I have very little hair left to pull out ! Link to comment https://forums.phpfreaks.com/topic/110677-help-with-include-php5/ Share on other sites More sharing options...
DarkWater Posted June 18, 2008 Share Posted June 18, 2008 What kind of errors does it give? Link to comment https://forums.phpfreaks.com/topic/110677-help-with-include-php5/#findComment-567788 Share on other sites More sharing options...
Riparian Posted June 18, 2008 Author Share Posted June 18, 2008 Nothing... just a blank screen Link to comment https://forums.phpfreaks.com/topic/110677-help-with-include-php5/#findComment-567791 Share on other sites More sharing options...
DarkWater Posted June 18, 2008 Share Posted June 18, 2008 Then there must be a syntax error in the code or something. Turn display_errors on and check Apache logs if you can. Link to comment https://forums.phpfreaks.com/topic/110677-help-with-include-php5/#findComment-567793 Share on other sites More sharing options...
Riparian Posted June 18, 2008 Author Share Posted June 18, 2008 Just checked the error logs (thanks for the reminder) and as you can see, although the code stipulates a web address the require is still tacking on the root address in front require('http://www.site2.com/emails/html_inquiry_reply.inc'); require(/xxxhere/local/home/site1/site1.com.au/site2.com.au/emails/html_inquiry_reply.inc): Any thoughts Link to comment https://forums.phpfreaks.com/topic/110677-help-with-include-php5/#findComment-567794 Share on other sites More sharing options...
DarkWater Posted June 18, 2008 Share Posted June 18, 2008 Make sure you're allowed to include remote files on your server. Link to comment https://forums.phpfreaks.com/topic/110677-help-with-include-php5/#findComment-567795 Share on other sites More sharing options...
Riparian Posted June 18, 2008 Author Share Posted June 18, 2008 would this be an htaccess flag ? Link to comment https://forums.phpfreaks.com/topic/110677-help-with-include-php5/#findComment-567797 Share on other sites More sharing options...
DarkWater Posted June 18, 2008 Share Posted June 18, 2008 No, it's a PHP thing in php.ini, but I forgot which directive. D: And I'm kind of busy with something, so I can't really check right now. >_> Link to comment https://forums.phpfreaks.com/topic/110677-help-with-include-php5/#findComment-567798 Share on other sites More sharing options...
Riparian Posted June 18, 2008 Author Share Posted June 18, 2008 Cheers and thanks anyway Link to comment https://forums.phpfreaks.com/topic/110677-help-with-include-php5/#findComment-567800 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.