NuSphere Corporation
BUY ONLINE
Support Services
Overview
KB
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
Technical FAQ
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla Development
Learn PHP
<Typical usage of Nu-Coder's encoder and license managerNu-Coder Features Overview>
Last updated: Mon, 02 Jun 2008

Quick Start

This chapter introduces some of the most common features of the Command Line Interface to Nu-Coder PHP Encoder, with quick-start examples for typical scenarios. For PhpED users, it also describes the PhpED GUI for Nu-Coder. Detailed description of Nu-Coder CLI and PhpED GUI for Nu-Coder is given in subsequent chapters of this User Guide.

Encoding PHP project using Nu-Coder Command Line Interface

You can encode php files in the entire project using directory processing mode of Nu-Coder. In the following example we will assume that your Project root (or top) Windows directory is "C:\Program Files\nusphere\project-dir\web". To encode the files in C:\Program Files\nusphere\project-dir\web and all of it subdirectories you need to:
  • Install NuSphere Nu-Coder
  • Open a Command Window (Run->cmd)
  • Type at the prompt:
prompt> cd C:\Program Files\nusphere\project-dir
  • To run Nu-Coder in directory processing mode and generate output of encoded files in directory C:\Program Files\nusphere\project-dir\web-encoded type:
prompt> nu-coder -r web web-encoded
  • The program will recursively traverse all files in directory C:\Program Files\nusphere\project-dir\web and its subdirectories and generate encoded files in C:\Program Files\nusphere\project-dir\web-encoded with the same directory structures and file names. Illustration below shows the output of the Nu-Coder running:


Deploying the files encoded with Nu-Coder

At this point you can deploy encoded PHP files stored in the directory
C:\Program Files\nusphere\project-dir\web-encoded
with any PHP interpreter running PhpExpress NuSphere Free PHP loader and accelerator that provides support for encoded files and also speeds up the execution of regular PHP files. Simple procedure of installing PhpExpress is described in section 8.2 of this User Guide.

Note: If an attempt is made to execute the files encoded with Nu-Coder on the system without PhpExpress installed, the system will search for PhpExpress module in the web folders under Document Root (recursively) and try to load it if found. If PhpExpress is not found there as well, then the system will display a warning message to the user, saying that PhpExpress is not installed and referring the User to PhpExpress download website. Please note that you can also:
  • Use version-1.4 compatible header (--nodl command line argument) - in this case the search for PhpExpress won't be performed and the error will be generated immediately
  • Encode the file without the header using --noheader command line option. In this case the server will use the default file handler to serve the encoded script
  • Use custom header (--header command line option) and take control over the handling of this situation



<Typical usage of Nu-Coder's encoder and license managerNu-Coder Features Overview>
Last updated: Mon, 02 Jun 2008