text data, otherwise it contains binary data: if
text data, otherwise it contains binary data: if (isset($contentType) && strstr($contentType, “text/”)) { $fp = fopen($fileAbsPath, “r”); } else { $fp = fopen($fileAbsPath, “rb”); } Send the file content to the client: fpassthru($fp); ?> Viewing Folders The following script viewFolder.php displays the contents of the current folder: Note: If you are looking for cheapest and affordable webspace to host and run your servlet application check Astra j2ee hosting services