1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

file_get_contents not working

Discussion in 'PHP' started by amber.long83, Nov 12, 2009.

  1. amber.long83

    amber.long83 New Member

    Joined:
    Nov 3, 2009
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Home Page:
    Hello all,

    This is my code:

    PHP Code:
    $url = "Show.php?ShowID=1";
    $str = file_get_contents($url);
    echo $str;

    That's supposed to get the contents of show.php with showID as 1. But this doesn't work. Just typing show.php works, but the ?showID=1 does not work.

    How could I make it so that it works?

    Thanks
     
  2. venami

    venami New Member

    Joined:
    Dec 26, 2008
    Messages:
    195
    Likes Received:
    10
    Trophy Points:
    0
    Occupation:
    Software Professional
    Location:
    India, Tamil Nadu, Cuddalore
    Home Page:
    I am getting the page loaded as you said.

    Could you please explain what you are expecting?
     

Share This Page