PHP分类下的博客

PHP Startup: Unable to load dynamic library php_curl.dll

piaoling  2013-04-14 15:02:27

本人是win7 64位系统,在使用 wamp开启curl扩展时候失败, apache日志中显示 <b>Warning</b>: PHP Startup: Unable to load dynamic library 'd:/wamp/bin/php/php5.3.13/ext/php_curl.dll' - 应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件日志,或使用命令行 sxstrace.exe 工具。 libeay32.dll, ssleay32.dll都已经做过了拷贝到c:\windows\system32文件夹中的处理 问题依旧, 查看了win7的事件查看器 有如下提示 “d:\wamp \bin\php\php5.......

类别 :  PHP(78)  |  浏览(5113)  |  评论(0)

PHP md

piaoling  2013-03-25 12:59:37

The preferred way to install PHPMD should be the PEAR installer and PHPMD's PEAR channel, where you will always find the latest stable version. Because PHPMD heavily relies on metrics measured with PHP Depend you must also discover this project's PEAR Channel. Just enter: ~ $ pear channel-discover pear.phpmd.org ~ $ pear channel-discover pear.pdepend.org ~ $ pear install --alldeps phpmd/PHP_PMD from : http://phpmd.org/download.html ......

类别 :  PHP(78)  |  浏览(4394)  |  评论(0)

S.O.L.I.D.类设计原则

piaoling  2012-12-04 13:46:17

本文是由敏捷宣言签署人之一、《 Clean Code(代码整洁之道)》一书的作者Robert C. Martin为他的《Applying Principles and Patterns》这本书搜集整理而来。 单一责任原则(SRP) 只有一个理由去修改一个类。例如,如果一个业务规则的改变会导致这个类的修改,那么,数据库、界面、报表格式或系统任何其它的部分的改变都不该迫使这个类做修改。 http://davidhayden.com/blog/dave/archive/2005/05/29/1066.aspx http://c2.com/cgi/wiki?SingleResponsibilityPrinciple 《Head First 设计模式》 ......

类别 :  PHP(78)  |  浏览(4481)  |  评论(0)

PHP日期格式转时间戳

piaoling  2012-10-15 14:04:25

PHP 提供了函数可以方便的将各种形式的日期转换为时间戳,该类函数主要是: strtotime():将任何英文文本的日期时间描述解析为时间戳。 mktime():从日期取得时间戳。 strtotime() strtotime() 函数用于将英文文本字符串表示的日期转换为时间戳,为 date() 的反函数,成功返回时间戳,否则返回 FALSE 。语法: int strtotime ( string time [, int now] ) 参数 time 为被解析的字符串,是根据 GNU 日期输入格式表示的日期。 例子: <?php echo strtotime("2009-10-21 ......

类别 :  PHP(78)  |  浏览(4452)  |  评论(0)

phpmyadmin

piaoling  2012-07-29 22:35:23

<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'......

类别 :  PHP(78)  |  浏览(4241)  |  评论(0)

Warning: ftp_put() 问题的解决办法之被动模式

piaoling  2012-03-22 18:27:16

Warning: ftp_put() 问题的解决办法之被动模式 问题代码如下:<?php $conn = ftp_connect("ftp.bacysoft.cn") or die("Could not connect"); ftp_login($conn,"test","test1234"); ftp_put($conn,"target.rar","local.rar",FTP_BINARY,0); ftp_close($conn); echo "done"; ?>代码说明: 本代码通过PHP服务器在后台使用 FTP 协议将本地文件 “local.rar” 上传到远程 FTP 文件服务器上,并保存为 “target.rar”。即 PHP 服务器作为 FTP Client 上传文件到......

类别 :  PHP(78)  |  浏览(4581)  |  评论(0)

congratulation to me

piaoling  2012-03-03 19:19:40

Congratulation to me ,I passed the zend php5.3 Certified Engineer. https://www.zend.com/en/store/education/certification/yellow-pages.php#show-ClientCandidateID=ZEND019160 ......

类别 :  PHP(78)  |  浏览(4100)  |  评论(0)

php框架

piaoling  2011-12-23 10:53:27

分享个自己弄的php框架 v0.0001版 大东哥 发表于 11-18 20:36 1个月前, 11回/522阅, 最后回答: 8天前 (6人收藏 ,收藏 |举报) 讨论区 » 技术分享 顶 3 踩 最近整理做过的小东西,发现为学php曾短暂搞过个php框架。后面忙别的就没下文了,估计接下来也没什么精力搞,想想还是放出来晒晒吧,主要是思路的交流。 项目目录结构采用playframework的类似结构。 既然宣称它是个MVC框架,基本的东西要有: 路由,参数绑定,参数验证,重定向......

类别 :  PHP(78)  |  浏览(4361)  |  评论(0)

PHP实现定时功能

piaoling  2011-09-06 14:51:37

PHP实现定时功能  2011 年 08 月 23 日 php 实现定时功能,关键是让脚本不超时的一直运行下去. ignore_user_abort(true); # 设置客户端连接中断,脚本也将继续执行下去 set_time_limit(0); # 设置脚本不超时 $interval=30; // do every 15 minutes... do{ $fp = fopen('test.txt','a'); fwrite($fp, time()); fclose($fp); sleep(30); # 每隔30秒填补到test.txt文件 }while(true); ?> 最后简单介绍下php和客户端的连接处理: 在 PHP 内部,系统维护着连接状态,其状态有三种可能的情况: 0 ......

类别 :  PHP(78)  |  浏览(4389)  |  评论(0)

php read csv file

piaoling  2011-08-16 11:40:20

In this article, I will be showing you how to read and write CSV file with PHP. I have used PHP function fgetcsv to read CSV fields and fputcsv to write on CSV file. fgetcsv — Gets line from file pointer and parse for CSV fields. fgetcsv() parses the line it reads for fields in CSV format and returns an array containing the fields read. This works on PHP 4 and PHP 5.   fputcsv — Format line as CSV and write to file pointer. fputcsv() formats a line (passed as a fields array) as CSV and write it (terminated by a newline) to the specified f......

类别 :  PHP(78)  |  浏览(4607)  |  评论(0)
  • Page:1/8  78 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类