易截截图软件、单文件、免安装、纯绿色、仅160KB

PHP 几个路径函数

 //
dirname()
// Returns directory name component of path
basename()
// Returns filename component of path
pathinfo()
// Returns information about a file path;
// pathinfo() returns an associative array containing information about path .
parse_url()
// Parse a URL and return its components;
// This function parses a URL and returns an associative array
// containing any of the various components of the URL that are present.
realpath()
// Returns canonicalized absolute pathname;
// realpath() expands all symbolic links and resolves references to '/./', '/../' and
// extra '/' characters in the input path . and return the canonicalized absolute pathname.
http_build_query()
// Generate URL-encoded query string;
// Generates a URL-encoded query string
// from the associative (or indexed) array provided.
http_build_url()
// Build an URL
 


相关文档:

最令PHP初学者头痛的十四个问题

 【1】页面之间无法传递变量 get,post,session在最新的php版本中自动全局变量是关闭的,所以要从上一页面取得提交过来得变量要使用$_GET['foo'],$ _POST['foo'],$_SESSION['foo']来得到。当然也可以修改自动全局变量为开(php.ini改为 register_globals = On);考虑到兼容性,还是强迫自己熟悉新的写法比较好。  
【 ......

PHP处理在线用户

 转贴自: http://hi.baidu.com/isnono/blog/item/3c94ea11a54a0fc7a7ef3f94.html
经常在CSDN的PHP论坛上看到有朋友问处理在线用户的问题,我写过类似的代码,就拿出来献丑了,有点垃圾,基本上实现了功能, 同是也能够扩展,比如同时只允许一个帐号在线等。
/*
程序用途:检测在线用户
程序作者:heiyeluren
写作时间 ......

php读写上亿记录数据库测试

硬件:Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz         4G内存
1、哈希型数据库
2、关系型数据库   
 表结构
 name sex age memo1 memo2 memo3 memo4 memo5 memo6 memo7 memo8 memo9 memo10 memo11 memo12 memo13
&n ......

PHP 5.2.11安装

#找到:
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gz ......

PHP教程:插件机制在PHP中实现方案

 这篇文章的出发点是我对插件机制的理解,及其在PHP中的实现。此方案仅是插件机制在PHP中的实现方案之一,写下来和大家分享,欢迎大家一起讨论。
插件,亦即Plug-in,是指一类特定的功能模块(通常由第三方开发者实现),它的特点是:当你需要它的时候激活它,不需要它的时候禁用/删除它;且无论是激活还是禁用都不影 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号