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?

302 Like 19 Dislike
Previous php-forum Next php-forum
Other php-forum

how can i make a .gif images for my site
Dear Friends ,

Pls solve my problem , I am starting making new site but i dont know how can i

Login script (probably a simple error)
dbConfig.php
Code: <?
// Replace the variable values below
// with your specific dat

this code is not working????
it says this error.. Warning: Division by zero in ..

the variables are correct, so why is th

Combining Two Queries
I have two scripts that each work fine by themselves. One is a search script with a variable that de

Java API in PHP?
I have an application that we use internally here at the office.

The software company provide

$_POST variable un-useable
I'm trying to use a $_POST variable in a mysql update statement but i can't use it for some unknown

Preserving user-entered linebreaks
Hi, I'm building a web 2.0 thingy from scratch and I wanna display text which users input. It's all

Rss feed question
Hi

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

Undefined variable when using $_SERVER['PHP_SELF']
Hi guyz, please suggest me something...
On first.php I have one input field NAME, and on posting

Images in email problem
I found this script for sending emails, it works but if the email has <img src="image.jp

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