Page 1 of 1

php proxy - broken

Posted: Fri Feb 02, 2007 3:32 pm
by danharibo
Yeah, It keeps thrwoing up this error:
Warning: fread(): supplied argument is not a valid stream resource in /home/www/suf.awardspace.co.uk/Blog/index.php on line 124
From this:

Code: Select all

//first run,print form,if your site is public
            if($is_public==true){
                $self_url = "http://".$HTTP_SERVER_VARS['HTTP_HOST'];
		echo $self_url;
		$lang_url = $self_url."/Blog/lang/English.php";
		echo $lang_url;
                $fp = @fopen($lang_url,"r");
                while($data = fread($fp, 4096)) $content.=$data; -- 124
                echo $content;

                //die();
Line iwth -124 is line 124

Posted: Fri Feb 02, 2007 6:55 pm
by RobertGonzalez
Get rid of the error suppression and see if there is more information getting thrown at you. It might be permissions, but like I said, get rif of the hushed errors and post back.

Posted: Fri Feb 02, 2007 10:51 pm
by feyd
I'll guess it's an allow_url_fopen issue.