Re: PHP Embedded In Python

2005-02-09 Thread jdonnell
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 th

Re: PHP Embedded In Python

2005-02-09 Thread Keith
> Well it depends on how php is installed. Is it a linux system? Do you > know how to run a php script from the command line? I'm running on Fedora Core 3. To run php command line I just ran: % php It spit something back at me. Maybe I should lay out what I am doing a little more. I have a web

Re: PHP Embedded In Python

2005-02-08 Thread Do Re Mi chel La Si Do
And : http://lesuisse.net/pyphp-0.1.tgz ? @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PHP Embedded In Python

2005-02-08 Thread jdonnell
Well it depends on how php is installed. Is it a linux system? Do you know how to run a php script from the command line? Once you have the php script running from the command line then you need to use the os module in python. There are a couple different ways to do it. Read the following for more

Re: PHP Embedded In Python

2005-02-08 Thread Keith
jdonnell wrote: > I'm not sure exactly what your trying to do, but I use php and python > together a lot. I usually call the python script from php with the > passthru function like this: > > $outputFromPy = passthru('/path/to/myScript.py'); > ?> I need to go the other direction. I need to call

Re: PHP Embedded In Python

2005-02-07 Thread jdonnell
I'm not sure exactly what your trying to do, but I use php and python together a lot. I usually call the python script from php with the passthru function like this: -- http://mail.python.org/mailman/listinfo/python-list

PHP Embedded In Python

2005-02-07 Thread Keith
I am a python and php newbie. Newbie is even pushing it. I need to take the contents of my_cgi.py and evaluate it with the php_module. Is this possible. I think that pyPHP goes the other way. The only reason I need this is because the header that all the html pages use on our website uses a ph