Jump to content


problem with exec command executing the program in the background

  • Please log in to reply
1 reply to this topic

#1 hanhao

  • Members
  • PipPip
  • Member
  • 10 posts

Posted 29 May 2006 - 03:38 AM

i am running xampp on my computer from apachefriends.org, it's a apache server

this is the php script


exec ('notepad');

but when i execute the php script on my computer , notepad doesnt not run

i used a process viewer and discovered that notepad is running in the background and i cannot see it

does anyone know how NOT to make it run in the background? i wan to see the notepad window on the apache server (my computer)

#2 Ferenc

  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 29 May 2006 - 06:17 PM

I have no idea if notepad is a service, but, go into the services manager (from the administrative tools in control panel) and be sure the service is set up to be able to interact with the desktop.

If apache is logged on to the same account as you are, it should work
Everything you want to know is here.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users