2016-01-13 66 views
1

My site is http:\www.xxx.com/xxx I'm having problem to get the specific file inside a folder使用html從文件夾獲取php文件<a href="">

The file is inside admin_pages folder under the root The menus folder are under root too In my i put

<a href="../admin_pages/adminAtividadesByMonthChart.php"> 

and it returns to http:\www.xxx.com

If i use

<a href="../../admin_pages/adminAtividadesByMonthChart.php"> 

Its the same...

This is my image project

enter image description here

任何幫助?

+0

使用PHP'$ _ SERVER [ 'DOCUMENT_ROOT']',它會給你的根路徑 –

+0

U均具有使用像

+0

< a href =「<?php echo $ _SERVER ['DOCUMENT_ROOT']?> admin_pages/adminAtividadesByMonthChart.php」> 試試這個 –

回答