根据查询生成html,用于本人新制作一姓名测试网站
姓名查询小站如下:[url]http://comika.net.cn/[/url]
本站提供免费的姓名查询、测算服务。
功能:根据你的查询情况,姓名每查询一下,就自动生成姓名,和列表页。
如果重复的姓名查询,则直接转到相应的页面下。
大家感觉如何, 放源码,否则视为AD;)
为防止人家说我AD,核心代码很简单
set fso=Server.CreateObject("Scripting.FileSystemObject")fpath=server.MapPath(xing&"/")
response.Write(fpath)
If fso.FolderExists(fpath) then
set f=fso.CreateTextFile(fpath&"\"&xm&".html",2,true)
nr=replace(nr,vbcrlf,"")
f.write(nr)
set f=nothing
set f=fso.CreateTextFile(fpath&"\index.html",2,true)
xlist=rFile("xing.html")
xlist=replace(xlist,"$$xing$$",xing)
xlist=replace(xlist,"$$all$$",mkList(xing))
f.write(xlist)
set f=nothing
Else
fso.CreateFolder(fpath)
fso.CreateTextFile(fpath&"\"&xm&".html")
set f=fso.CreateTextFile(fpath&"\"&xm&".html",2,true)
nr=replace(nr,vbcrlf,"")
f.write(nr)
set f=nothing
set f=fso.CreateTextFile(fpath&"\index.html",2,true)
xlist=rFile("xing.html")
xlist=replace(xlist,"$$xing$$",xing)
xlist=replace(xlist,"$$all$$",mkList(xing))
f.write(xlist)
set f=nothing
End if OK。看到了研究一番 :( 支持下。 代码看不懂,因为技术很菜,但是共享的东西,我从来就是支持的!~
[[i] 本帖最后由 hnxmw 于 2008-7-20 09:19 编辑 [/i]] 發出來把
否則我不愛你了
哈愛護 发布代码吧 发代码吧!~!~:o :cool: 不错!
[[i] 本帖最后由 逃避网络 于 2008-7-20 18:29 编辑 [/i]] 支持共享。。。。
好奇怪的统计数据啊,大伙的cnzz有没有?
当天PV 652当天独立访客 22
当天IP数 117
[attach]27635[/attach] 放代码&数据库 [quote]原帖由 [i]455929861[/i] 于 2008-7-20 17:53 发表 [url=http://www.im286.com/redirect.php?goto=findpost&pid=27886533&ptid=2748309][img]http://www.im286.com/images/common/back.gif[/img][/url]
发代码吧!~!~:o [/quote] 期待..MJJ 昨天的数据就是有问题 看看 放代码&数据库 支持楼主发布代码!
页:
[1]
2
