Jump to content

Going back 1 direcTory in php hyperlink?


ali_2kool2002

Recommended Posts

Hi can anyone tel me how i can go back a directory from the current code:

say for example in the code below im in localhost but current location in that directory is in a sub directory but i want to refer to a file

back in the localhost? how do i do that? hope that makes sense thnx

 

echo"<ul><li class='style9'><a href='$cat_name'.php'>'$cat_name'</a></li>
      </ul>";

Link to comment
https://forums.phpfreaks.com/topic/41494-going-back-1-directory-in-php-hyperlink/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.