web_master Posted January 17, 2009 Share Posted January 17, 2009 Hi, I want to do this: When I turn on the computer start the browser (from start/StartUp - Firefox), BUT only for a second because the Firefox will open on "HOME" site, there will be a PHP script which will send the "datetime" into dBase, and the will browser close "automatic" ... Or What is the other solution to PHP script send the datetime into dBase when I turn on the computer? thnxs Link to comment https://forums.phpfreaks.com/topic/141222-browser-send-a-date-and-close/ Share on other sites More sharing options...
DarkWater Posted January 17, 2009 Share Posted January 17, 2009 Umm...what? Link to comment https://forums.phpfreaks.com/topic/141222-browser-send-a-date-and-close/#findComment-739153 Share on other sites More sharing options...
MatthewJ Posted January 17, 2009 Share Posted January 17, 2009 You could run a logon script that would execute a php script. I do something similar in a windows environment using the system account so the person never sees the command prompt, it just opens, executes the script, then closes in the background. Link to comment https://forums.phpfreaks.com/topic/141222-browser-send-a-date-and-close/#findComment-739157 Share on other sites More sharing options...
web_master Posted January 17, 2009 Author Share Posted January 17, 2009 1. Turn on Computer 2. When Win start, from START/StartUp will start Firefox 3. Firefox-es homepage is: http://localhost/index.php?senddate=true 4. Somehow will Firefox close "by self". Link to comment https://forums.phpfreaks.com/topic/141222-browser-send-a-date-and-close/#findComment-739158 Share on other sites More sharing options...
DarkWater Posted January 17, 2009 Share Posted January 17, 2009 Why would you start firefox instead of just directly calling the script from the command line? Link to comment https://forums.phpfreaks.com/topic/141222-browser-send-a-date-and-close/#findComment-739161 Share on other sites More sharing options...
web_master Posted January 17, 2009 Author Share Posted January 17, 2009 One of computer is only for a one work. So every works goes into one Dbase. I want to put the time of turning on of the computer into same database too. Link to comment https://forums.phpfreaks.com/topic/141222-browser-send-a-date-and-close/#findComment-739168 Share on other sites More sharing options...
corbin Posted January 17, 2009 Share Posted January 17, 2009 What is the operating system of the computer? Link to comment https://forums.phpfreaks.com/topic/141222-browser-send-a-date-and-close/#findComment-739172 Share on other sites More sharing options...
MatthewJ Posted January 17, 2009 Share Posted January 17, 2009 As we both stated... do it with a command line script, php can't close the browser. Link to comment https://forums.phpfreaks.com/topic/141222-browser-send-a-date-and-close/#findComment-739173 Share on other sites More sharing options...
web_master Posted January 17, 2009 Author Share Posted January 17, 2009 OS is windows XP Link to comment https://forums.phpfreaks.com/topic/141222-browser-send-a-date-and-close/#findComment-739177 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.