[SOLVED] exec() command to launch files on server.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Xerk
Forum Newbie
Posts: 2
Joined: Mon Feb 28, 2005 6:30 pm

[SOLVED] exec() command to launch files on server.

Post by Xerk »

Hey, I've read all around on PHP.net and these forums, and everyone seems to be getting this to work after allowing the Apace2 service to interact with Windows Desktop. I still am having trouble.

I just installed Apace 2 with PHP 4 on my machine and everything so far is working. But while using exec() or system() the process is not even starting. I'm running it on a Windows XP machine with SP2 installed.

I would like to be able to launch an applicatoin and pass it arguments and have it show up on the main screen, yet when I view the page, it hangs on loading and no process is started. Is there any permissions I should give to any certain user? I've followed the steps of many people with the same setup and still nothing works.
firepages
Forum Newbie
Posts: 5
Joined: Sun Jul 28, 2002 4:22 am
Location: Perth::Australia

Post by firepages »

so does this not work ?

Code: Select all

<?
exec( 'dir', $yaks ) ;
echo '<pre>';
print_r( $yaks );
?>
Xerk
Forum Newbie
Posts: 2
Joined: Mon Feb 28, 2005 6:30 pm

Post by Xerk »

Turns out it was working, I just wasnt seeing the processes via Remote Desktop Connection.
Post Reply