Basic functions: Can log in, chat, record the number of online IP events, can control the font color of chat, automatically convert the URL of the chat as a link address, can customize the chat room title, advertising information and so on. Use text
In the PHP collection often encountered with URL 301 redirection, if there is such a situation, it is possible to cause unknown results, because the host name is different. The hostname in our collection cannot be used before the URL of 301 Redirect,
Many sites on the home page to do some of the links, so that users can choose to visit the respective language page, let the Chinese people choose "Chinese", Koreans choose "Korean", and so on. So can you do a program to automatically help you
Copy Code code as follows:
$lan = $_server[' http_accept_language ']; Get Browser language version
if (Preg_match ("/[zh]{2}\-[hk]{2}/", $lan) | | preg_match ("/[zh]{2}\-[tw]{2}/", $lan)) {//Taiwan Hong Kong go to the traditional page
$url = '
Chat room
Boring case, see can use less code to build chat room, a start to write a full 100 lines to complete the chat room, then feel very multi-functional did not, and then revise, add a lot of code. In fact, do not use particularly complex
Without JS, php fully implements code for process data paging. Copy the code as follows :? Session set on the php login page. if the session contains name, session_start (); $ name $ _ SESSION [name]; if (empty ($ name) {header (Location:
The code
Quickly learn PHP encryption and decryption skills. Here we will give you a detailed description of the reason for using these PHP encryption and decryption, because sometimes your URL address is obtained and you need to know what you want to crack
Header () 301 redirection implementation code. Let's take a look at an example, header (location: www.111cn.cn); the above is a simple jump. how do we do this for permanent redirection. As follows. Syntax header (string, replace, http_respo first
Management Program for downloading a program (4 ). The source code of chang. php is as follows :? Session_start ()?? If ($ session_power | $ session_power1) {header (location:... message. php? Redirectdefault. phpquot;); break ;}?? Require // The
The session function of PHP has always been difficult for many beginners. Some veterans are sometimes confused. This article provides a brief summary of these issues for your reference.
1. error message
Reference
The Code is as follows:
The header () that needs attention here is most often taken to send the header (' Location:/'); And so on, do the Web redirect action.In use Setcookie (), header () ... You cannot use any output before such a function. Log records if necessary.If
The php implementation remembers that there are more than one automatic Password Logon method. The following shows two emptyempty methods, which are actually one, because the code is highlighted with a bug. I hope to help you.1. User Logon checkCopy
From the browser, the header (location) is used to jump to another page, but in fact, php will still execute the background code, if the following code has insecure logic, then, we directly ignore the conditions set by the developer and continue to
A few days ago, I wrote an article about the URL that can be obtained after Baidu's jump. Some people have also studied Baidu link? Url =.The following result is obtained: 1. the encryption method is based on: Random + input stay time + snapshot
PHP obtains the real address instance to jump. Now there are a lot of short Web site applications, click to jump to shorten the previous web site, then today let's take a look, PHP how to get short Web site jump to the previous web site, in fact, is
Using the header () function of PHP, you can implement page jumps, such as
1
header("Location: ". $url);
However, it has a drawback that once an HTTP header block has been sent, you cannot use the header () function
Since September, the results of the war between Baidu and 360 have changed the URL of Baidu's search results and changed to link? Url ......... This is the redirection format. This unfriendly URL has the impulse to crack. So today I started to try
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.