本章主要介绍了和web相关的一些 基础 知识如cookie、get请求、post请求、环境变量的读写等内容。 setcookie() : 设置cookie值 $_COOKIE['名']:获得cookie值 浏览器重定向:header('Location: http://www.example.com/confirm.html'); get_browser() : 获得
本章主要介绍了和web相关的一些基础知识如cookie、get请求、post请求、环境变量的读写等内容。
setcookie() : 设置cookie值
$_COOKIE['名']:获得cookie值
浏览器重定向:header('Location: http://www.example.com/confirm.html');
get_browser() : 获得浏览器参数
http_build_query() : 将数组转换成查询字符串
$vars = array('name' => 'Oscar the Grouch', 'color' => 'green', 'favorite_punctuation' => '#'); $query_string = http_build_query($vars); $url = '/muppet/select.php?' . $query_string; 结果是:/muppet/select.php?name=Oscar+the+Grouch&color=green&favorite_punctuation=%23
php://input:由来获取post过来的原始数据,用的应该比较少
$_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW']:HTTP验证,几乎用不上
flush() : 将当前为止程序的所有输出发送到用户的浏览器
ob_start() : 打开输出缓冲,所有输出将不会立刻发送
ob_end_flush() : 关闭输出缓冲,并将所有输出发送到用户浏览器
getenv() : 得到环境变量
putenv() : 设置环境变量
http://www.cnblogs.com/Excellent

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

SublimeText3 English version
Recommended: Win version, supports code prompts!