PHP 软件列表

php str_pad 函数使用详解
PHP

php str_pad 函数使用详解

2020-02-16 标签:php,str,pad,函数,使用,详解,string,int,length,type,指定,字符串,长度,用来,填充,可选,参数,位置,left,均为

string str_pad ( string , int pad_length , string pad_string , int pad_type); string 指定字符串,pad_length指定长度,pad_string用来填充的字符串(可选参数),pad_type指定填充位置(可选参数

php mssql 时间格式问题
PHP

php mssql 时间格式问题

2020-02-16 标签:php,mssql,时间,格式,问题,当然是,程序,解决,比较,灵活,例如,select,convert,char,日期,字段,120,date,table

当然是在程序里解决比较灵活,例如: “select convert(char,日期字段,120) as date2 from table” convert(char,date,N)输出的各中样式 N 日期样式 0 04 2 2005 9:06AM 1 04/02/05 2 05.04.02 3 02

php zend 相对路径问题
PHP

php zend 相对路径问题

2020-02-16 标签:php,zend,相对路径,问题,define,p,s,path,separator,root,set,include,require,once,loader,loadclass,db,config,ini,page

db->adapter,$config->db->config->toArray()); ?> select(); $select->from("UserGroup","*"); $action_log=$db->fetchAll($select); for

PHP setcookie() cannot modify header information 的解决方法
PHP

PHP setcookie() cannot modify header information 的解决方法

2020-02-16 标签:php,setcookie,cannot,modify,header,information,解决方法,使用,函数,报以,错误,warning,headers,already,sent,解决办法,如下,方法,cookie,是有

使用setcookie()函数时总是报以下错误: Warning: Cannot modify header information - headers already sent by.... 解决办法如下: 方法一: 在PHP里Cookie的使用是有一些限制的。 1、使用setcookie必须在标

php mssql 数据库分页SQL语句
PHP

php mssql 数据库分页SQL语句

2020-02-16 标签:php,mssql,数据库,分页,sql,语句,在编,mis,系统,web,应用程序,涉及到,交互,数据量,很大的,检索,所有的,记录,会占

我们在编写MIS系统和Web应用程序等系统时,都涉及到与数据库的交互,如果数据库中数据量很大的话,一次检索所有的记录,会占用系统很大的资源,因此我们常常采用,需要多少数据就只从数据库中取多少条记录,即采用分页语句。根据自己使用过的内容,把常见数据库Sql Server,Oracle和MySQL的分页

linux下 C语言对 php 扩展
PHP

linux下 C语言对 php 扩展

2020-02-16 标签:linux,c,语言,php,扩展,搭建,环境,下载,源码,解压,编译,安装,创建,项目,进入

一,搭建php环境下载php 5.2.6 源码 并解压编译安装,搭建php环境二,创建扩展项目进入源码目录cd php5.2.6/ext/./ext_skel --extname=my_ext创建名字为my_ext的项目,最终会生成my_ext.so三,更改配置和程序$ vi ext/my_ext/

php 文件状态缓存带来的问题
PHP

php 文件状态缓存带来的问题

2020-02-16 标签:php,文件,状态,缓存,带来,问题,stat,lstat,file,exists,writable,readable,executable,dir,link,filectime,fileatime,filemtime,fileinode,filegroup

stat(),lstat(),file_exists(),is_writable(),is_readable(),is_executable(),is_file(),is_dir(),is_link(),filectime(),fileatime(),filemtime(),fileinode(),

asp php 清空access mysql mssql数据库的代码
PHP

asp php 清空access mysql mssql数据库的代码

2020-02-16 标签:asp,php,清空,access,mysql,mssql,数据库,代码,实现,如下,dim,rs,conn,set,server,adodb,connection,open,provider

asp代码 实现代码如下: php清空mysql 实现代码如下:正在清空数据库..."; $result=mysql_query("SHOW tables",$link); while ($currow=mysql_fetch_array($result)); mysql_query("DROP T

快速开发一个PHP扩展图文教程
PHP

快速开发一个PHP扩展图文教程

2020-02-16 标签:快速,开发,php,扩展,图文,教程,需求,比如,叫做,heiyeluren,函数,test,输入,一个字,返回,input,string,xxxxx

需求:比如开发一个叫做 heiyeluren 的扩展,扩展里就一个函数 heiyeluren_test(),输入一个字符串,函数返回:Your input string: xxxxx。 要求:了解C/C++编程,熟悉PHP编程 环境:下载一份php对应版本的源码,我这里是 php-5.2.6,先正常

PHP Google的translate API代码
PHP

PHP Google的translate API代码

2020-02-16 标签:php,google,translate,api,代码,新建,ansi,文件,创建,实现,如下,header,content,type,text,html,charset,utf

新建一个ANSI的PHP文件,然后创建一个类: 实现代码如下:header("Content-Type: text/html; charset=utf-8"); class Google_API_translator{ public $opts = array("text" => "", "l