Link to home
Start Free TrialLog in
Avatar of Gaaara
Gaaara

asked on

executing php script with python

hello
I am trying to execute a .php file in my script python and i have an error. I would want to know why I have this error:)

subprocess.call("php  files/updatekey.php")

Open in new window

error
> Traceback (most recent call last):   File "adn/start.py", line 15, in
    > <module>
    >     subprocess.call("php  files/updatekey.php")   File "/usr/lib64/python2.7/subprocess.py", line 524, in call
    >     return Popen(*popenargs, **kwargs).wait()   File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    >     errread, errwrite)   File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
    >     raise child_exception OSError: [Errno 2] No such file or directory

Open in new window


ty all
ASKER CERTIFIED SOLUTION
Avatar of clockwatcher
clockwatcher

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gaaara
Gaaara

ASKER

cool ty :)  it works ^^