Executing an exe


Posted on 16th Feb 2014 07:03 pm by admin

Hi. I have some bizarre problem with exec (other any other method) to launch exe's. I am making a game server booking system and the part that is not working is the one with the launching the server itself. Its not connected to the server exe's as far as I know because I can't launch no exe at all. The closes thing I have come is launching the process, but the window does not show up. Here is the code I am using now:
Code: [Select]$commandString = 'start /b notepad.exe';
pclose(popen($commandString, 'r'));I have also tried WshShell.Run and psexec.exe method. All of them yields the same results... nothing. It launches the process (it shows up in the task manager process tab), but does not launch the application itself (does not show up in task managers applications tab) and the window is not visible. I would expect it to run the exe (in this case notepad), but it doesn't. I think it could be something to do with php.ini or somewhere else in the configs. Are there any things I should turn on when I want to launch apps?

No comments posted yet

Your Answer:

Login to answer
302 Like 19 Dislike
Previous forums Next forums
Other forums

Rss feed question
Hi

My blog and my website are different. Am i able to take my rss feed
from my blog and p

Auto install
Hi I have a directory lets say "apps" that I then have more folders ie "email",

BackButton Behaviour in AJAX
I have an ASPX Page AJAX Enabled!The page has a gridView and a DDL for filtering on it. The Gridview

generating random codes
Hi guys n gals,

I have a requirement to generate 250,000 unique codes...

These codes a

storing results of a function - previous result overwritten with new result
I have created a function to validate input.

function validate_dimension($value,$name) {
<

New Search Engine problem
Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of t

PHP error. Need help urgently
Hi,

I am programming a php site and have a problem that i just cant find out how to fix. When

How to read CSS message data
Hi,
I have a requirement here. When working as a Dev angel for multiple customers its really di

Php mysql - select?
Hi i have this code:
Code: $iteminfo = mysql_query("SELECT desc FROM wc_items WHERE itemid =

php is not recognized as an internal or external command
Hello,

I am trying to bake the code in CakePHP through my console.
I have changed my Path

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash