[UPHPU] virtual PHP hosts and database code generation

Steve Dibb boo at wonkabar.org
Tue Nov 23 08:58:18 MST 2004


> a) I am developing and testing a php app on my Windows laptop and will be
> deploying onto a linux server.  I want to use absolute paths, so I defined a
> virtual host with apache on my Windows machine and likewise on my linux
> machine, so with my HTML I can do eg <img src="/images/hi.png">.  However
> this is not respected by PHP... is there a way to do something similar in
> php so that I can include "/blah.php" instead of "C:/dev/app/blah.php"?

use virtual instead of include

virtual("/blah.php");



More information about the UPHPU mailing list