by saltybeagle » Wed Sep 20, 2006 3:44 pm
I would open the php.unlstandardtemplate.dwt.php, and the other php dwt's and change the statements there. Then hit save, and update all the pages. Then you won't have to make replacements on every new page.
We use virtual because most people using PHP are on Apache... and the virtual function allows the location of the files to be relative to the server root. Whereas, include looks to the local filesystem... so we would have to know where the ucomm files are stored in the local filesystem '/var/www/ucomm/' or 'c:\inetpub\www\ucomm\' etc etc. This is what we don't know.
So now, some might ask why not $_SERVER['DOCUMENT_ROOT']... but this is once again something webserver specific, and not all servers populate that variable... and once again points to the filesystem, so that will not work for people with virtual hosts which alias the /ucomm/ directory for every virtual host since a copy of /ucomm/ might not be stored in the filesystem for that virtual host.
With any solution there are many pros and cons. A lot of thought has gone into how the templates should be packaged... but we could always use more thought. The goal is something that works out of the box for the majority of users.
Brett Bieber
