Is it possble to run an executable file using php? I made a quick search a found the exec() function but i didn't quite understand it??
designxperts wrote:Is it possble to run an executable file using php? I made a quick search a found the exec() function but i didn't quite understand it??
what did you not understand about [man]exec[/man]?
well what i'm trying to do is that i want to run an executable file directly from the php source to run on the server . for ex. on windows I want to run calc.exe ??
What did you not understand about [man]exec[/man]?
what i understood is that exec() takes a command so what would the command be if i wanted to open for ex. calc.exe? Also what i didn't understand is the second parameter :[, array &output [, int &return_var]] what could that be used for?
i figured it out after i got into linux and understood the commands better