Click to See Complete Forum and Search --> : PHP4 Module + shell script


Anon
02-05-2002, 02:11 PM
Hi,

I compiled PHP as a module for Apache, but i would also like to use it for crons, etc.

I can perfectly run scripts from the command line as long as they don't call extra functions like mssql_connect() etc...
Of course, the same exact script works when I launch it through Apache!

So how can I use php on the command line so that it takes in account all the options I added during the compilation as a module?

Thanks a bunch.

Seb.

Anon
02-07-2002, 02:07 AM
Sounds like there is an old copy of a php binary lying around, since you compiled it for apache you would have not created a binary. This makes me think maybe there is an old one lying around with all the options. Try recompiling again and then just elave off the apache part.

Anon
02-07-2002, 02:14 PM
Thanks, but:
1) No, it's a brand new machine that I formatted, there's just one installation of PHP on it, it's 4.1.1 as a module for Apache
2) I still need to use php as a module, can't I have PHP working in both modes, with the same compilation options ?

Thanks.

Freddy wrote:
-------------------------------
Sounds like there is an old copy of a php binary lying around, since you compiled it for apache you would have not created a binary. This makes me think maybe there is an old one lying around with all the options. Try recompiling again and then just elave off the apache part.