php exec function

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
asmitaisit
Forum Newbie
Posts: 2
Joined: Tue Feb 13, 2007 2:16 am

php exec function

Post 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
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Post by Mordred »

Yes, you can, have you tried it yet?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Bye bye server! You must be mad ;)
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

...then you might want to check out the webhosting thread after you current host cans your account ;-)
Post Reply