Reply to Re: How to make the include path universal?

Your name:

Reply:


Posted by tom pester on 09/06/05 00:21

Hi Sandman,

Reading further upon the subject I found your solution.

I have some problems with it though :

- There is only 1 php.ini for all the sites on the server so I will end up
putting all includes of different projects in 1 directory (I could prepend
the include file with a project prefix to avoid naming collisions)
- Or I could expand include_path and add a directory per site (naming collisions
are possible again so I have to adopt a naming scheme)
- I read that some isp's don't allow editing the php.ini (especialy if you
are using a shared server, there is only 1 php.ini right?)
- The site isn't self contained. I can't xcopy 1 directory to deploy are
backup the site. Information is scatered around the system.

disclaimer :
This are all comments of a php beginner so _please_ correct me if I'm wrong.

Cheers,
Tom Pester


> You can specify the include_path in php.ini to a path shared by all
> environments.
>
> include_path on your dev machine could be c:/websites/includes/ and on
> your server c:/includes/ and keep them in sync.
>

[Back to original 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

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