ptonev.com

Products and Projects => php Mail Notification => : dgammon May 23, 2004, 04:44:57 AM



: Must be doing something wrong
: dgammon May 23, 2004, 04:44:57 AM
Sorry for such a broad subject there but I have no idea what I may be doing wrong.

Let me ask a few questions to see if I have edited things correctly:

my phpMailNotification.cfg file has:
mail.*mydomain.com*;support;*password*;4175551212@mobile.mycingular.com;%new%/%total%@%account% - %emails%;

my checkm.sh file is:

#!/bin/bash
cd /home/*domain*/
php phpMailNotification.php

for testing purposes I have my cron checking every minute:
* * * * *   http://domain.com/checkm.sh

I have changed the MNOTIFY_CFG_PATH in phpMailNotification.php

Nothing seems to work.  I do have other cron scripts running successfully.

Do you have any idea what I may be missing that is causing it not to work?

I am not familiar with *.sh files so perhaps there?

thanks for your response


: update on email response
: dgammon May 23, 2004, 04:48:18 AM
okay, my cron is sending this to my default email box:

/bin/sh: http://domain.com/checkm.sh: No such file or directory

perhaps I have an incorrect cron command?  what do you think?


: Must be doing something wrong
: dgammon May 23, 2004, 07:29:44 AM
ok, well I have been messing around with it a little and got all the error removed out of cron job.  Now it is giving me "No input file found" or something like that.  Any ideas?


: Must be doing something wrong
: ptonev May 24, 2004, 08:04:51 AM
First you don't must call (execute) SH files from browser. You can call PHP file from browser.

SH is shell command file on Linux/Unix.

checkm.sh must be add in cron filter that it call on very several time. That this will be call PHP that will be check your email account.

Second check for right on directory when you put php file. It must have 0777 right that can php make file and write it.

That is. Try again and write if you try faild.


: Must be doing something wrong
: Patches September 24, 2004, 08:42:07 PM
I found an easier to make cron run this, if you php is a cgi install.

First add this to the top of the php script
#!/usr/local/bin/php -q

Next use this as your cron line

* * * * php /path/phpMailNotification.php


: Must be doing something wrong
: ptonev September 24, 2004, 09:46:55 PM
Hi, Patches.

I am not Linux/Unix expert and con't comment your message.

best regards,


Sorry, the copyright must be in the template.
Please notify this forum's administrator that this site is missing the copyright message for SMF so they can rectify the situation. Display of copyright is a legal requirement. For more information on this please visit the Simple Machines website.