why gd works in cmd but not in explorer

Discussion in 'PHP' started by MarsHu, Jun 29, 2010.

  1. #1
    I installed gd yesterday and it worked out well. But something weird happened today. The same file with code var_dump(gd_info()). It works just fine in cmd but not in explorer. It shows the information in cmd but a fatal error in explorer,
    Fatal error: Call to undefined function gd_info() ...

    I restarted apache but nothing changed. What should i do?

    Thanks for advice
     
    MarsHu, Jun 29, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    danx10, Jun 29, 2010 IP
  3. MarsHu

    MarsHu Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you.
    I've uncommended the "estension=php_gd2.dll" in php.ini. It worked well yesterday, and when i started my computer this morning, it failed. I input "php info.php" in cmd, it's ok. The information appears.When i open it through firefox, the fatal error appears...I think it's apache's problem, but it still didn't work after i restarted the apache...
     
    MarsHu, Jun 29, 2010 IP
  4. MarsHu

    MarsHu Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well, it turns out that i forgot to set the extension_dir to the ext path. But I still have no idea why it worked yesterday...Anyway, thanks for your advice.
     
    MarsHu, Jun 29, 2010 IP