php,mysql
文章平均质量分 66
酷扬
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
0510--第13次PHP作业--文件上传验证函数
function files($file) { if(empty($file)){ $_SESSION['fileerror']=1; header('location:../after_end/info.php'); exit(); } switch ($file['error']){ case 0;原创 2017-05-11 17:47:39 · 325 阅读 · 0 评论 -
0511---第14次PHP作业--分页函数
function limit($num,$hello='10',$list='1'){ $total=ceil($num/$hello); $total=$total>0?$total:1; $page = isset($_GET['page']) ? intval($_GET['page'])原创 2017-05-11 17:49:01 · 327 阅读 · 0 评论 -
第22次PHP作业--抽象类的分页运用
abstract class PageFather{ public $num; public $hello; public $list; public $page; public $total; public $totals; public $ids; public function __construct($num,原创 2017-05-23 20:57:54 · 232 阅读 · 0 评论 -
PHP考试
//第一种$open= fopen(dirname(__FILE__),'/a.txt','r');while (!feof($open)){ echo fgets($open);}fclose($open);//第二种$txt= dirname(__FILE__).'/a.txt';echo file_get_contents($txt)原创 2017-05-24 16:13:37 · 419 阅读 · 0 评论 -
第23次PHP作业--MVC
class IndexModel{ public $data=array(); public function __construct(){ $conn=mysqli_connect('localhost','root','','myitem'); mysqli_query($conn,'set names utf8');原创 2017-05-25 17:35:39 · 234 阅读 · 0 评论 -
0515---第十六次作业----水印
function water($bigPath,$pos=5){$rootPath = dirname(dirname(__FILE__));$bigPath = $rootPath.$bigPath;$smallPath=$rootPath .'/images/logo.png';$bigImgInfo= getimagesize($bigPath);$smallImgIn原创 2017-05-15 16:28:08 · 248 阅读 · 0 评论 -
0515---第17次PHP作业----缩略图
function thumb($sourceImgPath,$wid="230",$hei="230") { $rootPath = dirname(dirname(__FILE__));$newPath = $rootPath.$sourceImgPath;$sourceImgInfo=getimagesize($newPath);$s_w=$sourceImgInfo[原创 2017-05-15 16:29:06 · 231 阅读 · 0 评论 -
0515----第19次PHP作业----MySQL多表联系
$conn=@mysql_connect('localhost','root',''); $db= mysql_select_db('myitem',$conn); mysql_query('set names utf8',$conn);原创 2017-05-15 16:30:32 · 255 阅读 · 0 评论 -
第24次PHP作业---thinkPHP
return array( //'配置项'=>'配置值' //显示页面Trace信息 'SHOW_PAGE_TRACE' =>true, 'DEFAULT_MODULE' => 'Admin', 'DEFAULT_CONTROLLER' => 'Index', // 默认控制器名称(类) 'DEFAULT_ACTION' => '原创 2017-05-26 15:14:45 · 286 阅读 · 0 评论 -
0516---第20次PHP作业---分类管理
session_start();date_default_timezone_set('PRC');if (empty($_SESSION["admin"])) { header('location:login.php'); exit();}?> require '../function/limitfunc.p原创 2017-05-16 17:32:57 · 279 阅读 · 0 评论 -
0509--第十三次PHP作业---分页函数
function limit($num,$hello='10'){ $total=ceil($num/$hello); $total=$total>0?$total:1; $page = isset($_GET['page']) ? intval($_GET['page']) : 1;原创 2017-05-09 17:30:33 · 520 阅读 · 0 评论 -
第32次PHP作业--面向对象
class Mysql{ public $webName='localhost'; public $port=':3306'; public $adminName='root'; public $pwd=''; public $number='UTF8'; public $item='myitem'; public $conn;原创 2017-05-22 16:28:53 · 270 阅读 · 0 评论
分享