[support] Strange behaviour with same page in two different dir
    Davide Michel 'ZioBudda' Morelli 
    michel at ziobudda.net
       
    Tue Feb 12 14:32:48 UTC 2008
    
    
  
Hi all.  I have this file located in / (root of my website) :
<?
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
global $user;
print_r($user);
$page = "io sono la pagina";
echo theme('page',$page);
?>
And this page works like without problem (the output is my "user" data).
Now I have this page located in /subdir1 (of my website):
<?
chdir("..");
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
global $user;
print_r($user);
$page = "io sono la pagina";
echo theme('page',$page);
?>
But this page does not work like I expect it: the user is anonymous and 
not my "user logged in".
Why this ?  Note the the only different is "chdir('..');"
Tnx.
-- 
Michel 'ZioBudda' Morelli                       michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660
http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ajaxblog.it        			MSN: michel at ziobuddalabs.it                   
						JABBER: michel at gmail.com
    
    
More information about the support
mailing list