Jump to content

Help with include - php5


Riparian

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.