-
- PHP :time(),date(),mktime()
- ec(2); 日期与时间函数库{经常会忘却掉} checkdate : 验证日期的正确性。 date : 将服务器的时间格式化。 strftime : 将服务器的时间本地格式化。 getdate : 获得时间及日期信息。 gettimeofday : 取得目前时间。 gmdate : 取得目前与 GMT 差后的时间。 easter_date : 计算复活节日期。 easter_days :
- PHP源码 . php教程 1533 2016-06-08 17:28:30
-
- php 获取文件大小函数与实例教程
- ec(2); php 获取文件大小函数与实例教程 <?php function getFileSize($url){ $url = parse_url($url); if($fp = @fsockopen($url['host'],empty($url['port'])?80:$url['port'],$error)){ fputs($fp,"GET ".
- PHP源码 . php教程 1332 2016-06-08 17:28:30
-
- php array_push_assoc() 函数
- ec(2); <?php /*** an array of attributes about a dog ***/ $array = array('animal'=>'dog', 'name'=>'Offenbach', 'owner'=>'Mr Smith'); /*** add the dogs favourite food to the array ***/
- PHP源码 . php教程 1179 2016-06-08 17:28:30
-
- php checkdate日期验证
- ec(2); <?php /** * * Validate a date * * @param string $
- PHP源码 . php教程 1169 2016-06-08 17:28:29
-
- php 利用GD创建缩略图
- ec(2); <?php error_reporting(E_ALL); $width = 80; /*** the image file to thumbnail ***/ $image = 'spork.jpg'; &
- PHP源码 . php教程 1249 2016-06-08 17:28:28
-
- php 给GIF 缩略图实例代码
- ec(2); <?php try { /*** Read in the animated gif ***/ $animation = new Imagick("animation.gif"); /*** Loop through the frames
- PHP源码 . php教程 1380 2016-06-08 17:28:27
-
-
- php 一行行读取文本文件
- ec(2); 例子 <?php /** * * Read a line number from a file * * @param string $file The path to the file * @param&
- PHP源码 . php教程 1683 2016-06-08 17:28:26
-
- php 文件读入与写入函数
- ec(2); <?php //文件读取函式 function PHP_Read($file_name) { $fd=fopen($file_name,r); while($bufline=fgets($fd, 4096)){ $buf.=$bufline; } fclose($fd); return $buf; } ?> 文件写入函式: <?php //文件写入函式 fu
- PHP源码 . php教程 1538 2016-06-08 17:28:26
-
- php 异常处理try catch Exceptions
- ec(2); 目录 1. 什么是异常 2. d 入门 3. 自定义异常 4. 多个异常 5. 重新抛出异常 6. 程序流的异常 7. 顶层异常处理程序  
- PHP源码 . php教程 1528 2016-06-08 17:28:25
-
- 超简单php mysql数据库查询类
- 本文章为你免费提供一款漂亮的超简单php mysql数据库查询类哦
- PHP源码 . php教程 2152 2016-06-08 17:28:25
-
- php mysql ip地址所在城市查询代码-ip数据库
- ec(2); <? $servername ='localhost'; $dbname='test'; //数据库名 $dbusername ='root'; //数据库用户名 $dbpassword ='root'; //数据库密码 $link=mysql_connect($servername,$dbuserna
- PHP源码 . php教程 1758 2016-06-08 17:28:25
-
- php ENCODE编码,DECODE解码
- ec(2); /** * @ string $str 要编码的字符串 * @ string $ende 操作ENCODE编码,DECODE解码 * @ string $key hash值 * @return string */ function code($str, $ende, $key = '') { $coded
- PHP源码 . php教程 2599 2016-06-08 17:28:24
-
- php 文件下载安全
- ec(2); 此脚本防止文件被链接到其他文件,因为这迫使脚本文件被下载之前在下载开始。这个脚本是非常重要的高度机密的文件。 在此脚本,filter_var()用于过滤文件和有效的字符串验证的文件,该文件使用过滤器将下载的文件FILTER_SANITIZE_STRING。 用PHP标记(“?php)中,使用filter_var()来过滤下载的文件,并验证从阵列(mytextfil
- PHP源码 . php教程 1336 2016-06-08 17:28:24
-
- 将一个二维数组按照指定列进行排序,类似 SQL 语句中的 ORDER BY
- 将一个二维数组按照指定列进行排序,类似 SQL 语句中的 ORDER BY
- PHP源码 . php教程 1113 2016-06-08 17:28:24
PHP讨论组
组员:3305人话题:1500
PHP一种被广泛应用的开放源代码的多用途脚本语言,和其他技术相比,php本身开源免费; 可以将程序嵌入于HTML中去执行, 执行效率比完全生成htmL标记的CGI要高许多,它运行在服务器端,消耗的系统资源相当少,具有跨平台强、效率高的特性,而且php支持几乎所有流行的数据库以及操作系统,最重要的是

