Get The Real Path Of A Servlet
Sometimes programmers need to write a JSP or Servlet code that will save a text file to a particular path, Execute a shell / perl script etc., for this we…
Sometimes programmers need to write a JSP or Servlet code that will save a text file to a particular path, Execute a shell / perl script etc., for this we…
Sometimes there will be a requirement for websites to redirect users to different location. For example in case of a perl application, once authenticated if the user belongs to a…
Here is a simple shell script to start with, #!/bin/sh MY_MESSAGE="Hello World" echo $MY_MESSAGE This assigns the string "Hello World" to the variable MY_MESSAGE then echoes out the value of…
Some months ago I have written a code using PHP to prevent direct file access, today I have modified the script since it had some errors. Let us take one…