分类:
2008-05-29 09:24:38
在php网页的开头加入以下
www~phperz~com 然后到最后加入以下代码 phperz.com
phperz~com
php程序员之家
结果执行了die()之后,不管返回什么,程序都已经停止执行了,并且显示指定的出错信息,也就达到了调试的目的。 www~phperz~com php程序员站 php复选框的问题
phperz.com
php程序员站
php程序员站
phperz.com
关于php水印的问题
|
$utf8.=u2utf8(hexdec($codetable[hexdec(bin2hex($this))-0x8080])); } else { $gb=substr($gb,1,strlen($gb)); $utf8.=u2utf8(substr($gb,0,1)); } } $ret=\"\"; for($i=0;$i return $ret; } function u2utf8($c) { for($i=0;$i if ($c < 0x80) { $str.=$c; } else if ($c < 0x800) { $str.=(0xc0 | $c>>6); $str.=(0x80 | $c & 0x3f); } else if ($c < 0x10000) { $str.=(0xe0 | $c>>12); $str.=(0x80 | $c>>6 & 0x3f); $str.=(0x80 | $c & 0x3f); } else if ($c < 0x200000) { $str.=(0xf0 | $c>>18); $str.=(0x80 | $c>>12 & 0x3f); $str.=(0x80 | $c>>6 & 0x3f); $str.=(0x80 | $c & 0x3f); } return $str; } header(\"content-type: image/gif\"); $im = imagecreate(400,300); $bkg = imagecolorallocate($im, 0,0,0); phperz.com $clr = imagecolorallocate($im, 255,255,255); $fnt = \"wb.ttf\"; //include(\"gb2utf8.php\"); $str = gb2utf8(\"中国\"); imagettftext($im, 20, 0, 10, 20, $clr, $fnt, $str); imagegif($im); imagedestroy($im); ?> php程序员站 |
以下为引用的内容: //对javascript和select部件的结合运用 phperz.com switch ($mon){ $uploadimgurl="mag/"; $showdatefilename=strftime("%y%m%d%h%m%s"); if($_get["up"]=="up"){ $uploadimgname=$_files['pic']['name']; $filecount=$_files['pic']['size']; $max_file_size=$_post["max_file_size"]; if ($filecount>$max_file_size){ echo ""; }else{ $endfilename=strrchr($uploadimgname,"."); $filepath=$uploadimgurl."arc".$showdatefilename.$endfilename; if (strspn(strrchr($uploadimgname,"."),".jpgifjpgif")>3){ php程序员站 move_uploaded_file($_files['pic']['tmp_name'],$filepath); ?> }else{ echo ""; } } } ?> |
$utf8.=u2utf8(hexdec($codetable[hexdec(bin2hex($this))-0x8080])); } else { $gb=substr($gb,1,strlen($gb)); $utf8.=u2utf8(substr($gb,0,1)); } } $ret=\"\"; for($i=0;$i return $ret; } function u2utf8($c) { for($i=0;$i if ($c < 0x80) { $str.=$c; } else if ($c < 0x800) { $str.=(0xc0 | $c>>6); $str.=(0x80 | $c & 0x3f); } else if ($c < 0x10000) { $str.=(0xe0 | $c>>12); $str.=(0x80 | $c>>6 & 0x3f); $str.=(0x80 | $c & 0x3f); } else if ($c < 0x200000) { $str.=(0xf0 | $c>>18); $str.=(0x80 | $c>>12 & 0x3f); $str.=(0x80 | $c>>6 & 0x3f); $str.=(0x80 | $c & 0x3f); } return $str; } header(\"content-type: image/gif\"); $im = imagecreate(400,300); $bkg = imagecolorallocate($im, 0,0,0); phperz.com $clr = imagecolorallocate($im, 255,255,255); $fnt = \"wb.ttf\"; //include(\"gb2utf8.php\"); $str = gb2utf8(\"中国\"); imagettftext($im, 20, 0, 10, 20, $clr, $fnt, $str); imagegif($im); imagedestroy($im); ?> php程序员站 |
以下为引用的内容: //对javascript和select部件的结合运用 phperz.com switch ($mon){ $uploadimgurl="mag/"; $showdatefilename=strftime("%y%m%d%h%m%s"); if($_get["up"]=="up"){ $uploadimgname=$_files['pic']['name']; $filecount=$_files['pic']['size']; $max_file_size=$_post["max_file_size"]; if ($filecount>$max_file_size){ echo ""; }else{ $endfilename=strrchr($uploadimgname,"."); $filepath=$uploadimgurl."arc".$showdatefilename.$endfilename; if (strspn(strrchr($uploadimgname,"."),".jpgifjpgif")>3){ php程序员站 move_uploaded_file($_files['pic']['tmp_name'],$filepath); ?> }else{ echo ""; } } } ?> |
$utf8.=u2utf8(hexdec($codetable[hexdec(bin2hex($this))-0x8080])); } else { $gb=substr($gb,1,strlen($gb)); $utf8.=u2utf8(substr($gb,0,1)); } } $ret=\"\"; for($i=0;$i return $ret; } function u2utf8($c) { for($i=0;$i if ($c < 0x80) { $str.=$c; } else if ($c < 0x800) { $str.=(0xc0 | $c>>6); $str.=(0x80 | $c & 0x3f); } else if ($c < 0x10000) { $str.=(0xe0 | $c>>12); $str.=(0x80 | $c>>6 & 0x3f); $str.=(0x80 | $c & 0x3f); } else if ($c < 0x200000) { $str.=(0xf0 | $c>>18); $str.=(0x80 | $c>>12 & 0x3f); $str.=(0x80 | $c>>6 & 0x3f); $str.=(0x80 | $c & 0x3f); } return $str; } header(\"content-type: image/gif\"); $im = imagecreate(400,300); $bkg = imagecolorallocate($im, 0,0,0); phperz.com $clr = imagecolorallocate($im, 255,255,255); $fnt = \"wb.ttf\"; //include(\"gb2utf8.php\"); $str = gb2utf8(\"中国\"); imagettftext($im, 20, 0, 10, 20, $clr, $fnt, $str); imagegif($im); imagedestroy($im); ?> php程序员站 |
以下为引用的内容: //对javascript和select部件的结合运用 phperz.com switch ($mon){ $uploadimgurl="mag/"; $showdatefilename=strftime("%y%m%d%h%m%s"); if($_get["up"]=="up"){ $uploadimgname=$_files['pic']['name']; $filecount=$_files['pic']['size']; $max_file_size=$_post["max_file_size"]; if ($filecount>$max_file_size){ echo ""; }else{ $endfilename=strrchr($uploadimgname,"."); $filepath=$uploadimgurl."arc".$showdatefilename.$endfilename; if (strspn(strrchr($uploadimgname,"."),".jpgifjpgif")>3){ php程序员站 move_uploaded_file($_files['pic']['tmp_name'],$filepath); ?> }else{ echo ""; } } } ?> |
php中解决只有半个汉字的问题 php程序员站
以下为引用的内容: function char($str,$len){ |