yes.. the project i m doing is to stimulate a virtual cricket environment.(here nearly 5 T20 matches will take place with nearly half an hour gap between the successive matches) where the php script i m referring to gives the output of every ball. and the schedule cant be constant because the time varies at the end of over, end of match... and the time depends upon the output of the previous instance of the script And for the solution u mentioned.. IMO AJAX solution is better than having a scheduled task for refreshing the PHP script. (i have a dedicated computer for this purpose and the browser will always remain on. this may seem a bit weird to u but i do hav 1). Kranthi. On Tue, Oct 7, 2008 at 11:24, Joe Forsythe <jforsythe@xxxxxxxxxxxxxxxxxx>wrote: > What is the end result/output of what you're going after? If you give us > some details on what it's going to be doing after the processing happens, > maybe we can help you come up with a different/better solution. > > If you're able to do an AJAX solution, you've obviously got an "always on" > connection. My suggestion to you is to set up a scheduled task on the > computer that would be running the AJAX and have it refresh the page with > the PHP script. > > Again, I'm sort of grasping at straws without real details about what the > project will be doing in the end. For instance, I'm EXTRMELY curious about > what the project is doing that you can't have a constant schedule. > > -- > > Joe > > From: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com> [mailto: > php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com>] On > Behalf Of kranthi > Sent: Monday, October 06, 2008 11:09 PM > To: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com> > Subject: Re: call another PHP script from a PHP script > > > yeh i agree with you... had the time interval been constant i would hav > requested the server admin to setup the cron jobs for me. since it is > variable i want to know if it is possible to change the cron jobs from a > PHP > script.. > > and regarding the refreshing the page manually... i m thinking of that via > AJAX. since javascript has got more time handling functions than PHP... > > Kranthi. > > On Tue, Oct 7, 2008 at 09:08, Joe Forsythe <jforsythe@xxxxxxxxxxxxxxxxxx<jforsythe%40mosaiccreative.com> > <mailto:jforsythe%40mosaiccreative.com <jforsythe%2540mosaiccreative.com>> > >wrote: > > > I'm afraid you've got truly limited options, as that is *exactly* what > > cron jobs and scheduled tasks are meant for. If you don't have > permissions > > to set up a scheduled task, I would consider speaking in a very sweet > > voice to your server admin and have them set one up for you. You'll find > > that chocolate chip cookies are quite well received. > > > > Or you could set an alarm to go off every half hour then go refresh the > > page with the script on it. > > > > Speaking of... If you've got a computer with an always on connection at > > home, you could set something up to refresh the page for you every half > > hour. > > -- > > Joe > > > > > > > i forgot this script has a prob > > > "Maximum execution time of 60 seconds exceeded" > > > mine needs to execute continuously for about a week. (file.php will > > > run once now, again after nearly half an hour, and again after half an > > > hour and so on) > > > > > > On 10/07/2008, kranthi117@xxxxxxxxx <kranthi117%40gmail.com> <mailto: > kranthi117%40gmail.com <kranthi117%2540gmail.com>> > <kranthi117%40gmail.com> < > > kranthi117@xxxxxxxxx <kranthi117%40gmail.com> <mailto: > kranthi117%40gmail.com <kranthi117%2540gmail.com>> > <kranthi117%40gmail.com>> wrote: > > >> yeh thanks > > >> > > >> On 10/06/2008, LuCiaNo - CeTre <web@xxxxxxxxxxxx <web%40cetre.com.br> > <mailto:web%40cetre.com.br <web%2540cetre.com.br>> <web%40cetre.com.br>> > > wrote: > > >>> <?php > > >>> > > >>> //some php script > > >>> > > >>> sleep(1); > > >>> include("file.php"); > > >>> > > >>> //where sleep(1) is a one second to wait before call file.php > > >>> > > >>> ?> > > >>> > > >>> Is this ? > > >>> > > >>> > > >>> kranthi wrote: > > >>>> > > >>>> Hi, > > >>>> > > >>>> i am currently executing a php script a.php. the script a.php should > > >>>> call > > >>>> itself after 'n' number of seconds. here 'n' is a variable number of > > >>>> seconds. please suggest me a method to do this... > > >>>> > > >>>> also please note that i dont have access to 'cron jobs' on my web > > >>>> server. > > >>>> > > >>>> Kranthi. > > >>>> > > >>> > > >>> > > >> > > >> > > >> -- > > >> Kranthi. > > >> > > > > > > > > > -- > > > Kranthi. > > > > > > > > > > > [Non-text portions of this message have been removed] > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed]