Re: [PHP] mail problem

2001-09-13 Thread Peter Houchin Sun Rentals STR Manager


>From: David Robley <[EMAIL PROTECTED]>
>To: Peter Houchin Sun Rentals STR Manager <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
>Subject: Re: [PHP] mail problem
>Date: Thu, 13 Sep 2001 14:51:36 +0930
>MIME-Version: 1.0
>Content-Transfer-Encoding: 8bit
>X-Mozilla-Status: 
>X-Mozilla-Status2: 
>X-UIDL: 87d7bf374e4397134844fc82600f8871
>
>On Thu, 13 Sep 2001 13:43, Peter Houchin Sun Rentals STR Manager wrote:
>
>
>
>
>> >On Thu, 13 Sep 2001 13:10, Peter Houchin Sun Rentals STR Manager wrote:
>> >> >On Thu, 13 Sep 2001 12:04, Peter Houchin Sun Rentals STR Manager 
>wrote:
>> >> >> hiya
>> >> >>
>> >> >> I have several scripts that send mail from web pages made in
>> >> >> php.. now these pages all work fine.
>> >> >>
>> >> >> now all of a sudden php has stopped sending mail and I don't know
>> >> >> why
>> >> >>
>> >> >> System info
>> >> >>
>> >> >> Unix box running Solaris 2.6
>> >> >> apache 1.3.12
>> >> >> php 4.0.4pl1
>> >> >> using sendmail for the emails
>> >> >>
>> >> >> php.ini mail related line:
>> >> >> sendmail_path   =   sendmail -t -i  ;for unix only,
>> >> >> may supply arguments as well (default is 'sendmail -t -i')
>> >> >>
>> >> >> now when I test to see the scripts php reports everything is ok
>> >> >> and sends back a possitive result. and that the mail has been
>> >> >> sent. when it hasn't
>> >> >
>> >> >I think that the positive result means that php has successfully
>> >> > handed the message off to sendmail or whatever; whether sendmail
>> >> > then succeeds is another story :-)
>> >> >
>> >> >> now I can go to the commandline and send emails no problem but
>> >> >> from the web pages I can't .. any suggestions would be
>> >> >> apreciated.
>> >> >
>> >> >My first thought would be to check the relevant log for sendmail
>> >> >activity, which might give a clue?
>> >>
>> >> the syslog for send mail says this though it gives me no clues
>> >
>> >
>> >
>> >> Peter
>> >
>> >Not much traffic there :-) Try sending one from the command line, then
>> >one with your script and then check the log again.
>>
>> That's because its on the web server traffic ... set up to handle just
>> requests from our webpages ...
>>
>> ok now I've done what you said and found this out..
>>
>> from command line it adds a entry to the syslog for sendmail
>>
>> from the web page it does not seem to add anything to the log
>
>So php is handing it off OK, but sendmail appears to be not 
>getting/ignoring it? Any system changes or anything even minor happened 
>around the time things stoped working. [I'm grasping at straws here a bit 
>because I don't know how php handles the communication with sendmail]
>


Not on this server no ... yes on other servers with in the network ... inc our 
mail mail server .. but not on this one, having said that about 6 weeks ago we 
have a power outage with out our ups connect (very very bad I know but the ups 
was getting fixed) any way was all working good since then until about 4 days 
ago.

I've also tried change the sendmail line in php.ini so it reads 

sendmail_path   =   /usr/lib/sendmail -t -i  ;for unix only,
may supply arguments as well (default is 'sendmail -t -i')
 

 
 ie adding the full path for sendmail.. but still no luck.. 


-- 
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]




Re: [PHP] mail problem

2001-09-12 Thread Peter Houchin Sun Rentals STR Manager


>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>list-help: <mailto:[EMAIL PROTECTED]>
>list-unsubscribe: <mailto:[EMAIL PROTECTED]>
>list-post: <mailto:[EMAIL PROTECTED]>
>Delivered-To: mailing list [EMAIL PROTECTED]
>From: David Robley <[EMAIL PROTECTED]>
>To: Peter Houchin Sun Rentals STR Manager <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
>Date: Thu, 13 Sep 2001 13:28:27 +0930
>MIME-Version: 1.0
>Content-Transfer-Encoding: 8bit
>Subject: Re: [PHP] mail problem
>X-Mozilla-Status: 
>X-Mozilla-Status2: 
>X-UIDL: b7314ef2bee84cb807f95a04acc39a3d
>
>On Thu, 13 Sep 2001 13:10, Peter Houchin Sun Rentals STR Manager wrote:
>
>> >On Thu, 13 Sep 2001 12:04, Peter Houchin Sun Rentals STR Manager wrote:
>> >> hiya
>> >>
>> >> I have several scripts that send mail from web pages made in php..
>> >> now these pages all work fine.
>> >>
>> >> now all of a sudden php has stopped sending mail and I don't know
>> >> why
>> >>
>> >> System info
>> >>
>> >> Unix box running Solaris 2.6
>> >> apache 1.3.12
>> >> php 4.0.4pl1
>> >> using sendmail for the emails
>> >>
>> >> php.ini mail related line:
>> >> sendmail_path   =   sendmail -t -i  ;for unix only, may
>> >> supply arguments as well (default is 'sendmail -t -i')
>> >>
>> >> now when I test to see the scripts php reports everything is ok and
>> >> sends back a possitive result. and that the mail has been sent. when
>> >> it hasn't
>> >
>> >I think that the positive result means that php has successfully
>> > handed the message off to sendmail or whatever; whether sendmail then
>> > succeeds is another story :-)
>> >
>> >> now I can go to the commandline and send emails no problem but from
>> >> the web pages I can't .. any suggestions would be apreciated.
>> >
>> >My first thought would be to check the relevant log for sendmail
>> >activity, which might give a clue?
>>
>> the syslog for send mail says this though it gives me no clues
>>
>
>>
>> Peter
>
>Not much traffic there :-) Try sending one from the command line, then 
>one with your script and then check the log again.
>
That's because its on the web server traffic ... set up to handle just requests 
from our webpages ... 

ok now I've done what you said and found this out..

from command line it adds a entry to the syslog for sendmail

from the web page it does not seem to add anything to the log

--
Peter Houchin
Sun Rentals STR Manager
Phone: 03 9329 1455
Fax:   03 9329 6755
[EMAIL PROTECTED]
http://www.sunrentals.com.au/
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **


-- 
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]




Re: [PHP] mail problem

2001-09-12 Thread Peter Houchin Sun Rentals STR Manager


>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>list-help: <mailto:[EMAIL PROTECTED]>
>list-unsubscribe: <mailto:[EMAIL PROTECTED]>
>list-post: <mailto:[EMAIL PROTECTED]>
>Delivered-To: mailing list [EMAIL PROTECTED]
>From: David Robley <[EMAIL PROTECTED]>
>To: Peter Houchin Sun Rentals STR Manager <[EMAIL PROTECTED]>, 
[EMAIL PROTECTED]
>Date: Thu, 13 Sep 2001 12:17:12 +0930
>MIME-Version: 1.0
>Content-Transfer-Encoding: 8bit
>Subject: Re: [PHP] mail problem
>X-Mozilla-Status: 
>X-Mozilla-Status2: 
>X-UIDL: a89ffd79c7882d9be6397af7041f38b1
>
>On Thu, 13 Sep 2001 12:04, Peter Houchin Sun Rentals STR Manager wrote:
>> hiya
>>
>> I have several scripts that send mail from web pages made in php.. now
>> these pages all work fine.
>>
>> now all of a sudden php has stopped sending mail and I don't know why
>>
>> System info
>>
>> Unix box running Solaris 2.6
>> apache 1.3.12
>> php 4.0.4pl1
>> using sendmail for the emails
>>
>> php.ini mail related line:
>> sendmail_path   =   sendmail -t -i  ;for unix only, may
>> supply arguments as well (default is 'sendmail -t -i')
>>
>> now when I test to see the scripts php reports everything is ok and
>> sends back a possitive result. and that the mail has been sent. when it
>> hasn't
>
>I think that the positive result means that php has successfully handed 
>the message off to sendmail or whatever; whether sendmail then succeeds 
>is another story :-)
>
>> now I can go to the commandline and send emails no problem but from the
>> web pages I can't .. any suggestions would be apreciated.
>
>My first thought would be to check the relevant log for sendmail 
>activity, which might give a clue?

the syslog for send mail says this though it gives me no clues

Sep  9 03:13:01 www sendmail[2156]: DAA02156: from=lp, size=245, class=0, 
pri=30245, nrcpts=1, msgid=<[EMAIL PROTECTED]>, 
relay=lp@localhost
Sep  9 03:13:01 www sendmail[2158]: DAA02156: to=lp, ctladdr=lp (71/8), 
delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
Sep  9 03:15:00 www sendmail[2167]: DAA02167: from=lp, size=245, class=0, 
pri=30245, nrcpts=1, msgid=<[EMAIL PROTECTED]>, 
relay=lp@localhost
Sep  9 03:15:00 www sendmail[2169]: DAA02167: to=lp, ctladdr=lp (71/8), 
delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
Sep 11 11:14:53 www sendmail[3441]: LAA03441: from=root, size=343, class=0, 
pri=30343, nrcpts=1, msgid=<[EMAIL PROTECTED]>, 
relay=root@localhost
Sep 11 11:14:54 www sendmail[3443]: LAA03441: to=root, ctladdr=root (0/1), 
delay=00:00:01, xdelay=00:00:01, mailer=local, stat=Sent
Sep 11 11:28:47 www sendmail[3515]: LAA03515: from=root, size=93, class=0, 
pri=30093, nrcpts=1, msgid=<[EMAIL PROTECTED]>, 
relay=root@localhost
Sep 11 11:28:48 www sendmail[3517]: LAA03515: [EMAIL PROTECTED], 
ctladdr=root (0/1), delay=00:00:01, xdelay=00:00:01, mailer=relay, 
relay=yarrina.connect.com.au. [192.189.54.17], stat=Sent (Ok: queued as 
CA647110DD)
Sep 13 11:03:00 www sendmail[1341]: alias database /etc/mail/aliases rebuilt by 
root
Sep 13 11:03:00 www sendmail[1341]: /etc/mail/aliases: 7 aliases, longest 22 
bytes, 136 bytes total


Peter


-- 
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] mail problem

2001-09-12 Thread Peter Houchin Sun Rentals STR Manager

hiya

I have several scripts that send mail from web pages made in php.. now these 
pages all work fine.

now all of a sudden php has stopped sending mail and I don't know why

System info

Unix box running Solaris 2.6
apache 1.3.12
php 4.0.4pl1
using sendmail for the emails

php.ini mail related line:
sendmail_path   =   sendmail -t -i  ;for unix only, may supply 
arguments as well (default is 'sendmail -t -i')

now when I test to see the scripts php reports everything is ok and sends back a 
possitive result. and that the mail has been sent. when it hasn't

now I can go to the commandline and send emails no problem but from the web 
pages I can't .. any suggestions would be apreciated. 



--------------
Peter Houchin
Sun Rentals STR Manager
Phone: 03 9329 1455
Fax:   03 9329 6755
[EMAIL PROTECTED]
http://www.sunrentals.com.au/
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **


-- 
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]




Re: [PHP] cant connect to mysql

2001-08-28 Thread Peter Houchin Sun Rentals STR Manager

Is mysql on the remote server? if so then i doubt very much that they would let 
you have root access to the DB... so you need to change your connect line to 
resemble the remote server and if it's a web hosting company that your using as 
a remote server ask for a user name you can use

>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>list-help: <mailto:[EMAIL PROTECTED]>
>list-unsubscribe: <mailto:[EMAIL PROTECTED]>
>list-post: <mailto:[EMAIL PROTECTED]>
>Delivered-To: mailing list [EMAIL PROTECTED]
>X-Apparently-From: <[EMAIL PROTECTED]>
>From: "Sagar N Chand" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Date: Wed, 29 Aug 2001 08:04:40 +0530
>MIME-Version: 1.0
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
>Subject: [PHP] cant connect to mysql
>X-Mozilla-Status: 
>X-Mozilla-Status2: 
>X-UIDL: 6badc33ff2c371e368ef53f676502437
>
>Hi geeks,
>
>I have a strage problem over here. I developed a site which runs fine at my 
home.
>When i hosted it on to the remote server it is giving an error saying cant 
connect
>to mysql. the error is like this
> 
>Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' 
(111) in /home/httpd/html/procbit/login.php on line 17
>
>the line 17 in my code is as follows:
>$db=mysql_connect("localhost","root","password");
>
>please help me out of this problem.
>Please reply me at [EMAIL PROTECTED] 
>
>thank you all
>sagar
>
>


--
Peter Houchin
Sun Rentals STR Manager
Phone: 03 9329 1455
Fax:   03 9329 6755
[EMAIL PROTECTED]
http://www.sun.com.au/rentals
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **


-- 
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]