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

Posted by Jim Carlock on 01/20/06 02:14

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.

 

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

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