Install
Follow this instruction to install WebFM on PHP enabled web site.
- Download PHP installation package and extract files to local drive. This contains following files:
- index.html — a page containing applet, this should be loaded by the browser;
- webfm.php — encapsulates server-side functionality;
- handler.php — an endpoint WebFM applet communicates to, this contains root directory definition and includes webfm.php, which does all the processing jobs.
- Download webfm_z.jar to the same location, where extracted PHP files.
- Upload all the files to the server directory (let's say /webfm).
- Open browser and access WebFM manager at http://your.server.address/webfm/
index.html contains important references:
- Link to applet JAR file specified by archive attribute of <applet> tag — this could be absolute or relative URI. For example archive="webfm_z.jar" says that JAR file located in the same directory as current HTML document.
- Link to server communication endpoint: httpMessenger.url=handler.php — this could be absolute or relative URI. This expression says that handler located in the same directory as current HTML document.
By default WebFM root directory will be mapped to document root directory of the server (as specified by $_SERVER['DOCUMENT_ROOT'] PHP global variable). In order to change root directory reference edit handler.php file.
If it is necessary to prevent unauthorized access to WebFM scripts choice could be:
- Basic access authentication or digest access authentication — secure server directory with .htaccess.
- HTTP cookie based authentication — applet will send same cookies to the server as browser does, so server could validate session validity.
