|
Deploying and Running PHP Applications
|
Usually to deploy and run PHP application you need to have PHP interpreter installed along with Web Server. Deploying PHP applications on customer's desktops and laptops is very difficult because of the amount of software required to run PHP applications. This is actually true for any Web based application - distributing these applications to clients machines not connected to the network is nearly impossible with out significant code changes. PhpDock however makes production of desktop based PHP applications very simple. PhpDock combines Web Browser and Web Server capable to running PHP scripts as well as rendering HTML pages. Together they produce an engine that allows 3rd party companies to distribute their PHP applications or other Web Applications to customer's Windows desktops and enable the users to run these applications out of box, without any other software products and without connection to the Internet. In this small tutorial you will learn how to deploy PHP Applications pm client's computers with PhpDock.
How to use directories of PhpDock
PhpDock installation program creates 2 directories under install root.
- Directory php contains PHP binaries for Windows a
- Directory web contains the application that is supposed to be run by PhpDock.
How to install any version of PHP interpreter. PHP Directory of PhpDock.
PhpDock installs its own version of PHP interpreter, which is the latest at the time of the release of PhpDock. PhpDock's Web Server component uses PHP directory to run PHP interpreter. If the you wishe to use a different version of PHP for Windows, you should copy the files of that CGI version of PHP into PHP directory of PhpDock. For example, the illustration below shows the files installed for PHP 5.1 distribution in PHP directory of PhpDock:
How to install and deploy PHP application. Web Directory of PhpDock.
Web Directory of PhpDock is the default Document Root of PhpDock's Web server. PhpDock's installation program installs the files and directories of Sample Application (PhpDock Currency Converter) into Web directory. You should replace the Sample Application files under Web directory with the files and directories of the User's Applications. You can also change the location of Document Root of PhpDock's Web server by changing DocumentRoot directive in HTTPServer section of PhpDock.ini file (see Configuration and Settings). For example, PhpDock Currency Converter Sample Application creates the following files and folders under Web Directory:
- File index.php - starting point of PhpDock's DocumentRoot. This script simply redirects the flow to sample/index.php.
- Folder lib - contains nusoap.php - NuSphere's library for Webservices and SOAP support
- Folder sample - contains the files of Currency Converter Application, where index.php is the main php script producing the form with available currencies
The magic of PhpDock is Simplicity. In this small tutorial you learnt that all it takes to get your php application running with PhpDock is two directories.
|
|
Download NuSphere PhpDock
Download a free trial of the unique Php Deployment Solution from NuSphere.
|
Buy NuSphere PhpDock now
PhpDock - unique solution for php deployment - is available from our online store front.
If you're PhpEd user your price is $86 - discounted automatically during the checkout
|
Spotlight
|
People say
"Utilizing PHPDock was especially convenient because it lead to the deployment of a single code base to online web servers and offline computers. Moreover, with many different online applications already written in PHP at SALTO-YOUTH, using PHP for this application allowed PHP to be retained as the single programming language."
|
|