Bug or programmer-error?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear PHP_friends,

 

I have found a strange behaviour of the "include"  function.

 

Here it is .

 

            // 1. this works fine 

                        include ("../../gps_info/fetch_fields.php");

            // 2. this works fine

                        $doc_root=$_SERVER[DOCUMENT_ROOT];

                        include
("$doc_root"."/pages/gps_info/fetch_fields.php");

            // 3. this open the doc fetch_fields.php allright, but variables
that have been set outside fetchfields.php are not available within
fetch_fields.php

                        $root= 'webserver-2';

                        include
("$root"."/pages/gps_info/fetch_fields.php");

 

 

Does anybody have a clou as to what's wrong here?

 

 

Best regards/ Met vriendelijke groet,

Rob Ziere

Webmaster/beheerder GO-GPS.nl, alles over GPS en wandelen

http://www.go-gps.nl

 

 


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux