Re: Re: I don't want to use include
| From: | Ulrik S. Kofod | Date: | Wed, 23 Jun 2004 22:16:13 +0000 |
| Subject: | Re: Re: I don't want to use include | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188918@lists.php.net to get a copy of this message | ||
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" <jasbarne@indiana.edu> wrote in message
> news:20040623043737.11434.qmail@pb1.pair.com...
>> 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
>
>