PHP / PYTHON script to get contacts list from web service.

  • Status Closed
  • Budget £20 - £250 GBP
  • Total Bids 14

Project Description

I have a service installed on the web server. I am unable to get PHP to connect with sockets so i am trying to interact with the service via Python and exec the python script in PHP and read the output.

the php page for testing is simple.


$user = "icmc(AT)[url removed, login to view]";

$pass = "password";

$command = "[url removed, login to view] $user $pass";

exec($command, $output);



i am passing the user and password variables to the python script.

I have a python script written a while ago by a colleague which i don't understand, but have managed to request the data i am after ok.

But i do encounter problems, im not sure the python script is reliable and i think it is over complicated for what i need as it try to cater for a lot of operations i do not need and handle responses etc. All i need is the contacts list reliably for the user PHP passes it.

If i run the php page and get the contacts list back into PHP, then change the username and password in the PHP script and re-run. The correct user details are passed to the python script but the script is returning the previous users contact list and not the new one.

I also find that it leaves zombie process and i have to go kill them manually.

I think this will be an easy job for an experienced python developer, to simplify and 'finish off' the script i will attach.

Get free quotes for a project like this
Awarded to:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online