将PHP程序打包成可执行的phar文件

Posted by 夏泽民

phpunit的做法是把所有相关文件打包封装到一个phar包里去分发,我也可以这么干。



用phar-composer来构建基于composer的phar包

Posted by 夏泽民

phar.readonly=off 本文成功执行的前提依然是php.ini中的phar.readonly=off。



openssl 扩展安装不正确导致https请求 segmentfault

Posted by 夏泽民

$composer global require xx -vvv Changed current directory to /Users/didi/.composer Loading config file /Users/didi/.composer/config.json Loading config file /Users/didi/.composer/auth.json Reading /Users/didi/.composer/composer.json Loading config file /Users/didi/.composer/config.json Loading config file /Users/didi/.composer/auth.json Loading config file /Users/didi/.composer/composer.json Loading config file /Users/didi/.composer/auth.json Reading /Users/didi/.composer/auth.json Segmentation fault: 11



mysql_real_escape_string

Posted by 夏泽民

mysql_real_escape_string — 转义 SQL 语句中使用的字符串中的特殊字符,并考虑到连接的当前字符集



magic_quotes_gpc

Posted by 夏泽民

php中的magic_quotes_gpc是配置在php.ini中的,他的作用类似addslashes(),就是对输入的字符创中的字符进行转义处理。他可以对$_POST、$__GET以及进行数据库操作的sql进行转义处理,防止sql注入。



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required