[PHP] Re: I don't want to use include
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] Re: I don't want to use include
Qt wrote: 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? This isn't exactly a PHP issue, it's your operating system. For Linux you use crontab, for Windows you use Scheduled Tasks. Talk to your web hosting company for information on how to do this (or if it is an option). Some tips to get you started: http://www.nerc-online.com/support/www/crontab.html http://www.iopus.com/guides/winscheduler.htm Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: I don't want to use include
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
[PHP] Re: I don't want to use include
I sometimes use JS to open a new window outside the screen and close it at the bottom. Qt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: I don't want to use include
You may want to use the exec() function. Please refer www.php.net/exec for more information Regards, Amit www.digitalamit.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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: I don't want to use include
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