Talk:Deploying Applications
From Delphi for PHP Documentation Wiki
I found a bunch of ommissions or problems with this "Deploying Applications" page.
Location of the VCL folder: [where to place the vcl folder, and how to make sure your app can find it]
"1. As a subfolder of your application, so there is no need to change your php.ini setting".
Huh? What php.ini file? Is this refering to THE php.ini file? Why does that file need to know where the vcl is? And if a change is needed to it if you *don't* use layout 1, why isn't that mentioned in layout 2? Maybe "php.ini" really was supposed to be "vcl.inc.php"?
"2. In a common folder on your document root, for example:"
This seems to be describing the following layout:
/vcl/vcl.inc.php /vcl/[actual vcl files]
/app1 /app1/vcl /app1/vcl/vcl.inc.php [requires /vcl/vcl.inc.php]
/app2 /app3/vcl /app3/vcl/vcl.inc.php [requires /vcl/vcl.inc.php]
...in which case, the the text "You will need to create a subfolder on each \app folder called \vcl" is incorrect. The "\vcl" should read just "vcl" because the leading slash gives the supposed subdir a name relative to root, and confuses it with the common \vcl dir.
Finally, the per-app vcl.inc.php is shown with the require_once containing a path relative to the app. This seems easily broken if the app is moved -- why not use the absolute path to the common vcl dir, like this:
<?php
require_once("/vcl/vcl.inc.php");
?>
Bottom line -- I'm not sure I got this all right, or optimal, but the existing instructions look suspect.
Graham

