Jump to content

Archived

This topic is now archived and is closed to further replies.

craygo

works on windows xp IIS 5.0

Recommended Posts

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:
[code]<?
$priv1 = win32_scheduler_get_task_info('cmdtest');
foreach ($priv1 as $key => $value){
echo "$key: $value<br />\n";
}
?>[/code]

Any ideas???

Thanks
Ray

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.