
php
文章平均质量分 81
Vivian_shuang
Be a IT engineer!
展开
-
分页.php
html>html lang="en">head> meta charset="UTF-8"> meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> me原创 2016-08-15 19:13:33 · 344 阅读 · 0 评论 -
php小练习总结
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/8 * Time: 下午6:57 */header("Content-type:text/html;charset=utf-8");/*1.请写出至少两种php的标记?echo "hello php2.如何定义一个php变量,及一些要注意的变量命名规则有原创 2016-08-15 08:50:56 · 1347 阅读 · 0 评论 -
初识php3
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/9 * Time: 下午2:24 */header("Content-type:text/html;charset=utf-8");// 打开文件// r 只读,只能读取文件// w,可以写入文件内容,会覆盖原来的内容,如果文件不存在会创建// a 在原来内容原创 2016-08-15 08:52:14 · 402 阅读 · 0 评论 -
dir.php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/9 * Time: 下午4:35 */header("Content-type:text/html;charset=utf-8");// 打开当前文件夹$dir = opendir(".");//echo readdir($dir);//echo readd原创 2016-08-15 08:52:52 · 1009 阅读 · 0 评论 -
计算访问量.php
html>html lang="en">head> meta charset="UTF-8"> meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> me转载 2016-08-15 08:53:54 · 289 阅读 · 0 评论 -
remove.php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/9 * Time: 下午5:49 */header("Content-type:text/html;charset=utf-8");function removeDir($path){ if (is_dir($path)){ $arr =原创 2016-08-15 08:54:27 · 372 阅读 · 0 评论 -
mysql.php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/10 * Time: 下午5:20 */header("Content-type:text/html;charset=utf-8");// 连接数据库// 参数1: 服务器的地址// 参数2: 用户名// 参数3. 密码$mysql = mysql_conne原创 2016-08-15 08:56:17 · 320 阅读 · 0 评论 -
验证.php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/10 * Time: 上午9:14 */header("Content-type:text/html;charset=utf-8");//print_r($_GET);//print_r($_POST["username"]);// 所有通过表单上传的内容都在$原创 2016-08-15 08:57:17 · 430 阅读 · 0 评论 -
list.php
list.phphtml>html lang="en">head> meta charset="UTF-8"> meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scal原创 2016-08-15 08:59:27 · 1358 阅读 · 0 评论 -
upload.php
upload.htmlhtml>html lang="en">head> meta charset="UTF-8"> title>Titletitle>head>body>form action="upload.php" enctype="multipart/form-data" method="post"> input type="file" na原创 2016-08-15 09:01:02 · 960 阅读 · 0 评论 -
正则.php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/10 * Time: 下午3:35 */header("Content-type:text/html;charset=utf-8");/*$str = "456dsfs56d54sgesdg";// 三个参数:// 1. 正则表达式// 2. 要匹配的字符串原创 2016-08-15 09:01:41 · 334 阅读 · 0 评论 -
login
需要引入jq和bootstraplogin.php<?php/** * Created by PhpStorm. * User: dllo * Date: 16/9/13 * Time: 上午10:50 */session_start();//$_SESSION["user"] = "kitty";//echo $_SESSION["user"];//var_dump原创 2016-09-22 19:41:13 · 789 阅读 · 0 评论 -
乘法表.php
html>html lang="en">head> meta charset="UTF-8"> meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> me原创 2016-08-15 08:50:19 · 532 阅读 · 0 评论 -
class.php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/9 * Time: 上午10:07 */header("Content-type:text/html;charset=utf-8");// 具有相同特征和行为归为一类class Person{ // 类中的常量 const x = 10;原创 2016-08-15 08:49:10 · 342 阅读 · 0 评论 -
array.php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/8 * Time: 下午5:34 */header("Content-type:text/html;charset=utf-8");// php中数组有两种,一种叫索引数组,和js的数组类似,通过下标来取值// 另外一种叫关联数组,类似于js中的对象,以键=>值的形原创 2016-08-15 08:48:35 · 271 阅读 · 0 评论 -
mysql基础知识
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/11 * Time: 上午9:06 */header("Content-type:text/html;charset=utf-8");// 1. 连接服务器$mysql = mysql_connect("localhost","root","");if ($m原创 2016-08-15 19:14:50 · 332 阅读 · 0 评论 -
模糊查询.php
html>html lang="en">head> meta charset="UTF-8"> meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> me原创 2016-08-15 19:16:33 · 553 阅读 · 0 评论 -
注册,登录.php
login.htmlhtml>html lang="en">head> meta charset="UTF-8"> meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=原创 2016-08-15 19:18:09 · 564 阅读 · 0 评论 -
php绘图
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/12 * Time: 下午3:56 */header("Content-type: image/jpeg");$im = imagecreatetruecolor(100, 100);$w = imagecolorallocate($im, 255, 255,原创 2016-08-19 08:37:02 · 460 阅读 · 0 评论 -
验证码
yanzhengma.htmlhtml>html lang="en">head> meta charset="UTF-8"> title>Titletitle>head>body>form action="yan.php" method="post"> input type="text" placeholder="输入验证码" name="code">原创 2016-08-19 08:37:44 · 328 阅读 · 0 评论 -
php绘图2
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/12 * Time: 下午4:24 */header("Content-type:image/png;");$image = imagecreate(500,500);//第一次调用,会给画布背景添加颜色imagecolorallocate($image,25原创 2016-08-19 08:41:57 · 327 阅读 · 0 评论 -
验证码
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/12 * Time: 下午3:14 */session_start();header("Content-type:text/html;charset=utf-8");header("Content-type: image/png");$width = 200;$原创 2016-08-19 08:42:22 · 420 阅读 · 0 评论 -
验证码php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/12 * Time: 下午3:39 */session_start();getCode(4,60,20);function getCode($num,$w,$h) { $code = ""; for ($i = 0; $i $num; $i++)原创 2016-08-19 08:43:18 · 388 阅读 · 0 评论 -
初识php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/8 * Time: 上午10:42 */// 显示中文,编码格式utf-8header("Content-type:text/html;charset = utf-8");// php中的注释/** * 1.多行注释 */// 2.当行注释# 3.单行注释原创 2016-08-15 08:44:53 · 285 阅读 · 0 评论 -
string.php
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/8 * Time: 上午11:47 */header("Content-type:text/html;charset = utf-8");$a = 50;// 在php中双引号中的变量可以被解析,但是单引号内不能解析// 双引号中变量要加大括号$str = "原创 2016-08-15 08:47:08 · 339 阅读 · 0 评论 -
初识php2
<?php/** * Created by PhpStorm. * User: dllo * Date: 16/8/8 * Time: 下午3:39 */header("Content-type:text/html;charset=utf-8");if (1){ echo "是";}else{ echo "否";}echo "";//awitch(){/原创 2016-08-15 08:47:58 · 288 阅读 · 0 评论 -
cookie
什么是cookie• 用来保存页面信息的,如用户名、密码• cookie的特性:同一个网站中所有的页面共享一套cookie;数量、大小限制;过期时间• js中使用cookie:document.cookie如何设置cookie? 在js中,使用document.cookie = "键=值"即可,但是这种方式设置的cookie由于没有添加过期时间,所以关闭浏转载 2016-09-22 19:51:48 · 473 阅读 · 0 评论