I think I need to enable something in PHP

Discussion in 'PHP' started by designcentral, Jul 22, 2009.

  1. #1
    I just clean installed Ubuntu 9.04 to replace the older version of Ubuntu, the server is just for development and testing purposes.

    I have a script that uses file.get.contents that used to work all fantastic before I upgraded to Ubuntu 9.04 but I think I enabled something in php.ini previously??

    The PHP error on the page is: Warning: file_get_contents(http://www.trademe.co.nz/Browse/Listing.aspx?id=) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /var/www/packingslip/process.php on line 4

    I'm new at PHP but I think I have to do something in the php.ini config file.

    Any help will be appreciated...

    Thanks
     
    designcentral, Jul 22, 2009 IP
  2. designcentral

    designcentral Guest

    Messages:
    106
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Any help please??
     
    designcentral, Jul 22, 2009 IP
  3. Sergey Popov

    Sergey Popov Peon

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    designcentral, check if you have allow_url_fopen = On in your php.ini
     
    Sergey Popov, Jul 22, 2009 IP