![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
半城疯沙
这个作者很懒,什么都没留下…
展开
-
PHP验证码
image.func.php<?phprequire_once 'string.func.php';function verifyImage($type=1,$length=4,$pixel=40,$line=20,$sess_name = "verify"){$sess_name = "verify";session_start();$width = 80;$height = 28;原创 2017-01-04 15:28:12 · 192 阅读 · 0 评论 -
在PHP中封装MySQL常用函数
<?phpfunction connect(){ $link = mysql_connect("localhost","root","")or die("链接失败".mysql_errno().":".mysql_error()); mysql_set_charset("utf8"); mysql_select_db("shop") or die("false");原创 2017-01-06 16:15:00 · 353 阅读 · 0 评论 -
MVC模型简单案例
test.php<?phprequire_once 'testModel.class.php';require_once 'testView.class.php';require_once 'testController.class.php';$testContoller = new testController();$testContoller->show();?>testModel.原创 2017-01-07 16:54:56 · 239 阅读 · 0 评论