广告联盟网
标题:
怎样让目录直读只读图片呢...
[打印本页]
作者:
mengyu8505
时间:
2007-7-16
标题:
怎样让目录直读只读图片呢...
它把zip,这些文件都读出来了,怎样能让他只读图片不读其他文件你呢...<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /><br><br><div class="msgbody"><div class="msgheader"><div class="right"><a href="###" class="smalltxt" onclick="copycode($('code0'));">[Copy to clipboard]</a> <a class="smalltxt" href="###" onclick="toggle_collapse('code0');">[ <span id="code0_symbol">-</span> ]</a></div>CODE:</div><div class="msgborder" id="code0"><html><br /><head><br /> <title>Browse Directories</title><br /> <style type="text/css"><br /><!--<br />@import url("style.css");<br />--><br /> </style><br /></head><br /><body><br /><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#64A7DE"><br /> <tr><br /> <td><br /><?php<br /> $current_dir = 'D:\wwwroot\AppServ\www\mengyu\photo';<br /> $dir = opendir($current_dir);<br /> $i=0; <br /> while ($file = readdir($dir))<br /> { $i++; <br /> if($i>2) <br /> { echo "";<br />?> <br /> <br />&nbsp;<?="<a href='photo/$file' target='_blank'>"?><img src='<? echo "photo/$file"?>' width=120 style='border:6px'><?="</a>"?><br /><br /><? } } <br /> //closedir($dir); <br />?><br /></td><br /> </tr><br /></table> <br /><a href='upload.php' target='_blank'>图片上传</a><br /></body><br /></html></div></div><br>
作者:
czyes
时间:
2007-7-16
<img src="images/smilies/shocked.gif" smilieid="7" border="0" alt="" />
作者:
mengyu8505
时间:
2007-7-16
<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /> GG,教教我吧.
作者:
在远方
时间:
2007-7-16
作者:
wangrongrei
时间:
2007-7-16
不是NEATPIC吗?谁去补下漏洞<img src="images/smilies/shocked.gif" smilieid="7" border="0" alt="" />
作者:
mengyu8505
时间:
2007-7-16
neatpic加密了,写的也太复杂了,初学者看不明白...<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" />
作者:
nengdo
时间:
2007-7-16
顶 <img src="images/smilies/lol.gif" smilieid="9" border="0" alt="" />
作者:
jewen
时间:
2007-7-16
<img src="images/smilies/shocked.gif" smilieid="7" border="0" alt="" /> 不会
作者:
eson
时间:
2007-7-16
<img src="images/smilies/ohh.gif" smilieid="19" border="0" alt="" /> 楼下
作者:
mengyu8505
时间:
2007-7-16
<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /> 好像木人了.
作者:
恭喜恭喜
时间:
2007-7-16
<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /> 只能顶了,
作者:
支付宝
时间:
2007-7-16
PHP学这么好啊
作者:
落日惊鸿
时间:
2007-7-16
送给我,我来弄
作者:
呼唤
时间:
2007-7-16
关注
作者:
支付宝
时间:
2007-7-16
<br><br><div class="msgbody"><div class="msgheader">QUOTE:</div><div class="msgborder"><?php<br /> $current_dir = 'e:';<br /> $dir = opendir($current_dir);<br /><br /> while ($file = readdir($dir))<br /> { <br /> $extend =explode("." , $file);<br /> if ($extend[1] == "gif") {<br /> echo "$file"."<br />";<br /> }<br /> <br /> }<br /> ?></div></div><br>偶写了个,可以显示出来,但是提示有错误
<br /><br />才学
<br /><br />[<i> 本帖最后由 支付宝 于 2007-7-16 12:40 编辑 </i>]
作者:
mengyu8505
时间:
2007-7-16
<br><br><div class="msgbody"><div class="msgheader">QUOTE:</div><div class="msgborder">原帖由 <i>支付宝</i> 于 2007-7-16 12:39 发表 <a href="http://www.im286.com/redirect.php?goto=findpost&pid=20570669&ptid=2069399" target="_blank"><img src="http://www.im286.com/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.im286.com/images/common/back.gif');}" onmousewheel="return imgzoom(this);" alt="" /></a><br /><br /><br /><br />偶写了个,可以显示出来,但是提示有错误<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /><br /><br />才学<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /> </div></div><br>哈哈,可以喽~~~<br><br><div class="msgbody"><div class="msgheader"><div class="right"><a href="###" class="smalltxt" onclick="copycode($('code0'));">[Copy to clipboard]</a> <a class="smalltxt" href="###" onclick="toggle_collapse('code0');">[ <span id="code0_symbol">-</span> ]</a></div>CODE:</div><div class="msgborder" id="code0"><html><br /><head><br /> <title>Browse Directories</title><br /> <style type="text/css"><br /><!--<br />@import url("style.css");<br />--><br /> </style><br /></head><br /><body><br /><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#64A7DE"><br /> <tr><br /> <td><br /><?php<br /> $current_dir = './photo/';<br /> $dir = opendir($current_dir);<br /> while ($file = readdir($dir))<br /> {<br /> $s=explode(".",$file);<br /> if($s[1]=="jpg" or $s[1]=="bmp" or $s[1]=="png" or $s[1]=="gif")<br /> {<br /> <br />?> <br /> <br />&nbsp;<?="<a href='photo/$file' target='_blank'>"?><img src='<? echo "photo/$file"?>' width=120 style='border:6px'><?="</a>"?><br /><br /><? } } <br /> closedir($dir); <br />?><br /></td><br /> </tr><br /></table> <br /></body><br /></html></div></div><br>
作者:
mengyu8505
时间:
2007-7-16
<img src="images/smilies/tongue.gif" smilieid="8" border="0" alt="" /> 谢谢啦宝宝~~
作者:
cpuer
时间:
2007-7-16
<br><br><div class="msgbody"><div class="msgheader">QUOTE:</div><div class="msgborder">原帖由 <i>mengyu8505</i> 于 2007-7-16 13:20 发表 <a href="http://www.im286.com/redirect.php?goto=findpost&pid=20571407&ptid=2069399" target="_blank"><img src="http://www.im286.com/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.im286.com/images/common/back.gif');}" onmousewheel="return imgzoom(this);" alt="" /></a><br /><br /><br />哈哈,可以喽~~~<br /><br /><br /><br /> Browse Directories<br /> <br /><br /> <br /><br /><br /><br /> <br /> <br /> <br /> <br /> ' width=120 style='border:6px'><br /><br /><br /><br /> <br /> <br /><br /><br /><br /> </div></div><br>多点图片格式噻。
欢迎光临 广告联盟网 (https://bbs.ggads.com/)
Powered by Discuz! X3.2