PHP
zhulei632
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
php多进程
<?php //consant $PHP_SCRIPT = "/usr/local/bin/php"; $TASK_FILENAME = "check_apk.php"; $PROCESS_COUNT = 10; //start $id = 0; while(true) { $process = intval(`ps aux|grep $TASK_FILENAME|grep -v原创 2012-07-06 18:18:35 · 827 阅读 · 0 评论 -
[php]通过http post发送json数据
function http_post_data($url, $data_string) { $ch = curl_init(); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POSTF原创 2012-09-24 22:43:22 · 55563 阅读 · 0 评论 -
PHP汉字转换为拼音
参考1: http://www.oschina.net/code/snippet_166228_17876 已验证 参考2: http://wenku.baidu.com/view/8d1c606227d3240c8447ef74.html原创 2013-08-01 00:31:06 · 1370 阅读 · 0 评论 -
wget同时获得文件实体和http header
在一个php脚本中调用wget下载,想要通过http header的Content-Length校验下载文件是否成功 <? $downUrl = 'http://a.b.c/a.zip'; $mainFile = '/home/test/a.zip'; $headerFile = '/home/test/a.zip.header'; `wget --server-response "$down原创 2013-12-11 15:44:54 · 4825 阅读 · 0 评论 -
phpmysqladmin安装和配置
参考http://www.tuicool.com/articles/EzMRBfQ nginx配置文件做自定义修改 server { listen 8109; server_name ip_of_server; access_log /data/nginx/log/phpmyadmin-access.log ; access_log /data/nginx/log原创 2015-02-25 13:39:03 · 6835 阅读 · 0 评论
分享