1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Call to undefined function http_get()

Discussion in 'Apache' started by yaramhu, Oct 20, 2007.

  1. #1
    I have put this problem on the php forum too but I am afraid of it would be an Apache issue maybe.

    I use http_get function in my php code. When I tr to run the php page on browser I get the next message :
    Fatal error: Call to undefined function http_get()
    But when I run my php script from command line there isn't any error message and it works fine.
    Can somebody help what would be the problem ?
     
    yaramhu, Oct 20, 2007 IP
  2. bogs

    bogs Active Member

    Messages:
    2,142
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    80
    #2
    this site might help you.. ;-)

    askapache.com
     
    bogs, Oct 20, 2007 IP
  3. satusaja

    satusaja Active Member

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    i believe the extension is not enabled.
    try to check your php setting in httpd.conf
    is it pointing to the correct php.ini?
     
    satusaja, Oct 20, 2007 IP
  4. yaramhu

    yaramhu Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes the httpd.conf pointed the right php.ini
    But fortunately the problem is resolved:
    I noticed on the apache error log this message : Unable to load dynamic library php_http.dll - the specified modul could not be found.
    However the php_http.dll was the right directory and the setting of the extension_dir was right too.
    I tried to reinstall apache but it didn't help. I spent a lot of hours to find solution on the web and it seems hundreds and hundreds noticed this bug too but I couldn't find any solution.
    I used Appserv 2.5.8 (l tried 2.5.9 too) package with PHP 5.2.3 and Apache 2.2.4. At the and I unistalled Appserv and downloaded PHP 5.2.4 and Apache 2.2.4. After the installation my script worked perfectly.
     
    yaramhu, Oct 20, 2007 IP
  5. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #5
    All you had to do was take out the semi-colon (comment flag) from this line in your php.ini file:
    ;extension=php_http.dll
    Code (markup):
    Sorry ;)
     
    krt, Oct 21, 2007 IP
  6. satusaja

    satusaja Active Member

    Messages:
    108
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #6
    what's the cause of the earlier problem?
     
    satusaja, Oct 21, 2007 IP