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.


---> Jonathan
 
 
 



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to