Re: Printing a root link into HTML

From: Date: Sat, 07 Jul 2001 00:17:58 +0000
Subject: Re: Printing a root link into HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56593@lists.php.net to get a copy of this message
Hello, you should use full-path instead. You can easily find out what the name of the upper directory has in PHP with using either $HTTP_SERVER_VARS['DOCUMENT_ROOT'] or dir_name(__FILE__) or realpath('../previous.html'). ----- Original Message ----- From: "Chris Anderson" <chrisderson@ameritech.net> To: <php-general@lists.php.net> Sent: 2001. július 7. 01:40 Subject: [PHP] Printing a root link into HTML I need to give a link to a file in a previous directory, but HTML doesn't understand ../ links. Any idea how I can do this?

« previous php.general (#56593) next »