Thanks for the help! I have a few questions about your
answer:

LYNX METHOD
===========

So for the lynx method, I tried in the .qmail file:

|/usr/bin/lynx -post_data "http://..parser.php";

However, I keep getting the error in my qmail log:

deferral: Your terminal lacks the ability to clear the
screen_or_position_the_cursor./_/

It seems that the terminal needed to be declared so I
then tried this in my .qmail file:

|/usr/bin/lynx -post_data -term=xterm "..parser.php"

However, I still keep getting that terminal curosr
thing error again. Is there anything I can do to fix
this?

CGI PHP
=======

I am currently running PHP as an apache module, so I
don't seem to have an executable on the system. I am
concerned if I install the CGI version of PHP which is
an executable, would that interfere with the PHP
module in apache?

Also, I compiled the PHP as an apache module by using
the following ./configure syntax:

rm config.cache
make clean
./configure --with-mysql=/usr 
--with-apxs=/etc/httpd/bin/apxs
--with-curl=/usr/local/lib
make
make install

Now, I understand that I need to remove the paxs=...
part to build PHP as a CGI executable, but I still
need the MySQL and curl support. So is it allright to
leave those options in the ./configure (instead of
doing ./configure only and losing mysql support)?

Also, I am using qmail-inject instead of the standard
sendmail for PHP's mail() function. As a result, I
need to update the php.ini file. How would I do that
if I only copy the php executable to another
directory? would I also have to copy the php.ini file?

Your help is greatly appreciated!

Best Wishes.

--- Philip Mak <[EMAIL PROTECTED]> wrote:
> On Sat, 28 Jul 2001, PHP Webmaster wrote:
> 
> > the .qmail makes a program delivery to a PHP
> script at
> > http://www.mydomain.com/parser.php which then
> stores
> > the message in a database. The PHP installation is
> as
> > an Apache module so I think I might have to use
> Lynx.
> >
> > So here is something I've come up with:
> >
> > |/usr/bin/lynx -source
> > "http://mydomain.com/parser.php";
> 
> That won't work exactly as is, since you need lynx
> to send the contents of
> standard input to the PHP script as POST data. "man
> lynx" shows the
> following option:
> 
>        -post_data
>               send  form  data  from  stdin using
> POST method and
>               dump results.
> 
> So try putting -post_data in the lynx command.
> 
> A more correct way of doing this would be to run php
> from the command
> line. Try typing locate php | grep "/php$" to see if
> a PHP executable is
> available on your system. If not, you can compile
> one by downloading PHP
> from php.net, doing "./configure" (don't include any
> options in
> ./configure), then "make" (don't do "make install"),
> and just copy the
> "php" executable that it creates to whereever you
> need it.
> 
> If you go with the PHP executable, you would put in
> your .qmail file:
> 
> |/path/to/php -q /path/to/script.php
> 
> (-q tells it not to send HTML headers.)
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Reply via email to