•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 392,068 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,246 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 7006 | Replies: 2
![]() |
•
•
Join Date: Sep 2004
Location: in the j00-kay
Posts: 114
Reputation:
Rep Power: 4
Solved Threads: 5
If you are using php on a linux machine you can use the system function.
http://uk2.php.net/manual/en/function.system.php
Or if you are using Windows machines, you can use shell_exec function.
http://uk2.php.net/shell_exec
example:
[PHP]$Info = explode("\n", shell_exec(".\\progs\\program.exe"));
[/PHP]
Will dump the output of program.exe in folder /progs/ to $Info using next line carriage as the exploder/seperator.
Hope that helps
http://uk2.php.net/manual/en/function.system.php
Or if you are using Windows machines, you can use shell_exec function.
http://uk2.php.net/shell_exec
example:
[PHP]$Info = explode("\n", shell_exec(".\\progs\\program.exe"));
[/PHP]
Will dump the output of program.exe in folder /progs/ to $Info using next line carriage as the exploder/seperator.
Hope that helps
I'm pink, therefore, im spam.
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- Overloading PHP Functions (PHP)
- Image functions in php (PHP)
- SMS Message With PHP/MYSQL (PHP)
- Dictionary of Functions (Python)
- how to call these functions? (C#)
- Question about Functions (C++)
Other Threads in the PHP Forum
- Previous Thread: how to make member expire after so many days with php script
- Next Thread: Slashes before Double Quote marks


Linear Mode