Web Hosting Talk







View Full Version : Load data from an url


cn92
01-18-2009, 02:06 PM
Hi to all,
It's my first post here!
I have a customer managment system (made by me with php-mysql).
Some customers have accounts at a sms company (to send sms via pc). With http api I can call an url (ht tp://xxx.gr/uer=xx&pass=xxx?action=....) and see how many sms each one have. I would like to put this number in a table, but I don't know how to do it.
Thanks,
Nik

arbet
01-18-2009, 02:09 PM
Use the php curl library, you'll need to have curl installed on your server.
www.php.net/curl
And then save the value you get into your database.

cn92
01-18-2009, 02:18 PM
Thanks very much, it works perfect!

arbet
01-18-2009, 02:39 PM
Thanks very much, it works perfect!
Glad I've helped :)