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

Need help to modify php ELSE code
I'm trying to find a way to have the php code display a message if there is no inventory listed in t

Text Not Displaying Correctly With PHP:GD
I recently moved servers and since then I have noticed that one line of text is showing weirdly.

Values disappear from my array :( HELP!
hey all, I have a lil mysql/php/apache script that queries a database
and pulls put 5 integers.

Create comparison matrix?
I want to create a comparison script for forum software and was wondering is there any tutorial or b

Blocking video streaming
Hello everyone,

I post a message here because i didn't find any solution yet.
I just finis

array ...
hi
Code: function formatCategories($categories, $parentId)
{
// $navCat stores all child

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

How a counter of users ? such as ---> (231 Viewing)
I want to count how many users are actually viewing the page, How is that possible?
Thank you guy

date function help
i need help with date function

Code: [Select]<!DOCTYPE HTML PUBLIC "-//W3C//DTD H

Can't seem to capture a variable in a chained select
I'm *this* close to having a chained select running but for some reason it doesn't seem to be pickin

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