curl: running exec() vs. curl_init()
Moderator: General Moderators
-
jonwondering
- Forum Commoner
- Posts: 39
- Joined: Mon Mar 13, 2006 6:26 pm
curl: running exec() vs. curl_init()
Hi, I am writing code to communicate with REST API and I was wondering what are advantages/disadvantages to using exec("curl ...") vs. using the commands that are built into php: curl_init(), curl_exec(). Which is faster? Are there any problems that might occur with running curl through exec()? Any help/links/reading are appreciated! Thanks.