Jeff,

Let's start 'casting around' then. If you've already done these (I may not have read 
all of your posts) please
discuss the results of the following:

1 what happens when you run the script in a browser?
2 with/without the -c and/or -q options, what happens when you run another PHP script 
from the command line?
3 if PHP is in the PATH, what happens if C:\ is the current directory and you attempt 
to run PHP (with or
without an argument/script filename)?

Do you have another PHP script that has sent email/used the mail() function 
successfully?

Please advise,
=dn


> the path to php is already in the PATH variable...
>
> I'm not doing anything different that http://bugs.php.net/bug.php?id=6742
> ,but for some reason the -c doesn't make a difference...
>
> Jeff.
>
>
> "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> 0d4f01c1a00e$87036ee0$2916100a@jrbrown">news:0d4f01c1a00e$87036ee0$2916100a@jrbrown...
> > Jeff,
> >
> > The following batch files works for me (WinNTWS 4.0 SP6a):-
> >
> > cd c:\program files\php
> > php.exe -q c:\.path.\w.php >>c:\.path.\webute.log
> >
> > NB the first line reflects my PHP config - your mileage may vary!
> >
> > Of course the other possibility is to add the PHP folder into the PATH
> environment variable...
> >
> > Regards,
> > =dn
> >
> >
> > ----- Original Message -----
> > From: "Jeff D. Hamann" <[EMAIL PROTECTED]>
> > To: <>; <[EMAIL PROTECTED]>
> > Sent: 18 January 2002 07:00
> > Subject: [PHP-WIN] command line are -c doesn't work on win2k?
> >
> >
> > > I've been trying to figure out what was wrong with my script...
> > >
> > > <?
> > > mail("[EMAIL PROTECTED]", "Subject", "command line mail() test");
> > > ?>
> > >
> > > from the command line,
> > >
> > > php mail_test.php
> > >
> > > and getting,
> > >
> > > X-Powered-By: PHP/4.0.6
> > > Content-type: text/html
> > >
> > > attempting to deliver the mail<br>
> > > <b>Warning</b>:  Unknown error in <b>mail_test.php</b> on line
> <b>3</b><br>
> > >
> > > Then I found a solution at http://bugs.php.net/bug.php?id=6742 ,
> > >
> > > [22 Nov 2000 5:21am] [EMAIL PROTECTED]
> > > After a few emails this really got solved.
> > > Adding -c/path/to/phpini/ (command line)
> > > was the solution.
> > >
> > > --Jani
> > > but, when I tried it,
> > > php -c c:\php mail_test.php,
> > > Again, the results were,
> > > X-Powered-By: PHP/4.0.6Content-type: text/html
> > >
> > > attempting to deliver the mail
> > > <br><b>Warning</b>:  Unknown error in <b>mail_test.php</b> on line
> > > <b>3</b><br>
> > >
> > >
> > > So, I tried a gazillion permitations on -c, -c /php, -c
> > > c:/php -c:\php\php.ini, etc, etc, etc, to no avail...
> > >
> > > I finally moved the script into the same dir as php.exe and it worked
> fine.
> > > The problem is that I need to run the script from the "normal" path and
> not
> > > from c:\php...
> > >
> > > Does the -c switch actually work? How can I run this script from another
> > > dir? Is this a bug?
> > >
> > > Thanks,
> > > Jeff.
> > >
> > >
> > > --
> > > Jeff D. Hamann
> > > Hamann, Donald & Associates, Inc.
> > > PO Box 1421
> > > Corvallis, Oregon USA 97339-1421
> > > Bus. 541-753-7333
> > > Cell. 541-740-5988
> > > [EMAIL PROTECTED]
> > > www.hamanndonald.com
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to