This is a discussion on "Run an EXE" within the PHP Forum section. This forum, and the thread "Run an EXE are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Run an EXE
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
Run an EXE
How can I run an exe via a PHP script?
I tried something like this just to run notepad:
Could someone explain how I can run an executable file by giving the path to it?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|
|
#2
|
||||
|
||||
|
Re: Run an EXE
So what do you want to get from the exe?
You can use
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
||||
|
||||
|
Re: Run an EXE
considered using the standard PHP commands EXEC() or SYSTEM()?
http://www.php.net/manual/en/ref.exec.php
Last Blog Entry: Strict and Transitional Doctype's (Sep 12th, 2008)
|
|
#4
|
||||
|
||||
|
Re: Run an EXE
I tried shell_exec('C:\WINDOWS\system32\notepad.exe');
Error was: Quote:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#5
|
|||
|
|||
|
Re: Run an EXE
Alex Did you get it to work??
__________________
The Net is Dying | We are Battlefield heroes - BFH Forum Vanilla Source - Vanilla Help, and mods
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
#6
|
||||
|
||||
|
Re: Run an EXE
No I would of said.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#7
|
|||
|
|||
|
Re: Run an EXE
ok sorry
__________________
The Net is Dying | We are Battlefield heroes - BFH Forum Vanilla Source - Vanilla Help, and mods
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
#8
|
|||
|
|||
|
Re: Run an EXE
So, is there anyway to run an exec program using PHP, e.g. MS office, photoshop
|
|
#9
|
||||
|
||||
|
Re: Run an EXE
Yeah, the COM class is one way.
I don't think you can control the apps though.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#10
|
|||
|
|||
|
Re: Run an EXE
What do you mean you cannot control the applications? But you can open it using PHP right?
|
|
#11
|
||||
|
||||
|
Re: Run an EXE
Yeah, open but not sure if you could open MS Word, write text, format it and save it from a PHP script.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#12
|
|||
|
|||
|
Re: Run an EXE
OK, thanks for that info. Very helpful....
|
|
#13
|
|||
|
|||
|
Re: Run an EXE
Seems that someone else's problem has been solved
How about your's Alex?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#14
|
||||
|
||||
|
Re: Run an EXE
Nope.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|