This article discusses how to completely eliminate the Warning:cannot add header information-headers already sent in ... This is a puzzling mistake.
As long as you have written PHP code, I believe you have encountered this most of the time is not
PHP is a server-side scripting language used to make dynamic Web pages. You create pages through PHP and HTML. When a visitor opens a Web page, the server handles the PHP instruction and sends its processing results to the visitor's browser, as if
Cookie function Library: cookie.inc.php3
if (!isset ($__cookie_inc__)) {
$__cookie_inc__=1;
function Jssetcookie ($CName, $CValue, $CExpr =false) {
This function allows you to set cookies after the HTML header tag,
Can be supplemented with
I know a lot of people in the development of the site when the need for this function, is to control the user has been the top of anything! So I'm here to write a simple, JavaScript-based cookie operation!
Copy Code code as follows:
Set
Automatic data collection on the Internet (crawl) This is almost as long as the internet exists. Today, the public seems to be more inclined to use "network data Acquisition", sometimes the network data acquisition program called Network Robot (bots)
In general, PHP in the browser to brush to appear cookies, how to make the cookie in time to take effect, the following to share a cookie in time to take effect of a method, very practical,
The code is as follows:
Copy Code code as follows:
These are basic knowledge, but it is necessary to do a thorough understanding. Let's start with a brief introduction.
The definition of the two:
When you are browsing the Web, the Web server will send a small piece of information to your computer,
1. Set CookiesPHP uses the Setcookie function to set cookies. It is important to note that cookies are part of the HTTP protocol header and are used to pass information between browsers and servers, so you must call the cookie function before any
1/Unable to load the mcrypt extension, please check the PHP configuration;
2/configuration file now requires a top-secret phrase password (blowfish_secret);
3/#2003-the server is not responding.
In order to prepare for a rainy day, the problems
Now make a simple review: basically should encounter problems are encountered, the key is to search more information, more brain can solve the problem.
1/Unable to load the mcrypt extension, please check the PHP configuration;
2/configuration file
System learning ASP, is first from the ASP's several large built-in objects started.
Generally called the five main objects:
Request, Response, Server, session, Application
Today, let's look at the request object.
Of course, has not been mentioned
Using PHP to set and read cookies is an extremely--we dare say? -The simple thing. We don't want to preach cookies, but they are both important and practical. They are the only tools available to solve certain problems.
To create and modify a cookie,
Although the previous article did not, but I must at least ensure that the original domain name can continue to visit the new blog, browse to new articles, and then think of using htaccess to do redirects. This time to write a record of htaccess, so
Sessionstorage and Localstorage (also known as Dom Storage) are provided by the HTML5 WebStorage API to easily save data between Web requests. With local data, you can prevent data from being passed back and forth unnecessarily between browsers and
Cookies
Implementation mechanism:
Browser first access to the server, send a request if not with identity, the server can not detect the cookie will return a login window, enter the username and password after the request, the server received the
Reprint: http://blog.c114.net/html/38/193738-35549.html
Passport on the one hand means that an account can be used in different services to log in, on the other hand, in a service inside the login can be free to roam to other services inside.
1, JS array to heavy
Here are three ways to show:
array.prototype.unique1= function () {
var n = []; A new, temporary array
for (var i = 0; i
{
If part I of the current array is already saved in a temporary array, skip,
Otherwise push the current
But MSDN tells us that the cookies that InternetSetCookie set are valid only within this process and cannot be accessed across processes. New IE, of course, belongs to the new process, so even if you call the InternetSetCookie set cookies, it cannot
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.