FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


how to stop firefox browser opening in the sheduled task





najubudeen
Hi, i have set a sheduled task with php script. It will delete mysql table records in 24 hours from inserted into table. My sheduled task work correctly at the appropriate time. but, It opens firefox browser lastly.

This is the pathe at run option in the sheduled tsk : C:\PROGRA~1\MOZILL~1.0BE\firefox.exe http://localhost/codes / del_script.php


This is the pathe for start in : C:\PROGRA~1\MOZILL~1.0BE

and

I have installed wampserver in the C:\wamp drive.

My question is how to stop opening firefox browser when sheduled task run in time.

Any body help me?
jmraker
It looks like you are using firefox to get the page which executes the script.
You don't need to launch a full browser.

Normally on the server you can setup a cron job which uses the command line version of php to call your script
or uses a command line networking program like wget/curl/links/lynx to get the page

Those same programs are available for windows in cygwin http://cygwin.org/ and elsewhere

You'd use one of:
Code:

c:/path_to_php/bin/php.exe c:/wamp/www/site/codes/del_script.php"
wget -q -O /dev/null "http://localhost/codes / del_script.php"
curl -s  "http://localhost/codes / del_script.php" > /dev/null
links -dump "http://localhost/codes / del_script.php" > /dev/null
lynx -dump "http://localhost/codes / del_script.php" > /dev/null

instead of loading firefox
If you use the command line version of PHP the $_SERVER array won't contain several values and the initial current directory will not be the same (you'll probably have to set the current directory before it works with the files)
Related topics
Netscape patches 1-day-old browser
IE7 Tabbed-Browsing Not Enough?
Spoofing in Mozilla ( FireFox) browser flaw
Speed Up Firefox Browser Upto 10 times!!!
(official) Firefox & Thunderbird 1.5 Beta2 Now Available
Download with Firefox
Opera browser
firefox tool bar problem
Firebox and acrobat reader
portable apps
php / javascript script works in FireFox browser, but not IE
Mozilla Firefox
how to view tamil (utf8 - unicode font) in Firefox browser
Firefox Button
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.