生成
- <html> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="http://ajax......2016-11-25 15:59
- /* 函数:生成缩略图 MakeBuild("images/a.jpg","news/b.jpg","100"); 参数: echo $BuildFile; 原图 带路径 echo $newFile; 生成的缩略图......2016-11-25 15:58
php 生成静态页面类,利用ob_start ob_get_content 函数简单实用
class CreateHtml{ /*function mkdir($prefix= 'article' ){ $y = date('Y'); $m = date('m'); $d = date('d'); $p=DIRECTORY_SEPARATOR; $filePath......2016-11-25 15:58- <?php class My_Lib_Functions { # ******************************************** # 对象转数组 # ******************************************** function obj...2016-11-25 15:58
- session_start(); $img_width=70; //先定义图片的长、宽 $img_height=28; $num_array=range(0,9); $small_char_array=range('a','z'); $big_char_...2016-11-25 15:58
- Header("Content-type: image/PNG"); srand((double)microtime()*1000000); $im = imagecreate(58,25); $black = ImageColor...2016-11-25 15:58
- <?php require ('resize_img.php'); //how to use the class: //makes a simple thumbnail of an image of 100x100 and saves the image then outputs it. $imgre...2016-11-25 15:58
- 预备知识 模板技术: PHP模板引擎Smarty介绍 PHP配置使用Smarty技术 缓存技术: 比如经常不变的信息,但是还是需要改变的信息放在缓存中以加快显示速度,这是很有价值......2016-11-25 15:58
- class mkHtml{ var $url; var $contents; var $path; function __construct() { $this->url ='http://www.111cn.net/'; $this->path ='.....2016-11-25 15:57
- 主要是以fopen 为主来生成指定目录与指定日期生成静态文件哦,本程序可以自动判断如果是目录并且目录不存在就创建目录,当然可以更新$path来根据目录生成文件或与目录名......2016-11-25 15:57
- class html { var $dir; //dir for the htmls(without/) var $rootdir; //root of html files(without/):html var $name; //html文件存放路径 var $dirname...2016-11-25 15:57
- 这款教程是非常简单的,我们来看这款生成xml文档实例,就是把数据库的内容读出来,然后再用fopen生成一个.xml文档的文件就OK了。 <?php mysql教程_connect('local......2016-11-25 15:57
php 生成符合google 地图标准xml类sitemap代码
mysql教程_connect("localhost","root","root") or die('Database Server Uid or Password Error!'); mysql_select_db('ip') or die('data !'); mysql_query("SE......2016-11-25 15:57- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> ......2016-11-25 15:57
- function readable_random_string($length = 6){ $conso=array("b","c","d","f","g","h","j","k","l", "m","n","p","r",&quo......2016-11-25 15:57
- <?php教程 class resizeimage { //图片类型 var $type; //实际宽度 var $width; //实际高度 var $height; //改变后的宽度 ...2016-11-25 15:57
- 修改dedecms 织梦系统 生成静态页面栏目缓存文件路径 由于dedecms 生成频道栏目,要生成一个临时mkall_cache_{adminid}.php教程文件,这对网站做安全会有一定的影响,特别......2016-11-25 15:57
- //ini_set("display_errors",1);//是否显示报错信息 //ini_set('include_path', ini_get('include_path').';D:\\www.111cn.net\\htdocs\\lianxi\\1.7.2\\Classes');//设置......2016-11-25 15:56
- 代码如下 复制代码 function poWrite($filename,$data,$method='rb+',$iflock=1,$check=1,$chmod=1){ touch($filename); $...2016-11-25 15:56
- <? / /原来是Zend.com,由亨特reproducted / * 用法:$ new_password = return_password(); 示例:生成密码:2X5bjj2z,ERgid62Y,p2sHtDPv * / 代码如下 复制代码 ......2016-11-25 15:56