|
Posted by webbyfoot on 12/17/26 11:56
webbyfoot@gmail.com wrote:
> >
> > Hi John,
> >
> > Have you tried suppressing the error returned by fsockopen using the
> > '@' op?
> > See http://www.php.net/manual/en/language.operators.errorcontrol.php
> > for details.
> >
> > Carl.
>
> Hi Carl, yes I did - but that seemed to suppress the result too - no
> errors - but no redirection either :-(
>
> I also tried the ob thing to cache the warning headers but that again
> resulted in nothing happening at all
>
> John
Doh! Silly me - I finally read the manual as Carl suggested and
realised my @ was in the wrong place - I'd put it at the front of the
line instead of infront of the function. It's now:
$fp = @fsockopen($HTTP_POST_VARS['url'],80, $errno, $errstr, 30);
if(!$fp) {
header("Location: index2.php");exit;
}
And works! Thanks!! :-)
Navigation:
[Reply to this message]
|