Click to See Complete Forum and Search --> : Help php running on windows 2k


Anon
05-10-2001, 07:13 AM
Hello,
we're group of students of computer science trying to make a practice using php with connection with Access database using ODBC. We've installed php in a 2000 IIS server.

The main issue is we want to restraint the execution of programas using the instruction exec()in php (so it can not execute any program as it seem it can do now) and the access people can have to the server meaning all types of grants the users can have).

Thanks in advance in any help given about this topic.

Anon
05-10-2001, 08:55 AM
I\\\'m also working with php on a 2000 IIS server, but I\\\'m having trouble using the exec() command at all. Basically I\\\'ve got a php file that looks like this:

<?php
exec(\\\"c:\\\\demo.exe\\\");

header(\\\"Location: anotherpage.html\\\");
exit;
?>

Should that work? I\\\'m new to php, so any help would be appreciated.

Thanks,
Nick

toma42
05-10-2001, 12:08 PM
Ok, so your problem is file system security. Make sure the web user has only execute permissions on those files you want it to.

Basicly, think of yourself a screwed because it may be quite a chore.

Good luck