Posted by Mike Willbanks on 02/19/06 03:28
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
Navigation:
[Reply to this message]
|