Sending data from php to python

Page 1 of 1

5 Replies - 614 Views - Last Post: 02 June 2015 - 05:09 AM Rate Topic: -----

#1 damien220   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 22-November 13

Sending data from php to python

Posted 01 June 2015 - 01:08 PM

hello everyone.
I am looking for help as described above,and that is sending data from php(the data in php are requested from database),and then send them back to python script.
i searched around in the web for any topic of this kind,but couldn't find any.
So i kindly demand any help,from anyone capable of helping me.
There isn't any specified code that i should post here,i just want to syntax of sending the values.
And thank you all.

Is This A Good Question/Topic? 0
  • +

Replies To: Sending data from php to python

#2 astonecipher   User is offline

  • Senior Systems Engineer
  • member icon

Reputation: 2523
  • View blog
  • Posts: 10,101
  • Joined: 03-December 12

Re: Sending data from php to python

Posted 01 June 2015 - 01:11 PM

I am guessing english is not your first language if you are, "demanding help"?

You are over thinking this, you send a json string from one script to another. Nothing complicated about it.
Was This Post Helpful? 0
  • +
  • -

#3 damien220   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 22-November 13

Re: Sending data from php to python

Posted 01 June 2015 - 01:20 PM

hi astonecipher,and thanks for answering,
Well yeah,it's not my first language.
Could you give more instructions on how to use it?like a documentation or anything like it.
It will be much appreciated.
And thank you.
Was This Post Helpful? 0
  • +
  • -

#4 astonecipher   User is offline

  • Senior Systems Engineer
  • member icon

Reputation: 2523
  • View blog
  • Posts: 10,101
  • Joined: 03-December 12

Re: Sending data from php to python

Posted 01 June 2015 - 01:23 PM

Not really looking to hard, huh?

Sending through PHP
Receiving json in python

This post has been edited by astonecipher: 01 June 2015 - 01:23 PM

Was This Post Helpful? 0
  • +
  • -

#5 ArtificialSoldier   User is online

  • D.I.C Lover
  • member icon

Reputation: 2020
  • View blog
  • Posts: 6,150
  • Joined: 15-January 14

Re: Sending data from php to python

Posted 01 June 2015 - 02:31 PM

Why not just get the database data in Python? Why is PHP necessary?
Was This Post Helpful? 0
  • +
  • -

#6 xclite   User is offline

  • I wrote you an code
  • member icon


Reputation: 1280
  • View blog
  • Posts: 4,086
  • Joined: 12-May 09

Re: Sending data from php to python

Posted 02 June 2015 - 05:09 AM

Has the situation changed from this older thread you opened?
http://www.dreaminco...-python-to-php/

I'm closing this thread as a duplicate, feel free to continue conversation there (or take the advice and get a basic understanding of how these things work, if you haven't already).
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1