Jump to content


Photo

works on windows xp IIS 5.0


  • Please log in to reply
3 replies to this topic

#1 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 27 February 2006 - 07:13 PM

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 SP2
IIS 5.1
PHP 5.1.2

Web server Specs
Windows 2003 Server
IIS 6.0
PHP 5.1.2

Script:
<?
$priv1 = win32_scheduler_get_task_info('cmdtest');
foreach ($priv1 as $key => $value){
echo "$key: $value<br />\n";
}
?>

Any ideas???

Thanks
Ray

#2 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 27 February 2006 - 07:31 PM

OK I know why I am getting the error the question is why??

here is my new code

<?
$priv1 = win32_scheduler_get_task_info("start_TE_CSS_Priv1");
print ''.gettype($priv1).'';
foreach ($priv1 as $key => $value){
echo "$key: $value<br />\n";
}?>

On my server it returns gettype of array, on the web server it return gettype of boolean!

Why!?!?!

:)

Ray

#3 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 27 February 2006 - 08:13 PM

anyone???

#4 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 28 February 2006 - 01:34 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users