Re: Execute python script from PHP
- From: Mike Willbanks <pencap@xxxxxxxxx>
- Date: Sat, 18 Feb 2006 19:28:57 -0600
Sure,
I have a python script such as:
[code]
#!/usr/bin/python
print "Content-Type: text/plain\n\n"
f = open("abc.txt", "wb")
f.write("this is just a test")
f.close()
[/code]
It is stored under /public_html/cgi-bin/abc.py
I want to call that from a PHP script which is located under
/public_html/site/foo.php
exec('/public_html/cgi-bin/abc.py');
--
Mike Willbanks
Zend Certified Engineer
http://blog.digitalstruct.com
.
- References:
- Execute python script from PHP
- From: Sure
- Execute python script from PHP
- Prev by Date: Re: Destroy Session on page change
- Next by Date: annoying problem!
- Previous by thread: Execute python script from PHP
- Next by thread: annoying problem!
- Index(es):