If calling the backup function can wait till after your output is generated, then
you can echo/print the output call  " flush(); " and then call the backup routine.

Then the backup won't apper to be slowing down as it is running after the output is
send to the user.

brgds

QT sagde:
> Dear sirs,
>
> Actually I am using virtual server and I think I have no write to use
> crontab/ But this methods become to me interesting. I will try to learn more
> about how to use crontab and where can I find that in my virtual server?
>
> If I use include in my script, I need to wait result of included script and
> it takes some time because included script should connect one of the my
> other server and write some data there for backup reason. Actually this
> backup reason is not so important to slow my main script. Thats why I don't
> want to result of the backup writing.
>
> "Jason Barnett" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Qt wrote:
>>
>> > Dear Sirs,
>> >
>> > When I use include, my script is waiting included script results. But I
> just
>> > want to run another local script without wait result.
>> >
>> > Which command I should to use?
>> >
>> >
>> > Best Regards
>>
>> Are you hoping to set up a task as part of a batch for later processing?
>>   There are several ways you could do this.  You can set up crontab /
>> scheduled tasks to run a script every so often.  Then just make sure the
>> script has a datafile / directory that can run all of the tasks at the
>> scheduled time.
>>
>> If this isn't what you're trying to do, leave a message here and give us
>> a better idea of why you want to run the script without waiting and what
>> you intend to do with the result of the "included" script.
>>
>> Jason
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to