
PHP script to run cURL on sql table data
- or -
Post a project like this2462
£20(approx. $27)
- Posted:
- Proposals: 1
- Remote
- #2351479
- Awarded
Description
Experience Level: Intermediate
I have an sql database table which contains push notification tokens and the respective device OS (Android or iOS). I need to migrate those tokens to another database, which needs to be done via an API.
I need a PHP script which will loop through each of the push tokens in the table and attempt to register the token using a cURL command, similar to this:
$ curl http://mysitename.com/pnfw/register/ --data "os=Android&token=test"
The code should output the token, OS and corresponding response code for each attempt, so I can check the process has worked.
That's it!
Chris
I need a PHP script which will loop through each of the push tokens in the table and attempt to register the token using a cURL command, similar to this:
$ curl http://mysitename.com/pnfw/register/ --data "os=Android&token=test"
The code should output the token, OS and corresponding response code for each attempt, so I can check the process has worked.
That's it!
Chris
Chris L.
0% (0)Projects Completed
-
Freelancers worked with
-
Projects awarded
100%
Last project
23 Jan 2026
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-

Can the script be written in Python instead of PHP?
Chris L.28 Mar 2019Sorry. Needs to be PHP.
787572
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies