[英]how to link html folder's file with php folder's file
I have 2 folders html and php, in html all html files exist and in php all php file exist. 我有2个文件夹html和php,在html中所有html文件都存在,而在php中所有php文件都存在。 In html folder-> buycars.html exist which link with viewh.php(this is in php folder) how to create a link… I use
在html文件夹-> buycars.html中存在与viewh.php链接的链接(这在php文件夹中)如何创建链接…我使用
<a href="php/viewh.php">
that is not working. 那是行不通的。
您需要跳回一个目录
<a href="../php/viewh.php">
You need to go up one directory. 您需要上一个目录。 To do this you simply append
../
to your directory path; 为此,您只需将
../
附加到目录路径;
<a href="../php/viewh.php">Click</a>
You can also go up multiple by stacking them like so; 您也可以像这样堆叠它们来增加多个;
<a href="../../directory/page.html">Click</a>
EDIT: @Sourabh beat me to it. 编辑:@Sourabh击败了我。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.