Session_unset ()Releases all the $ _ SESSION variables that have been created in the memory, but does not delete the session file or release the corresponding sessionid.Session_destroy ()Delete the session file corresponding to the current user and
Function deleteHtml ($ scr){$ L = strlen ($ scr );
For ($ I = 0; $ I {If (substr ($ scr, $ I, 1) = "{// Current location$ Ii = $ I;
// Stop the loop when $ I is longer than the character LengthWhile (substr ($ scr, $ I, 1 )! = ">" & $ I $ I ++;
//
New to PHP, I always wanted to forget all pages. I was lucky to be reminded today that I searched the internet. Some of them cannot be read. Finally, find a simple one.
The general idea is:
1. Set the maximum number of records to be displayed on
Today, I was very busy. I wanted to write more content. There is no way to do it now. I have to pick up a simple component and write it down. I will introduce the components in the following chapters.
The use of LtLogger is relatively simple. The
/*** Site Main Page** @ Author Avenger * @ Version $ Id 18:06:20 $*/Require_once 'header. inc. php ';Tpl_load ("index.html", '', 'keep ');// Get u language$ G_lang = explode (',', $ _ SERVER ['HTTP _ ACCEPT_LANGUAGE ']);Switch ($ G_lang [0]) {Case
Copy codeThe Code is as follows:// Http://www.jb51.net/article/23093.htmFunction set_cache ($ name, $ value ){// Set relative or absolute directories. Do not add "/" at the end "/"$ Cache_dir = "./cache ";// Set the extension$ Cache_extension = ".
After Apache is installed, you can finally get started with PHP. Let's get started. First, decompress the downloaded php-5.2.0-win32.zip file. If you like the directory, I will decompress it to D: \ php5 for convenience. If you want to change the
Haha, haipi. I am thinking about how to write the IIS + PHP configuration tutorial. I accidentally found a video tutorial on the Internet, which really saves a lot of time, it's convenient for me. You can rest assured that the virus has been
Get_headers () is a PHP system-level function that returns an array containing the header sent by the server to respond to an HTTP request. If it fails, FALSE is returned and an error message at the E_WARNING level is sent (it can be used to
Copy codeThe Code is as follows:$ Array = explode (separator, $ string );$ String = implode (glue, $ array );The key to using and understanding these two functions is the relationship between the separator and glue. When an array is converted into a
In the actual PHP encoding, PHP recursive calls are encountered when we need to implement the multi-element array replacement function. So what is the specific usage? The following is a code example to illustrate how to implement this
Code:Copy codeThe Code is as follows:Echo 'Hello ';Echo 'World! ';?> Output:HellloWorld!Code B:Copy codeThe Code is as follows:Echo 'Hello \ n'; // \ n for unix systems; \ r \ n for windows systemsEcho 'World! ';?> Output:Helloworld!Analysis: The
To connect PHP to MSSQL, the system needs to install MSSQL and PHP. In the configuration of PHP. ini; Extension = php_mssql.dll; remove1. Connect to MSSQLCopy codeThe Code is as follows:$ Conn = mssql_connect ("Instance name or server IP Address",
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service