
php
文章平均质量分 58
hu36978
这个作者很懒,什么都没留下…
展开
-
coldfusion学习之 资料汇总
下面这些资料全部来自adobe官网: http://www.adobe.com/livedocs/coldfusion/6.1/htmldocs/part_cfm.htm coldfusion reference http://help.adobe.com/en_US/AS3LCR/ColdFusion_9.0/ coldfusion l原创 2010-02-25 19:24:00 · 670 阅读 · 0 评论 -
htmlentities()--- 函数用于保留标签
//header("content-type :text/xml");$query="select * from mybase.store where inStore=1";$link=mysql_connect("localhost","root","1010013548") or exit("fail to connnect ");$result=mysql_query($quer原创 2010-04-10 16:55:00 · 1344 阅读 · 0 评论 -
在php图片中输入中文文字解决乱码
代码: $im = imagecreatefromjpeg("ok.jpg");$black = @imagecolorallocate($im, 0,0,0);$jpgnumid = "这是嵌入到图片的文字,解决了乱码问题,上面的ok.jpg是同目录下的照片.使用它时,还需要有iconv模块!也就是说在php.ini里将[iconv]iconv.input_encoding =原创 2010-04-26 16:08:00 · 2464 阅读 · 0 评论 -
利用ip地址查询区域---php程序
该程序没有优化 只是最原始的程序 可以将其与flash结合起来!与flash结合起来就是将php得到的地址和区域 打印出来再返回个flash端这么简单 $getIP="218.11.140.23"; // 这里是自己随便写的一个ip 实际时你还要通过程序得到这个ip//只开始时查前三段$subIPs=explode(".",$getIP);$subI原创 2010-04-29 22:47:00 · 889 阅读 · 0 评论 -
searchIP算法
/* 用法: include searchIP; $getIP="555.0.0.0"; // 这里是自己随便写的一个ip 实际时你还要通过程序得到这个ip$url="http://localhost/zendphp/IP/ip.txt";//我的ip数据库文件 我用的是txt格式 377443条 if(file_exists($url)){ die("未找到文件"); return;原创 2010-05-19 12:39:00 · 539 阅读 · 0 评论 -
保存访问者IP
在flash与php结合实现ip地址区域查询那个程序的基础上我们在php程序做了一点小改动 那就是保存访问过该网址的用户的ip地址 flash端程序不变 php端里面假如几行代码: 如下: //header("Content-Type:text/html;charset=gb2312");//$getIP="111.176.149.35"; // 这里是自己随原创 2010-05-19 13:40:00 · 586 阅读 · 0 评论 -
smarty教程
http://www.phpeveryday.com/articles/Smarty-Template-Installation-P608.html原创 2010-05-25 14:35:00 · 442 阅读 · 0 评论 -
smarty模板config_load使用报错原因
经过一番测试最终发现当在模板中使用config_load时 要注意编码格式 需要的格式是ANSI 而不是 UTF-8否则就会报类似下面的错误:Uncaught exception Exception with message Unexpected input at line1: � in C:/Program Files/Apache Group/Apache2/htdocs/s原创 2010-05-26 12:36:00 · 2298 阅读 · 1 评论