You are here: Re: require("common/latest.php") across multiple websites « PHP Programming Language « IT news, forums, messages
Re: require("common/latest.php") across multiple websites

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация