TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PHP and apache alias
I'm having trouble using an apache alias in a php include statement.
Example:
I have an apache alias named /templates like so: (in .conf file)
Alias /templates /usr/httpd/virtual/www.site.com/html/templates/
If I do
include("/templates/blah.php3");
it can't find the file
If I use relative path, like:
include("../templates/blah.php3");
it works.
Note also, that I can use the /templates in an <a href> and it works fine so
this seems to be a php include issue.
Any ideas?
Thanks!
--
Amy Tanner Voice: 612.943.8700
Real Time Enterprises, Inc. Fax: 612.943.8500
amy@real-time.com http://www.real-time.com
PGP fingerprint = 67 6C 8F DB B1 7A 8D 41 DC 7B CA 0B 28 1E 67 AD