In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces you what are the specific skills of PHP dialogue, the content is very detailed, interested friends can refer to, hope to be helpful to you.
The pity for PHP is that it doesn't support conversations. This regret was filled when it was updated to PHP4.0. Today we will have a specific understanding of the application of PHP dialogue, hoping that the content introduced in this article can bring new knowledge points for beginners and enrich our knowledge base.
As long as users are browsing your site, you can use PHP conversations to maintain variables related to specific users without creating multiple cookie, using hidden table fields, or storing information in a database.
Starting a conversation on a web page will let the PHP engine know that you want to start a conversation (if it has not already been started) or continue the current conversation:
Session_start ()
Starting a PHP dialog sends the user an identification string (such as 940f8b05a40d5119c030c9c7745aead9) via cookie, and on the server side, a temporary file, such as sess_940f8b05a40d5119c030c9c7745aead9, that matches the identification string is created, which contains the registered conversation variables and their values.
The most common example used to show the role of a conversation is the access counter. Start the PHP module and make sure that the PHP code is the * * line of the file. There are no spaces, HTML code, and other code before the PHP code. Because the conversation sends a header, if there is a space and HTML code before session_start (), you will get an error message.
The full access counter code is as follows:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.