Getting path of script

From: Date: Tue, 13 Mar 2001 16:22:41 +0000
Subject: Getting path of script
Groups: php.general 
Request: Send a blank email to php-general+get-43680@lists.php.net to get a copy of this message
Hi, I want to get the path of a script. I know about HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like: /phpcode/misc/phpinfo.php But I want to strip off the file name and just have the directory path, like: /phpcode/misc/ Any ideas? Jord

« previous php.general (#43680) next »