|
Posted by Jerry Stuckle on 01/20/06 07:20
Jim Carlock wrote:
> I've set up the following using an Alias in Apache...
>
> Alias /phpdocs/ "C:/Apache/htdocs/common/docs/php/"
> <Directory "C:/Apache/htdocs/common/docs/php">
> Options Indexes FollowSymlinks MultiViews
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> It works well for HTML, all sites have access to the information.
> I want to extend that to PHP require() and include() functions,
> however the following maps out to an incorrect folder. Okay,
> that's fine. My questions include, does PHP provide something
> that maps out to the Apache Alias directive?
>
> The common folder currently sits up two folders (../..) to the
> VirtualHost folders. I realize that possibly a PHP "include_path"
> directive could work. So the next question, anyone know of
> another way to accomplish this?
>
> Thanks.
>
> Jim Carlock
> Post replies to the newsgroup.
>
>
Sorry, Jim, you can't. PHP doesn't go through Apache to access files;
rather it goes straight to the file system itself. include_path is the
only way to handle it.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|