How to launch a Python script from a PHP page.

Discussion in 'PHP' started by bluesky422, Jul 9, 2008.

  1. #1
    Hello, can anyone please tell me how to launch a Python script from a PHP page.

    I need the Python scripted to be called each time the PHP file is opened.

    I know it maybe an odd request but the script I need is already developed in Python.

    Thanks.
     
    bluesky422, Jul 9, 2008 IP
  2. kmap

    kmap Well-Known Member

    Messages:
    2,215
    Likes Received:
    29
    Best Answers:
    2
    Trophy Points:
    135
    #2
    exec('/public_html/cgi-bin/xyz.py');

    Regards

    Alex
     
    kmap, Jul 9, 2008 IP