Hello everyone,
Im new in web development, Im using localhost (XAMMP),I'm trying to make my website which basically allows users to compile and run their submitted java program on my server(my web page).Essentially, I want when the users click a button(upload) they upload file from file source(e.g desktop or anywhere from computer) and after uploading they hit button to submit( submit) which will then able them to display the output of their program when it compiles correcly otherwise it will displays the type of error that code has. How can this be done? I searched a lot I found ideone.com, codepad.com which are nearly same concept but I only want for java and don't how to they made this site to design like them.I don't know if this can be done using php if I can would be much greatful if someone provide me code I already using (phpMyAdmin). Your Helps would be much appreciated!
Thanks in advance.
Recommended Answers
Jump to PostI'm no good with Java, but running user-supplied php code in your site is a big no-no. This is usually done with eval() - but for security reasons I would strongly urge you not to use it. An user posting using something like this:
if ($handle = …
Jump to PostNo - I'm saying IF somebody posted that to you 'php evaluating page' - they could get all your secret details and the contents of all your files - php code included. SO, we avoid doing this in php. My question to you is - does Java have the ability …
Jump to Postas far you said you got background in java
NO! I do not. That's the problem. I was asking you whether running compiled java (somebody else's code) can compromise your site wrt. security. I don't know. Anybody else?
All 11 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.