How do we know whether it's php5 only function or not?
You can always see what version it's for in the manual looking right below the function name usually.
I assume you tried to use it and got an error. Look here for more information on using PECL extensions.
Actually I haven't had the chance yet. I will have to check that all my hosts support pectl extensions.
I tried it doesn't work. It's pretty difficult to see what library is required.
For example, under
http://us2.php.net/manual/en/function.curl-init.php
curl_init function
(PHP 4 >= 4.0.2, PHP 5)
However we know that curl_init will require curllib installed. It's not even mentioned there.
So how do I install PECL
teguh123;10878794 wrote: So how do I install PECL
http://www.php.net/manual/en/install.pecl.php
teguh123 wrote:However we know that curl_init will require curllib installed. It's not even mentioned there.
No, it's mentioned in the list of requirements for the [man]cURL[/man] functions (the bit headed "Requirements").
Funny, that.