输入banner图图片脚本导航/分类

PHP获取当前文件所在目录 getcwd()函数

用 getcwd() 函数或 dirname(__FILE__)

代码如下:
<?php
echo getcwd() . "<br/>";
echo dirname(__FILE__);
?>