You are here: Re: Master include php file? « All PHP « IT news, forums, messages
Re: Master include php file?

Posted by Sam Tang on 11/02/05 05:05

the include path should be absolute path of the php file, like:

include "/var/www/html/domain1.com/masterfile.php";

due you using "include
('http://www.something11111.com/masterfile.php');", the file just return
the php result.

anton-io! wrote:
> Does anyone have any experience for this, here is the scenario:
>
> Example: I have 5 domain names on the same server.
>
> I would like to have one 'master' include file to be available to all
> domains for simple PHP scripts or function:
>
> If I use something like
>
> include ('http://www.something11111.com/masterfile.php');
>
> it just slows things down for the page to come up.
>
> Any recommendations?
>
>

 

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

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