Saving file on disk
<p>In Java, while using Glassfish Server, we could only save files relative to our web application root. Thus you cannot directly save file on eg <code>c:\program files\abc.txt</code> whereas with php this is working. Is it valid? One should not be able to refer any location on hard disk outside web application root (unless you are using Virtual directory). Why are there so contradictory principles?</p>
