! function_exists("curl_init") BUT curl_init exists and works.

This is a discussion on ! function_exists("curl_init") BUT curl_init exists and works. within the PHP forums in Programming Languages category; ! function_exists("curl_init") BUT curl_init exists and works. After my host blocked the file_get_contents and other functions, I am using CURL - but when I do function_exists("curl_init") it returns false but I can still use it.... anyone knows why?...

Go Back   Application Development Forum > Programming Languages > PHP

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-28-2008, 02:19 AM
daniel danon
Guest
 
Default ! function_exists("curl_init") BUT curl_init exists and works.

! function_exists("curl_init") BUT curl_init exists and works.

After my host blocked the file_get_contents and other functions, I am
using CURL - but when I do function_exists("curl_init") it returns
false but I can still use it.... anyone knows why?
Reply With Quote
  #2  
Old 08-28-2008, 05:19 AM
Carlos Medina
Guest
 
Default Re: ! function_exists("curl_init") BUT curl_init exists and works.

daniel danon schrieb:
> ! function_exists("curl_init") BUT curl_init exists and works.
>
> After my host blocked the file_get_contents and other functions, I am
> using CURL - but when I do function_exists("curl_init") it returns
> false but I can still use it.... anyone knows why?


Hi Daniel,
read here: http://de3.php.net/manual/en/functio...ion-exists.php

Where is defined the curl_init function? this ist maybe why
function_exists doesnt Work as you expected. Check the curl_init() with
* method_exists()
* is_callable()
* get_defined_functions()

Regards

Carlos
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 10:40 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.