Re: Printing a root link into HTML

From: Date: Sat, 07 Jul 2001 05:14:19 +0000
Subject: Re: Printing a root link into HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56602@lists.php.net to get a copy of this message
I always use root realative links. I just don't know how to html link to a parent directory ----- Original Message ----- From: "PHPBeginner.com" <php-general@phpbeginner.com> To: "Chris Anderson" <chrisderson@ameritech.net>; "Gyozo Papp" <pgerzson@freestart.hu>; <php-general@lists.php.net> Sent: Saturday, July 07, 2001 1:04 AM Subject: RE: [PHP] Printing a root link into HTML > if you are talking about HTML then ALWAYS USE ROOT-RELATIVE PATHS. > > so, if you put a simple html link to '../file.html' you should ideally have > it as '/whatever/dir/it/is/file.html'. > > This style should always be used, especially when developing a dynamic site > which is what all of us do in here. > > If you don't follow this advice I will start calling you "DreamVeawer" :-) > > -maxim maletsky > > > > -----Original Message----- > From: Chris Anderson [mailto:chrisderson@ameritech.net] > Sent: Saturday, July 07, 2001 9:28 AM > To: Gyozo Papp; php-general@lists.php.net > Subject: Re: [PHP] Printing a root link into HTML > > > To specify, I want to link to a file in a previous directory, none of those > methods seem to work for that. > ----- Original Message ----- > From: "Gyozo Papp" <pgerzson@freestart.hu> > To: "Chris Anderson" <chrisderson@ameritech.net>; > <php-general@lists.php.net> > Sent: Friday, July 06, 2001 8:17 PM > Subject: Re: [PHP] Printing a root link into HTML > > > 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? > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#56602) next »