Page 1 of 1

php exec function

Posted: Tue Feb 13, 2007 2:30 am
by asmitaisit
I wonder if i can effectively use php exec() to compile and execute a java or C file which if stored on web server

Can i do that? and can i automatically store the output generated in a text format?

All i wanted to do was.....provide a user with an interface frm wher he uploads his .java file and the moment he submits it, it gets compiled n executed at server end!

I wanted a simplified version of this using exec()
http://www.innovation.ch/java/java_compile.html

Posted: Tue Feb 13, 2007 3:30 am
by Mordred
Yes, you can, have you tried it yet?

Posted: Tue Feb 13, 2007 5:28 am
by Chris Corbyn
Bye bye server! You must be mad ;)

Posted: Tue Feb 13, 2007 10:16 am
by Kieran Huggins
...then you might want to check out the webhosting thread after you current host cans your account ;-)