Problem to access distant files - Windows blue screen of death

Problem to access distant files - Windows blue screen of death

am 21.04.2008 06:10:33 von Nicolas

Hello,

On a Windows platform (XP SP2), using Wampserver 2.0, each time I try to
access a distant file with PHP:

$contents =
file_get_contents("http://www.google.fr/intl/fr_fr/images/lo go.gif");
or copy("http://www.google.fr/intl/fr_fr/images/logo.gif", "logo.gif");
or any other function,

I get the blue screen of death and my computer restarts!

I tried to disable the firewall but it doesn't change anything.
The same code works without any problem on a linux platform.

Does someone have any idea of where it comes from?

Thanks,

Nicolas

Re: Problem to access distant files - Windows blue screen of death

am 21.04.2008 10:20:19 von luiheidsgoeroe

On Mon, 21 Apr 2008 06:10:33 +0200, Nicolas wro=
te:

> Hello,
>
> On a Windows platform (XP SP2), using Wampserver 2.0, each time I try =
to
> access a distant file with PHP:
>
> $contents =3D
> file_get_contents("http://www.google.fr/intl/fr_fr/images/lo go.gif");
> or copy("http://www.google.fr/intl/fr_fr/images/logo.gif", "logo.gif")=
;
> or any other function,
>
> I get the blue screen of death and my computer restarts!
>
> I tried to disable the firewall but it doesn't change anything.
> The same code works without any problem on a linux platform.
>
> Does someone have any idea of where it comes from?

If your computer restarts, it's no simple PHP or Apache error. Something=
=

is very wrong. Even if this is not permitted by the settings =

(allow_url_fopen) it should just generate a recoverable error. Try to =

reinstall Apache & PHP. If that still fails with window rebooting, I =

suspect there's nothing else for it then to reinstall Windows...
-- =

Rik Wasmus