Getting started
Installing POBS is as easy as I could think of. Just unzip the file pobs.zip and put it a directory that's accessible by your webserver. POBS is a collection of files in just 1 directory. The documentation is spread over 2 directories.
Before executing POBS you are advised to read the manual that is provided through this website. Also check the settings in pobs-ini.inc and adjust them to suit your needs. When you run POBS for the first time, you should at least adjust the $SourceDir and the $TargetDir variables. Note: the source and targetdirectories are
complete
paths and
not
relative to the webserver rootdirectory!
If you have a large amount of PHP source to be POBSed, check your php.ini and see whether it runs in "Safe mode". If it does, POBS can not adjust the timeout setting as indicated in pobs-ini.inc and the processing might be terminated before POBS has finished the replacement of all your PHP codefiles. You might need to restart your webserver after adjusting the php.ini file.
After having checked everything and having adjusted the settings in pobs-ini.inc you point your browser to pobs.php and press <Enter>. You will see something like the screen below.
Start modestly
If you run POBS for the first time you are adviced to turn $ReplaceVariables off by setting it "FALSE"; That way you have a bigger chance your program still works after being POBSed and if not you can more easily debug it.
$ReplaceFunctions=TRUE;
$ReplaceConstants=TRUE;
$ReplaceVariables=FALSE;
I strongly advise you to turn the variables below off. You should turn them on only after you made sure your application works fine with functions, constants and variables already replaced.
$RemoveIndents=FALSE;
$RemoveComments=FALSE;
$ConcatenateLines=FALSE;
Click on "Start scanning and replacing" and POBS will start working.
While processing POBS will give you information about:
scanned files
found variables, constants and functions
the time needed to process them
excluded variables
variables found that are consistent with the wildcard variables. I.e. params_xyz is excluded because params_* is listed as an exclude variable.
Walhalla Publicaties (c) 2001