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
> 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
And :
http://lesuisse.net/pyphp-0.1.tgz
?
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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