define("DOC_HOME_PATH", "what goes here")
| From: | Jonathan Villa | Date: | Wed, 19 Feb 2003 16:56:30 +0000 |
| Subject: | define("DOC_HOME_PATH", "what goes here") | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136208@lists.php.net to get a copy of this message | ||
I want to define 3 constants
DOC_HOME_PATH
IMG_HOME_PATH
CTL_HOME_PATH
So that I can just do this
<img src="<? echo IMG_HOME_PATH ?>stuff/image.jpg">
<a href="<? echo DOC_HOME_PATH ?>stuff/index.jsp">Click Here</a>
<form action="<? echo CTL_HOME_PATH ?>stuff/process_order.php">
**do I need to echo?
**not everything goes to "stuff"
Right now I have
define ("DOC_HOME_PATH", "d:/is/projects/killerspin/web/store/");
define ("IMG_HOME_PATH", "d:/is/projects/killerspin/web/images/");
define ("CTL_HOME_PATH", "d:/is/projects/killerspin/web/control/");
This works fine for displaying images but not for form submission or
links.
I have also tried this
define ("DOC_HOME_PATH", "http://localhost/killerspin/web/store/");
define ("IMG_HOME_PATH", "http://localhost/killerspin/web/images/");
define ("CTL_HOME_PATH", "http://localhost/killerspin/web/control/");
doesn't work.
I have also tried a few other ways, but to no avail.
Right now the config is Apache 2.0.43, PHP 4.3.0, Win Xp Pro, and an
Access DB.
For production this will be running on a windows server so I would also
need to know to set up the same var for this enviroment.
Thanks in advance
---> Jonathan