craygo Posted February 27, 2006 Share Posted February 27, 2006 I am using the win32_scheduler module for php. On my pc I get no error but when I put it on my web server I get this error:Warning: Invalid argument supplied for foreach() in My PC Specs:Windows XP SP2IIS 5.1PHP 5.1.2Web server SpecsWindows 2003 ServerIIS 6.0PHP 5.1.2Script:[code]<?$priv1 = win32_scheduler_get_task_info('cmdtest');foreach ($priv1 as $key => $value){echo "$key: $value<br />\n";}?>[/code]Any ideas???ThanksRay Link to comment https://forums.phpfreaks.com/topic/3699-works-on-windows-xp-iis-50/ Share on other sites More sharing options...
craygo Posted February 27, 2006 Author Share Posted February 27, 2006 OK I know why I am getting the error the question is why??here is my new code[code]<?$priv1 = win32_scheduler_get_task_info("start_TE_CSS_Priv1");print ''.gettype($priv1).'';foreach ($priv1 as $key => $value){echo "$key: $value<br />\n";}?>[/code]On my server it returns gettype of array, on the web server it return gettype of boolean!Why!?!?!:)Ray Link to comment https://forums.phpfreaks.com/topic/3699-works-on-windows-xp-iis-50/#findComment-12805 Share on other sites More sharing options...
craygo Posted February 27, 2006 Author Share Posted February 27, 2006 anyone??? Link to comment https://forums.phpfreaks.com/topic/3699-works-on-windows-xp-iis-50/#findComment-12819 Share on other sites More sharing options...
craygo Posted February 28, 2006 Author Share Posted February 28, 2006 I guess I am on my own when it comes to windows stuff. If anyone ever has this problem it is a permissions thing.I got so pissed off I gave the internet guest account read/execute access to the windows folder, because I am not wure what files it needs to run.But thanks anyway.Ray Link to comment https://forums.phpfreaks.com/topic/3699-works-on-windows-xp-iis-50/#findComment-12993 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.