Calling all PHP wizards:
i want a PHP script to be able to kick off an exe on the server it is running on. its running on apache on a windows 2003 server.
i have been fiddling with the exec() function to no avail so far.
the application doesn't have to return any variables to php, and may take time to run so the php processor shouldn't wait for it.
Does anyone know how to do it?
PHP exec, calling executable programs
Moderator: Forum Moderators
-
- Zombie
- Posts: 2101
- Joined: February 20th, 2005, 21:31
-
- Zombie
- Posts: 2101
- Joined: February 20th, 2005, 21:31
-
- Zombie
- Posts: 2101
- Joined: February 20th, 2005, 21:31
i used system() in the end. not sure why exec() wasnt working...
but anyway code ended up like this:
if anyone has any suggestions as to how it could be improved or run separately that would be appreciated, at the moment the rest of the PHP waits for the sync.exe to finish its syncing
but anyway code ended up like this:
Code: Select all
Weird, i get:
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
when i try to post the code. even inside [ codes ]
if anyone has any suggestions as to how it could be improved or run separately that would be appreciated, at the moment the rest of the PHP waits for the sync.exe to finish its syncing