Jump to content

Including other PHP files


uk_martin

Recommended Posts

hi

 

I have a phpBB site, and have been happy with the way that it has been working...until the web hosts changed their version of the PHP Server software. In the past I had a form "form.php" which was included in a phpBB template (TPL) file. That stopped working and error notifications appeared.

 

In asking my web host what they knew about this, they told me of the following answer:

 

Our server is using PHP 5.2.5 and this version wont support include('http://url.com') in your php program. Instead you can use file_get_contents('http://url.com/').

 

In case you have any questions don't hesitate to contact us .

 

Regards,

 

I tried the "file_get_contents"option, but it woulsn't work as a basic copy / paste.

 

Does anyone else have any ideas as to what I need to replace "include"?

 

Thanks in advance for your help.

 

Martin

Link to comment
https://forums.phpfreaks.com/topic/87571-including-other-php-files/
Share on other sites

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.