Strange behaviour with same page in two different dir
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@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@ziobuddalabs.it JABBER: michel@gmail.com
After hours and hours I have find this comment http://drupal.org//node/166368#comment-268992 that seems solved my problem (for the moment). M.
Quoting Davide Michel 'ZioBudda' Morelli <michel@ziobudda.net>:
After hours and hours I have find this comment http://drupal.org//node/166368#comment-268992 that seems solved my problem (for the moment).
Thanks for the update. Now we can both help the next person. ;D Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
participants (2)
-
Davide Michel 'ZioBudda' Morelli -
Earnie Boyd