function deleteFile($currFolder, $fileName) { return unlink(getAbsolutePath($currFolder.”/”.$fileName)); } This

function deleteFile($currFolder, $fileName) { return unlink(getAbsolutePath($currFolder.”/”.$fileName)); } This a utility function used for generating error pages: // Sends the error page function sendErrorPage($mesg) { printf(”“); printf(”“); printf(”“); printf(”

%s

“, $mesg); printf(”“); printf(”“); } The isSessionAuthenticated() function checks if the session is an authenticated session. After authentication (refer to login.php), the variable $isAuthenticated with value true is stored in the session: function isSessionAuthenticated() { global $isAuthenticated; session_start(); if (session_is_registered(”isAuthenticated”) && $isAuthenticated) { return true; } else { return false; } } ?> New User Registration The following HTML file createuser.htmldisplays the new user registration page of the application:

New User Registration

Below is the HTML form for registering new users. The action of the form is createuser.php script. Page 256
Note: If you are looking for cheapest and affordable webspace to host and run your servlet application check Astra servlet hosting services

Comments are closed.