Topic: extern.php

if i create an empty php page with only this code in it:

include('http://www.dutcholsentwins.com/punbb/extern.php?action=online');

i get these error:

Warning: main(http://www.dutcholsentwins.com/punbb/extern.php?action=online): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/dolsentw/public_html/heh.php on line 3

Warning: main(): Failed opening 'http://www.dutcholsentwins.com/punbb/extern.php' for inclusion (include_path='.') in /home/dolsentw/public_html/heh.php on line 3

Does anybody know why i get these errors? I think it has something to do with restrictions on my host? Because on my home pc it works just fine.

thank you.

Re: extern.php

It's my guess that the server cannot resolve the address dutcholsentwins.com. Try including the file with a relative path instead. I.e.

include('/punbb/extern.php?action=online');

or whatever applies to your server.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by jochem 2004-02-13 18:55)

Re: extern.php

yes, i tried that too, doesn't work either..

this:

include('/punbb/extern.php?action=online');

gives:

Warning: main(): open_basedir restriction in effect. File(/punbb/extern.php?action=online) is not within the allowed path(s): (/home:/usr/home:/tmp:/home2/big) in /home/dolsentw/public_html/heh.php on 
line 3

Warning: main(/punbb/extern.php?action=online): failed to open stream: 
Operation not permitted in /home/dolsentw/public_html/heh.php on line 3

Warning: main(): Failed opening '/punbb/extern.php?action=online' for inclusion 
(include_path='.') in /home/dolsentw/public_html/heh.php on line 3

sad

Re: extern.php

Try

include('/home/dolsentw/public_html/punbb/extern.php?action=online');

"Programming is like sex: one mistake and you have to support it for the rest of your life."

5 (edited by jochem 2004-02-13 19:00)

Re: extern.php

shoot......that's the problem if you are working on it with two people.. the other moved it to another directory! stupid wink

now i use this:
include('http://www.dutcholsentwins.com/punbb/nl/extern.php?action=online');

but get this:

Warning: main(): stream does not support seeking in /home/dolsentw/public_html/heh.php on line 3
Users online: 1
Guests online: 0

see:
http://www.dutcholsentwins.com/heh.php

Re: extern.php

That error is a bug in either PHP or in Zend Optimizer. To work around it, put a @ in front of the include. I.e:

@include('http://www.dutcholsentwins.com/punbb/nl/extern.php?action=online');

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: extern.php

yeah thank you big_smile

Re: extern.php

If your host is running Zend Optimizer, you should tell them to upgrade to version 2.5.0 as the bug is fixed in that version.

http://www.zend.com/store/free_download.php?pid=13

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: extern.php

thanks, i'll tell them smile