Page 1 of 1

fopen()

Posted: Mon Mar 01, 2004 2:01 pm
by dazio
hi

i got some "small" problem.
to cut a long story short:

$name = "http://dev.progamerz.com/firmen/_overview.php";
$datei = fopen($name, "r");

--> works.

$name = "http://dev.progamerz.com/firmen/_overvi ... ter=&page=";
$datei = fopen($name, "r");

--> doesn't work. returns this message:

Warning: fopen(http://dev.progamerz.com/firmen/_overvi ... ter=&page=) [function.fopen]: failed to create stream: Invalid argument in /www/htdocs/develop/global.inc.php on line 423

... which seems to be kind of spontaneous. it worked once, i didn't change anything. maybe, php has been updated on the server, i'm not sure about that. currently, php 4.3.1 is running.
has anybody got a hint, an idea, something?

would be very nice...

thanks!

Posted: Mon Mar 01, 2004 2:05 pm
by Illusionist
why do you even have 'letter=&page=' on there? If there isn't anything after the '=' then leave it off...

Posted: Mon Mar 01, 2004 2:10 pm
by dazio
normally letter and page have values, they are only empty in this case. i can't leave them off, as they are added automatically...

Posted: Mon Mar 01, 2004 2:13 pm
by Illusionist
well, have you tried it giving them values?

Posted: Mon Mar 01, 2004 2:20 pm
by dazio
yes, i have, and it works.
i think the problem is that http://dev.progamerz.com/firmen/_overvi ... ter=&page= redirects to http://dev.progamerz.com/firmen/_overview.php. fopen() is obviosly not able to handle this header-redirect. but it WAS... i don't get it :cry:
at least i know where the error comes from...