摘要:
得到一个图片的尺寸,identify test.png结果为:test.png PNG 178x15 178x15+0+0 16-bit PseudoClass 65536c 2.28kb使用shellidentify test.png | cut -d ' ' -f 3 | cut -d 'x' -f 1identify test.png | cut -d ' ' -f 3 | cut -d 'x' -f 2分别得到宽和高不过要是在java中通过runtime来运行这个命令是很麻烦的,它使用空格把参数分割出来的,它不会认为引号引 阅读全文
posted @ 2013-06-13 21:21
代码收集-ASP。JS代码
阅读(372)
评论(0)
推荐(0)
摘要:
PHP 大小写转换1.将字符串转换成小写 strtolower(): 该函数将传入的字符串参数所有的字符都转换成小写,并以小定形式放回这个字符串.例:<?php $str = "I want To FLY"; $str = strtolower($str); echo $str;?>输出结果:i want to fly2.将字符转成大写 strtoupper(): 该函数的作用同strtolower函数相反,是将传入的字符参数的字符全部转换成大写,并以大写的形式返回这个字符串.用法同strtolowe()一样.3.将字符串首字符转换成大写 usfilst(): 阅读全文
posted @ 2013-06-13 16:48
代码收集-ASP。JS代码
阅读(511)
评论(0)
推荐(0)
摘要:
function remote_filesize($uri,$user='',$pw=''){ // start output buffering ob_start(); // initialize curl with given uri $ch = curl_init($uri); // make sure we get the header curl_setopt($ch, CURLOPT_HEADER, 1); // make it a http HEAD request curl_setopt($ch, CURLOPT_NOBOD... 阅读全文
posted @ 2013-06-13 15:38
代码收集-ASP。JS代码
阅读(334)
评论(0)
推荐(0)