PHP Embedded In Python

jdonnell jaydonnell at gmail.com
Wed Feb 9 12:19:40 EST 2005


Ok, I'm still a little confused. You mention header.html and
access.php.

For access.php use the os call. You'll probably want to use popen, and
you also need to change your php script slightly. In order to run php
scripts from the command line you have to put
#!/usr/bin/php
as the first line in the php script. You then need to make sure that
it's executable. Run this from the command line:
chmod 755 access.php
Now you can call it from python with os.popen('/path/to/access.php')




More information about the Python-list mailing list