Re: PHP Embedded In Python
From: jdonnell (jaydonnell_at_gmail.com)
Date: 02/09/05
- Next message: Carl: "Python and version control"
- Previous message: Tom Brown: "Re: win32 service and sockets"
- In reply to: Keith: "Re: PHP Embedded In Python"
- Next in thread: Do Re Mi chel La Si Do: "Re: PHP Embedded In Python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 9 Feb 2005 09:19:40 -0800
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')
- Next message: Carl: "Python and version control"
- Previous message: Tom Brown: "Re: win32 service and sockets"
- In reply to: Keith: "Re: PHP Embedded In Python"
- Next in thread: Do Re Mi chel La Si Do: "Re: PHP Embedded In Python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|