Execute external applications in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
klad
Forum Newbie
Posts: 1
Joined: Tue Feb 24, 2004 2:51 pm

Execute external applications in PHP

Post by klad »

How do you execute an exe aplication from a php script?

I think it's with the exec() function, but i don't know how to use it. can you put an exemple of its usage?

Let's suppose i have an application in my root directory, and i want to execute it from my script which let's suppose it's in the same directory. How will you do that? And if the script and the application are in different directories?
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

http://www.php.net/exec you have some examples.. check it
Post Reply