note 37198 added to function.getcwd

From: Date: Thu, 06 Nov 2003 15:21:42 +0000
Subject: note 37198 added to function.getcwd
Groups: php.notes 
Request: Send a blank email to php-notes+get-60000@lists.php.net to get a copy of this message
This is current working directory. X example, your document root is c:\Inetpub\www\htdocs. When You need to know what is your doc_root; /* Like ask yourself your name ;)*/ $_cur_dir = getcwd(); echo "My doc_root is $_cur_dir "; // it prints out : My doc_root is c:\Inetpub\www\htdocs /* Usually you need it after using chdir() to know what is running in current directory */ Regards Raja ---- Manual Page -- http://www.php.net/manual/en/function.getcwd.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37198 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37198&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37198&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60000) next »