php functions with example(http://www.phpchina.com/html/05/n-22205.html)
(http://blog.csdn.net/hotrock/archive/2004/10/27/155209.aspx )[PHP和MySQL Web开发]用HP写一个格式化显示文件大小的函数<?php function getFileSize($file_name){ $K = 1024; $M = 1024*$K; $G = 1024*$M; $file_size = filesize($file_name); if($file_size>$G){ $file_size = ($file_size / $G)." G"; }elseif($file_size>$M){ $file_size = ($file_size / $M) ." M"; }elseif($file_size > $K){ $file_s
php提交给form怎么就取不到值
<form action="article_validate.php" method="post" > <ul> <li > <input name="keywords" class="textbox2" type="text" id="demo" value="" style=" width:171px; height:22px; border:1px solid #741918; line-height:22px; line-height:22px!important; background-color:#ffffff;color:#7a0106; letter-spacing:2px; text-align:left; " /> </l
discuz
http://www.alan888.com/Discuz/thread-9050-1-1.html不可多得[@more@]http://www.alan888.com/Discuz/thread-9050-1-1.html
Images in PHP
本人创建了个表images来存储档案照片,字段分为id,code,image三个部分。MySQL里的code用的是varchar,gb2312编码,image用的是longblob,二进制下面是读取数据库的php代码 文件名是 image_create.php3PHP codeinclude("session.php");//连接数据库mysql_query("SET NAMES 'GB2312'");$code = $_GET["code"]; //获得显示页面的code值$sql = "SELECT * FROM images WHERE code='".$code."'";$result_2=mysql_query($sql);$row_image=mysql_fetch_object($result_2); header("Con
php的ror类似框架, 有精美的视频展示
http://qeephp.com/bbs/thread-5305-1-1.html(http://qeephp.com/bbs/thread-4488-1-1.html)http://www.codeigniter.com/ http://www.codeigniter.com/watch/ 看其20分钟用此框架制作blog质量清晰,片头内容渲染得十分华丽,操作从容不迫, 比ROR官方的快放的录入要稳当的多 比较铁道播客的15分钟RadRails作blog, 就感觉时间紧了些,手工的录入还是多了点 半路也有磕磕绊绊的时候 http://rorcast.blogger2blogger.com/public/articles/2006/03/24/15%E5%88%86%E9%92%9F%E7%94%A8radrails%E4%BD%9C%E4%B8%AA%E7%AE%80%E5%8D