On 3/28/07, Chris <[EMAIL PROTECTED]> wrote:
> There is a lot of require_once(' ') in the script and if i am not in the
correct folder the script won't work.
That is something php related ;)
Change your require to something like this:
require(dirname(__FILE__) . '/other_file_name.php');
--
There is a lot of require_once(' ') in the script and if i am not in the correct folder the script won't work.
That is something php related ;)
Change your require to something like this:
require(dirname(__FILE__) . '/other_file_name.php');
--
Postgresql & php tutorials
http://www.designmag
Shell command as cron jobs work and errors are also send to the local mail, but
php scripts are not executed
Does running the command manually work?
If not, there's your problem.
If it does, then it's a cron issue.
Still something you should ask about on a mac mailing list.
--
Postgresql
On March 28, 2007, Chris wrote:
> Yvan wrote:
> > Hello all,
> >
> > I don't know if it's the correct list, but as a php script is involved
>
> Nope, not the right list. Cron isn't running - which has absolutely
> nothing to do with php.
>
> > I try to start a set up a crontab job with cron
ne on a centos box.
Thank anyway for the hints
yvan
> Original Message
> > Date: Wednesday, March 28, 2007 03:55:09 PM -0700
> > From: Yvan <[EMAIL PROTECTED]>
> > To: php-general@lists.php.net
> > Cc:
> > Subject: [PH
Yvan wrote:
Hello all,
I don't know if it's the correct list, but as a php script is involved
Nope, not the right list. Cron isn't running - which has absolutely
nothing to do with php.
I try to start a set up a crontab job with crontab -e, which should start a php
script:
*/10*
Yvan wrote:
Hello all,
I don't know if it's the correct list, but as a php script is involved
I try to start a set up a crontab job with crontab -e, which should start a php
script:
*/10* * * * cd /Users/yvan/Sites/est-pac/ ;
/usr/bin/php /Users/yvan/Sites/est
Hello all,
I don't know if it's the correct list, but as a php script is involved
I try to start a set up a crontab job with crontab -e, which should start a php
script:
*/10* * * * cd /Users/yvan/Sites/est-pac/ ;
/usr/bin/php /Users/yvan/Sites/est-pac/controlle
[EMAIL PROTECTED] wrote:
> On W3K you could use this as the run line in
> Scheduled Tasks and probably the same in XP
> although I have not tested this. The same
> components exist in the W2K version although
> may be in different locations/names.
>
> Run: cmd /c "c:\php\php.exe -q c:\path\to\php\
o\php\file\
Run as: username/pass with security acess to
both php.exe and the file.php
YMMV
pjn
- Original Message -
From: "Jochem Maas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc:
Sent: Friday, February 18, 2005 10:06 PM
Subject: Re: [PHP] Crontab for Windows
bob wrote:
Hi,
I am trying to schedule the running of some PHP scripts on my Win2K PC
at home.
On my live server I use Linux, so am fully familiar with Crontab. I am
not that familiar with running scripts using the scheduler in Win2K though.
So far what I have is:
C:\php\php.exe -q c:\path\to\p
bob wrote:
> C:\php\php.exe -q c:\path\to\php\file.php
>
> But this doesn't seem to do anything..the task manager in the windows
> scheduler just keeps saying that the task has not been run.
>
> Any suggestions?
The Task Scheduler uses the 'at' command under the hood, same as cron...
Perhaps if y
> On my live server I use Linux, so am fully familiar with Crontab. I am
> not that familiar with running scripts using the scheduler in
> Win2K though.
I use nncronlite which is a cron implementation for windoz (familiar
crot.tab file);
http://www.batchconverter.com/nnCronLITE-download-16062.sht
Hi,
I am trying to schedule the running of some PHP scripts on my Win2K PC
at home.
On my live server I use Linux, so am fully familiar with Crontab. I am
not that familiar with running scripts using the scheduler in Win2K though.
So far what I have is:
C:\php\php.exe -q c:\path\to\php\file.php
nute on
my linux box
-Original Message-
From: Tim Traver [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 27, 2004 1:17 AM
To: Ryan Schefke; Php-General-Help; [EMAIL PROTECTED]
Subject: Re: [PHP] Crontab PHP Script
Not sure if this is different in linux, but usually the first parameter is
the minutes, and
Not sure if this is different in linux, but usually the first parameter is
the minutes, and if you had 01 in it, that means that it would do it once
an hour (i.e. 12:01, 1:01, 2:01, etc...
They should all have stars to do it once a minute.
In freeBSD, it would look like this :
* * *
On Sat, 2004-06-26 at 19:34, Ryan Schefke wrote:
> Hi,
>
>
>
> Can someone please give me some guidance. I'd like to run a php script
> every minute (in reality every night, but just testing). I've done some
> reading and found that a crontab is the best way to go (I think). I'm using
> Ples
Ryan Schefke wrote --- napísal::
Hi,
Can someone please give me some guidance. I'd like to run a php script
every minute (in reality every night, but just testing). I've done some
reading and found that a crontab is the best way to go (I think). I'm using
Plesk 7 on a Linux box and I have roo
Hi,
Can someone please give me some guidance. I'd like to run a php script
every minute (in reality every night, but just testing). I've done some
reading and found that a crontab is the best way to go (I think). I'm using
Plesk 7 on a Linux box and I have root access.
I made a quick php
lt;[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 3:45 PM
Subject: [PHP] crontab
> Can I run a php script in crontab?
> Do I echo or print?
> Anyone doing it?
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
&
> Can I run a php script in crontab?
> Do I echo or print?
> Anyone doing it?
Well, why don't I just completely misunderstand the question. Sorry,
everyone.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
: Tuesday, March 04, 2003 3:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] crontab
Cal, Liam, Jimmy,
Thanks. If this is a serious security hazard, could you show me some code
that is more secure? I am the "root". Mind you I've never worked with
crontab before. I want to run /var
i think one of us misunderstood your posting ...
my suggestion was simply to put a php script in your crontab to be run
whenever you set it to go .. if you are writing a php script to update
crontab for you as Liam understood your message it is not a good idea (
actually it's a really bad idea :)
> I want to run /var/www/backup_mysql.php
Are you just trying to backup your MySQL database? If so, check this out:
http://members.lycos.co.uk/wipe_out/automysqlbackup
Edit a view configuration variables (db to be backed up, path, etc), throw it in
/etc/cron.daily, and forget about it.
I does
Cal, Liam, Jimmy,
Thanks. If this is a serious security hazard, could you show me some code that is more
secure? I am the "root". Mind you I've never worked with crontab before. I want to run
/var/www/backup_mysql.php I suppose I should start by putting it somewhere not
publicly accessible?
Tha
http://www.christianperformer.com
-Original Message-
From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 2:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP] crontab
Can I run a php script in crontab?
Do I echo or print?
Anyone doing it?
--
PHP General Mailing List
> Can I run a php script in crontab?
> Do I echo or print?
> Anyone doing it?
This is a serious security hazard. However, what you could do is have a PHP
page set cron settings (such as name of file, location, frequency, and
importance), then have another cron job (running at a decent frequency) d
Can I run a php script in crontab?
Do I echo or print?
Anyone doing it?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Tuesday, September 3, 2002, 7:55:56 AM, you wrote:
aac> I'm looking for the approximate solution of mailing out (or doing anything
aac> else )
aac> timed by cron(tab) along with use of mysql as means of identification and
aac> storing
aac> of the dates in multiuser enviroment.
aac> Initial da
I'm looking for the approximate solution of mailing out (or doing anything
else )
timed by cron(tab) along with use of mysql as means of identification and
storing
of the dates in multiuser enviroment.
Initial date and interval of recurring event is to be set up by a user.
May you know some open s
[snip]
Program it into the homepage to run once a day. As long as you get one hit
per day, then it'll run.
...
> I need to run a daily script on our website but I'm trying to avoid using
> CRONTAB.
>
> Is there any way that I can run this daily ?
[/snip]
But if you need to run it only once per
Program it into the homepage to run once a day. As long as you get one hit
per day, then it'll run.
---John Holmes...
- Original Message -
From: "Mauricio Cuenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 05, 2002 9:15 AM
Subject: [PH
Hello,
I need to run a daily script on our website but I'm trying to avoid using
CRONTAB.
Is there any way that I can run this daily ?
Is there any equivalent to ASP's Application_OnStart for PHP ?
Thanks,
_
Mauricio Cuenca
[EMAIL PROTECTED]
--
PHP General Mailing List
YES!! MY SCRIPT RUN AND I'M NOT RECEIVING ANY EMAIL!
Thanks to all!!
Specials thanks to Miguel and Dan!!
Regards! Julian
- Original Message -
From: Analysis & Solutions
To: PHP List
Sent: Friday, April 05, 2002 9:44 PM
Subject: Re: [PHP] CRONTAB
On Fr
On Fri, Apr 05, 2002 at 09:42:02PM -0300, Julian wrote:
> 0 0 * * * /usr/bin/php /path/to/my/script.php
>
> But I continue receiving an email each time that the script run that say:
>
> X-Powered-By: PHP/4.0.6
> Content-type: text/html
Those two lines are PHP's default output. Crontab, by defa
On Fri, 5 Apr 2002, Julian wrote:
> My script run fine with:
>
> 0 0 * * * /usr/bin/php /path/to/my/script.php
>
> But I continue receiving an email each time that the script run that say:
>
> X-Powered-By: PHP/4.0.6
> Content-type: text/html
PHP thinks it's producing output to be sent via a w
#x27;t put content of this
type
Do you know what is the problem now??
Regards and thank for your time!! Julian
- Original Message -
From: Miguel Cruz
To: Julian
Cc: [EMAIL PROTECTED]
Sent: Friday, April 05, 2002 7:26 PM
Subject: Re: [PHP] CRONTAB
On Fri, 5 Apr 2002, Julian wrote:
> I
On Fri, 5 Apr 2002, Julian wrote:
> I am attempting execute automatically an script PHP, all the days at a
> certain hour.
>
> I configured the cron to executes it, but when it is executed, instead of
> working, I receive an email in
> my main account where say:
>
> /home/vipteam/public_html/dis
Hello to all !!!
I write you because I have the following question:
I am attempting execute automatically an script PHP, all the days at a
certain hour.
I configured the cron to executes it, but when it is executed, instead of
working, I receive an email in
my main account where say:
/home/vip
Hello,
I am facing some problem in the crontab...Can anyone tell me how to
solve this
Actually i have written the php script to send mail to the users after a
week.In the crontab i have made a entry so that it will trigger after
12.05.
5 0 * * * lynx http://info/php/MailForm.php
]]
> Sent: mercredi 27 février 2002 8:04
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Crontab
>
>
> On Wednesday 27 February 2002 13:11, Uma Shankari T. wrote:
> > Hello,
> >
> >
> >I need to run one php script using crontab.I am having this doubt.If
> &g
credi 27 février 2002 8:04
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Crontab
On Wednesday 27 February 2002 13:11, Uma Shankari T. wrote:
> Hello,
>
>
>I need to run one php script using crontab.I am having this doubt.If
> the phpscript run in the command prompt then only w
On Wednesday 27 February 2002 13:11, Uma Shankari T. wrote:
> Hello,
>
>
>I need to run one php script using crontab.I am having this doubt.If
> the phpscript run in the command prompt then only we can run the script
> using crontab...please tell me how do i go about with this..
You can have
see whether the command line option is available on your server.
sanjay
- Original Message -
From: "Uma Shankari T." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 10:41 AM
Subject: [PHP] Crontab
Hello,
I need to ru
Compile php as a CGI then write a script that begins as such.
#!/usr/local/bin/php -q
Chmod on file and place in crontab.
- Original Message -
From: "Uma Shankari T." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 11:11 PM
Hello,
I need to run one php script using crontab.I am having this doubt.If
the phpscript run in the command prompt then only we can run the script
using crontab...please tell me how do i go about with this..
-Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vi
Arnold,
In the minutes field on crontab, you can add as many values as you want
separated by a colon. Try somthing like this...
00,05,10,15,20,25 and so until 55 * * *
^
THIS IS A MINUTES FIELD WITH MANY VALUES
We use it here and it does the job fine. Try rea
Didn't you just ask this a few days ago?
In your while loop put a sleep(300) which will sleep for 300 seconds after
processing X amount of emails.
--Joe
On Fri, Feb 22, 2002 at 02:53:10PM +0800, Arnold Gamboa wrote:
> hi there.
>
> is there a way to tell crontab to do:
>
> "run script every 5
sleep is in seconds. so that would be 5 minutes.
On Thu, 22 Feb 2001, Arnold Gamboa wrote:
> hi,
>
> thanks again. questions:
>
> 1. sleep(300) would mean pause by 300 mins, right? That's why i thought you
> mean usleep(300) - 300 microseconds. please comment
> 2. what you mean is i will sen
1.) sleep() is in seconds - plain old seconds - so sleep(300) == 5 minutes.
2.) yes - send, sleep, send, ...
--Joe
On Thu, Feb 22, 2001 at 11:09:05PM +0800, Arnold Gamboa wrote:
> hi,
>
> thanks again. questions:
>
> 1. sleep(300) would mean pause by 300 mins, right? That's why i thought yo
> 1. sleep(300) would mean pause by 300 mins, right? That's
> why i thought you mean usleep(300) - 300 microseconds.
No, 300 seconds - 5 minutes.
Chris
hi,
thanks again. questions:
1. sleep(300) would mean pause by 300 mins, right? That's why i thought you
mean usleep(300) - 300 microseconds. please comment
2. what you mean is i will send 5000 emails, then pause and send again?
Thanks for your help.
> I send roughly 1M of these and put a sle
BTW when it sleeps PHP takes up no noticable resources. Also I'm running the
php binary to send out these messages (that way I can use screen and make sure
that my browser doesn't crash, os freeze, etc.)
--Joe
On Fri, Feb 22, 2002 at 03:36:33PM +0800, Arnold Gamboa wrote:
> thanks for the commen
I send roughly 1M of these and put a sleep() (not usleep - that's microseconds)
into the while loop - I've come up with a decent balance that sends out a good
number (like 5000) and then sleeps just long enough to get them out of qmail's
queue, then it sends another 5000 (and so on).
Usually take
ECTED]
www.phpbeginner.com
-Original Message-
From: Arnold Gamboa [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 4:37 PM
To: Joe Stump
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] crontab help
thanks for the comment
let's just say i have 100k emails to send... don't you think
put a sleep(300); at the end of your while() loop - I did this on my mass
mailer and it worked like a charm.
--Joe
On Fri, Feb 22, 2002 at 02:53:10PM +0800, Arnold Gamboa wrote:
> hi there.
>
> is there a way to tell crontab to do:
>
> "run script every 5 mins for 1 hour"..
>
> i have this m
thanks for the comment
let's just say i have 100k emails to send... don't you think that will drain
the system resources if i send it all at once even if you have usleep(300)
on each while?
your comment please.
> put a sleep(300); at the end of your while() loop - I did this on my mass
> mailer
hi there.
is there a way to tell crontab to do:
"run script every 5 mins for 1 hour"..
i have this mass email script that is so huge that i need it to chunk into
records and make sure that it will run every 5 mins for 1 hour.
Thanks for any help.
58 matches
Mail list logo