Re: Bls: call another PHP script from a PHP script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There are two ways you can do it.
First if you want your script a.php will wait *n* seconds and then load
another page. then, use *sleep(n)* function. In this case, a.php page will
never displayed to visitor.
Second if you want to show a.php to visitor and after a certain period of
time the page will be redirect to another page then use Javascript function
setTimeout() or delay().
I hope it meet your expectation.

Aminul

On Tue, Oct 7, 2008 at 12:20 PM, dea andrea <yayang_dea@xxxxxxxxx> wrote:

>   save your last time as session... and then, compare with now time...
> substract now time with the last time saved in session... if larger than $x
> minute... then do the script at a.php file... (it will be easier if you make
> function at a.php)
>
> best regards,
>
> Hendra andrea
>
> Visit My Site :
>
> And Visit Clef's Site to :
>
> --- Pada Sen, 6/10/08, kranthi <kranthi117@xxxxxxxxx<kranthi117%40gmail.com>>
> menulis:
>
> Dari: kranthi <kranthi117@xxxxxxxxx <kranthi117%40gmail.com>>
> Topik:  call another PHP script from a PHP script
> Kepada: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com>
> Tanggal: Senin, 6 Oktober, 2008, 10:54 AM
>
> 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.
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
> Are you looking for a PHP job? Join the PHP Professionals directory Now!
> http://www.phpclasses.org/professionals/Yahoo! Groups Links
>
> __________________________________________________________
> Yahoo! sekarang memiliki alamat Email baru.
> Dapatkan nama yang selalu Anda inginkan di domain baru @ymail dan
> @rocketmail.
> Cepat sebelum diambil orang lain!
> http://mail.promotions.yahoo.com/newdomains/id/
>
> [Non-text portions of this message have been removed]
>
>  
>



-- 
Md. Aminul Islam
http://www.shopno-dinga.com
Mob: 8801671670797


[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux