Jump to content

Curl Support?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
Is there a way to determine if Curl support has been compiled with PHP from inside of a PHP script?

My first thoughts were to use ini_get functions but I can't find anything relevant to Curl. Any help?

#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
ini_get( ) returns the values of configuration settings. extension_loaded( ) returns loaded extentions -- CURL is an extention :D

extension_loaded('curl')

Should do the trick.

#3
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
Yeah, I found the answer about 2 minutes after posting...

#4
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
Yeah, I always do that, whats why I don't ask questions anymore :D