Welcome! Log In Create A New Profile

Advanced

Re: can't read page itself

September 07, 2009 01:52AM
On Mon, Sep 7, 2009 at 10:48 AM, afen<nginx-forum@nginx.us> wrote:
> I try not into recursion
> test.php
> <?
> $id=$_GET['id'];
> if ($id==1){
> echo"1";
> }else{
> $html=@file_get_contents("http://localhost/test.php?id=1";);
> }
> ?>
>
> still error
>

it works here.

<?php
$id=$_GET['id'];
if ($id==1){
echo"1";
}else{
$html=@file_get_contents("http://localhost/test.php?id=1");
echo $html;
}
?>

returns 1 no matter what the id is.




--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Subject Author Posted

can't read page itself

afen September 03, 2009 11:55PM

Re: can't read page itself

afen September 04, 2009 12:14AM

Re: can't read page itself

Maxim Dounin September 04, 2009 04:54AM

Re: can't read page itself

afen September 06, 2009 11:37PM

Re: can't read page itself

afen September 06, 2009 11:48PM

Re: can't read page itself

Cliff Wells September 07, 2009 01:20AM

Re: can't read page itself

Cliff Wells September 07, 2009 01:40AM

Re: can't read page itself

edogawaconan September 07, 2009 01:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 277
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready