PDA

View Full Version : Errors with includes that start with HTTP


noppid
07-14-2003, 03:22 PM
If I do an include to a local file, includes work fine. When I do an include to a remote file via http I get this error...

Warning: main(): stream does not support seeking in /home/lakecsc/public_html/forums/archives/index.php on line 103

This is code that worked fine till I changed hosts. Anyone have an Idea what I can ask for to get it fixed?

Thanks

Gary King
07-14-2003, 06:23 PM
Because your last host was using an old version of PHP, good that you changed hosts because now your new host is probably up-to-date :p

include() is not able to include remote files since PHP 4.3.0 ;)

filburt1
07-14-2003, 06:32 PM
You also can't include PHP files remotely and have them parse as PHP, only as their actual output.

Gary King
07-14-2003, 06:48 PM
That's pretty much why include() doesn't include external files :)

filburt1
07-14-2003, 07:03 PM
Well, remember, include() can always include a static HTML page provided the wrappers that handle the external access are enabled.

noppid
07-14-2003, 07:08 PM
Thanks guys. I changed the code.