网站php自动生成更新网站地图的源码怎么做?

网站php自动生成更新网站地图的源码怎么做?


哔哔one
浏览 1321回答 1
1回答

BIG阳

<?phpecho ' web-root = '.$_SERVER['DOCUMENT_ROOT'].'<br>';echo ' current-file = '.__FILE__.'<br>';echo ' current-dir = '.dirname(__FILE__).'<br>';echo ' http-root = '.$_SERVER['HTTP_HOST'].'<br>';echo ' web-position = '.$_SERVER['PHP_SELF'].'<br>';$file='c:/webroot/index.php';echo ' file-position = '.$file.'<br>';$fileWebAddress='http://'.str_replace($_SERVER['DOCUMENT_ROOT'],$_SERVER['HTTP_HOST'],$file);echo ' file-web-position = '.$fileWebAddress.'<br>';?>
打开App,查看更多内容
随时随地看视频慕课网APP