上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 76 下一页
摘要: $v) { $source[$k]['source'] = Imagecreatefromjpeg($v); $source[$k]['size'] = getimagesize($v); } /*echo ""; print_r($source); echo "";*/ //imagecopy ($target_img,$source[0]['source'],2,2... 阅读全文
posted @ 2016-10-28 18:11 浮尘微光 阅读(2153) 评论(0) 推荐(0)
摘要: <?php //虽然使用 $_SERVER[REMOTE_ADDR] 也可以获取,但是要获取真实的客户端IP地址,需要使用下面的方法: function _getIP(){ $ip=getenv('REMOTE_ADDR'); $ip_ = getenv('HTTP_X_FORWARDED_FOR'); if (($ip_ != "") && ($ip_ ... 阅读全文
posted @ 2016-10-28 18:09 浮尘微光 阅读(451) 评论(0) 推荐(0)
摘要: 【2019年11月19日17:37:43】 阅读全文
posted @ 2016-10-28 18:09 浮尘微光 阅读(1703) 评论(0) 推荐(0)
摘要: 0 ){ if ( strlen($result[0]) == 2 ){ $matched = preg_match('/'.$words.'/iu', $string, $result); } if ( $matched && isset($result[0]) && strlen($result[0]) > 0 ... 阅读全文
posted @ 2016-10-28 18:08 浮尘微光 阅读(1979) 评论(0) 推荐(0)
摘要: 准备工作: 代码: 【效果】 如果要将图片保存到某个文件夹,只需将 : imagepng($im);改为: imagepng($im,"路径/output.png"); 阅读全文
posted @ 2016-10-28 18:07 浮尘微光 阅读(608) 评论(0) 推荐(0)
摘要: '中文字符串','value'=>'test'); //echo json_encode($testJSON); foreach ( $testJSON as $key => $value ) { $testJSON[$key] = urlencode ( $value ); } echo urldecode ( json_encode ( $testJSON ) ); ... 阅读全文
posted @ 2016-10-28 18:05 浮尘微光 阅读(595) 评论(0) 推荐(0)
摘要: array( 'activity_id' => 1, 'activity_name' => '午夜今日特价345345sss', 'shop_id' => 300001, ), 1 => array( 'activity_id... 阅读全文
posted @ 2016-10-28 18:05 浮尘微光 阅读(471) 评论(0) 推荐(0)
摘要: 【json】{"user_id":"1172940","rmb_point":"0","weixin_id":"QQ13559636778","weixin_name":"\u5893\u5fd7\u94ed","qq_number":"2563815642"} 此数据可由 PHP的 json_en 阅读全文
posted @ 2016-10-28 18:04 浮尘微光 阅读(1696) 评论(0) 推荐(0)
摘要: <?php function check_remote_file_exists($url) { $curl = curl_init($url); // 不取回数据 curl_setopt($curl, CURLOPT_NOBODY, true); // 发送请求 $result = curl_exec($curl); $found = false... 阅读全文
posted @ 2016-10-28 18:03 浮尘微光 阅读(541) 评论(0) 推荐(0)
摘要: <?php /** * 【php获取目录中的所有文件名】 */ //1、先打开要操作的目录,并用一个变量指向它 //打开当前目录下的目录pic下的子目录common。 $handler = opendir('pic/common'); //2、循环的读取目录下的所有文件 //其中$filename = readdir($handler)是每次循环的时候将读取的文件名赋值给$filen... 阅读全文
posted @ 2016-10-28 18:02 浮尘微光 阅读(7808) 评论(0) 推荐(0)
上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 76 下一页