You are here: Re: OT. Windows server paths and PHP includes « HTML « IT news, forums, messages
Re: OT. Windows server paths and PHP includes

Posted by BootNic on 06/18/07 07:48

> dorayme <doraymeRidThis@optusnet.com.au> wrote:
> news: doraymeRidThis-AE0E5C.16200918062007@news-vip.optusnet.com.au
> In article
> <M0pdi.5438$tb6.782@newsread3.news.pas.earthlink.net>,
> "BootNic" <bootnic@bounce.earthlink.net> wrote:
[snip]
> Well, you are starting to knock me over as in 'with a feather'. I
> got a result! I got a path from your code that looked (I have *
> some content just for here) like this:
>
> e:\****\****\includes
[snip]
> Seriously, thanks mate.

Your welcome.

Now if you have more then one inclued per page this will be worth your
time as well.

<?php
ini_set('include_path',ini_get('include_path').';e:\*****\*****\includes');
?>

<?php include('head.inc'); ?>
<div>...</div>
<?php include('nav.inc'); ?>
<div>...</div>
<?php include('footer.inc'); ?>
<?php include('copy.inc'); ?>
--
BootNic Monday, June 18, 2007 3:48 AM

All men dream, but not equally. Those who dream by night in the dusty
recesses of their minds, wake in the day to find that it was vanity:
but the dreamers of the day are dangerous men, for they may act on
their dreams with open eyes, to make them possible.
*Thomas Edward Lawrence (of Arabia)*

 

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

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