You are here: Re: includes on Linux and Windows « PHP Programming Language « IT news, forums, messages
Re: includes on Linux and Windows

Posted by Alvaro G. Vicario on 12/06/05 20:58

*** Jim escribió/wrote (5 Dec 2005 17:35:43 -0800):
> Is there a way to issue an include that will work on both Linux and XP
> under the more recent versions of PHP?

Since directories do differ, you must either use relative paths or use
variables. Check $_SERVER['DOCUMENT_ROOT']. Also, dirname(__FILE__) may be
helpful.

--
-+ Álvaro G. Vicario - Burgos, Spain
++ http://bits.demogracia.com es mi sitio para programadores web
+- http://www.demogracia.com es mi web de humor libre de cloro
--

 

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

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