|  | Posted by dorayme on 06/18/07 01:41 
In article <iTkdi.1534$W_6.51@newsread1.news.pas.earthlink.net>,"BootNic" <bootnic@bounce.earthlink.net> wrote:
 
 > > dorayme <doraymeRidThis@optusnet.com.au> wrote:
 > > news: doraymeRidThis-33C704.19215517062007@news-vip.optusnet.com.au
 > [snip]
 > > But this does not work on Windows servers. Does anyone know a
 > > likely other candidate expression that will tell the server to go
 > > to the level at which I have the site index file and look inside
 > > a folder called 'includes'? No matter where it appears deep
 > > inside the website directories?
 > >
 > [snip]
 > Check and see if you have a include path set.
 >
 > <?php
 > echo ini_get('include_path');
 > /* .;K:\PHP\PEAR-1.5.4\pear;J:\apache\include */
 > ?>
 >
 > The include path I use is J:\apache\include
 >
 > I put include files in that folder and then use:
 > <?php include 'my.file' ?>
 >
 > No matter where the php files are located it always includes my.file
 >
 > With a little luck this may work for your Windows server
 
 On this particular problem it is an external server, owned by a
 big popular ISP and is host for a company site. Meaning it is not
 under my direct control.
 
 I put a test html page up, with your
 
 <?php
 echo ini_get('include_path');
 ?>
 
 on it and got back:
 
 ..;e:\php
 
 This a clue to fashioning a "global" path address? What now?
 
 (I tried various things with this but I feel like a monkey on a
 typewriter. I suppose I could ask the ISP administrators what
 path would always work? But ever tried communicating with big
 ISPs? In a way, it is not the end of the world as I can just
 ensure the paths are tailored to where the html files concerned
 are. Seems a little inelegant though!)
 
 --
 dorayme
  Navigation: [Reply to this message] |