摘要: 情况一、该文件夹下只有文件<?php function getPath($path) { $handler=opendir($path); while(($filename=readdir($handler))!==false){ if($filename!="."&&$filename!=".."){ echo $filename."<br/>"; } } closedir($handler);}$path="D:/wamp/www/mytest/file";getPath($p 阅读全文
posted @ 2013-03-19 18:43 KoMiles 阅读(1223) 评论(0) 推荐(0)
摘要: <?phpecho $_SERVER["REMOTE_ADDR"]."<br/>";//127.0.0.1echo getenv("REMOTE_ADDR")."<br/>";//127.0.0.1echo gethostbyname("www.baidu.com");//61.135.169.125?> 阅读全文
posted @ 2013-03-19 15:28 KoMiles 阅读(2211) 评论(0) 推荐(0)