Hi All, I'm using $_SERVER['DOCUMENT_ROOT'] to find out the document root and $_SERVER['REQUEST_URI'] to find name of the file. This is working fine when i work in local. But as i uploaded my site pages its giving "Undefined index: DOCUMENT_ROOT in c:\... " and "Undefined index: REQUEST_URI in C:\..." notices. please help me to solve this problem. Thank you, Danny. PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/