Next we will talk about the mysql stored procedure case statement syntax and instance tutorial. on the home page, let's take a look at the simple description of the case statement, and then explain the specific usage of the case with examples.
Next we will talk aboutMysql tutorial stored procedure case statement syntax and example tutorialOh, let's take a look at the simple description of the case statement on the homepage, and then use the example description.Case.
Case statement.
The case stat
_ secret'] = '';
Change
The code is as follows:
$ Cfg ['blowfish _ secret'] = 'bkjia. c0m ';
(Note: 'bkjia. c0m' is a random character)
2. in The phpMyAdmin Directory, open config. sample. inc. php, line 18.
The code is as follows:
$ Cfg ['blowfish _ secret'] = '';
Cheng
The code is as follows:
$ Cfg ['blowfi
Phpiconv () encoding conversion error: Detectedanillegalcharacter. Number prototype: stringiconv (string $ in_charset, string $ out_charset, string $ str), especially the second parameter description: theoutputcharset. use iconv () to convert an output character encoding non-count prototype: string iconv (string $ in_charset, string $ out_charset, string $ str)
In particular, the second parameter description:
The output charset.
When iconv () is used to convert a character that is not supported
Next we will introduce the usage of var_export and var_dump. If you need it, please refer to it.
Var_export must return valid php code, that is, the Code returned by var_export can be directly assigned a variable as a php code. And this variable will get the same type value as var_export.
• However, when the variable type is resource, it cannot be simply copied. Therefore, when the var_export variable is resource type, var_export returns NULL.
Instance
The Code is as follows:
Copy c
);
Urldecode, urlencodeThe following describes the introduction and examples.Parse_url ($ str url );Convert a url into an array
The Code is as follows:
Copy code
*/Print_r (parse_url ("www. bKjia. c0m"); // parse the url and output the returned array/*
Returns a string in special url format to a normal string.
Syntax: string rawurldecode (string str );
Return Value: String
Function Type: EncodingDescription
This
404 http://www.xxx.com/404.htm
The former returns a 404 status code,
The latter returns a 200 status code. If the content of a 404 page is smaller than 404 B, IE considers the 404 page unfriendly and will not return the error page in IE.
Add a backslash at the end of the URL in htaccess
Add the following code to the htaccess file:
The Code is as follows:
Copy code
IfModule mod_rewrite.cRewriteCond % {REQUEST_URI}/+ [^.] + $RewriteRule ^ (. + [^/]) $ % {REQUEST_URI
path
1, $ _ SERVER ["QUERY_STRING"]Description: query string2, $ _ SERVER ["REQUEST_URI"]Description: The URI required to access this page
3, $ _ SERVER ["SCRIPT_NAME"]Description: path containing the current script
4, $ _ SERVER ["PHP_SELF"]Description: File Name of the script being executed
Instance:1, http://www.bKjia. c0m/(open the home page directly)Result:$ _ SERVER ["QUERY_STRING"] = ""$ _ SERVER ["REQUEST_URI"] = "/"$ _ SERVER ["SCRIPT_NAME"]
The short website is now used more and more jump websites will be generated, like the original Weibo also has this function, I would like to recommend you a PHP URL shortening code
Each URL is replaced by 6 characters, and (32 ^ 6) can have up to 1,073,741,824 short URLs. Of course, you can also record more detailed information, such as access records and creation time. If it is not enough, you can delete it for a long time.
The Code is as follows:
Copy code
Function comp
My friend asked me this morning how to get AD user logon time and associated mailbox logon time for a specified period of time.Beans Company Exchange has been transferred to OFFICE365, the first remote import AD module, local import msonline module, so I can remotely access the AD and Office365The following is an example of the 90-day non-login ad account, and the 30 days without a login email account to find out# Import AD Module $s=new-pssession-com
, Mf.name asFilelogicname, Mf.physical_name asFilephysicalname, Mf.size asPagescount, Mf.size*8/1024x768 asSIZE_MB, Mf.size*8/1024x768/1024.0 asSIZE_GB fromsys.master_files MFwheremf.database_id= db_id(N'dbname') At the time of execution, various problems arise: 1,user does not has permission to alter DATABASE ' Office365 ', the database does not exist, or the database is not in a St Ate that allows access checks. 2,database '
This article introduces how PHP implements 301 permanent redirection to direct a domain name without www to a domain name with www.
When your site domain name changes or the webpage address changes (the webpage storage directory or the webpage file name changes), how can you ensure that the site's traffic from search engines will not be lost during the transition period, can I update the webpage address in the search engine results? 301 redirection is an ideal solution to this problem. It can di
Among the three jquery ajax pages, we use the jqurey paging plug-in directly and write the code in the source ecosystem. At the same time, each instance has its own source code. I hope it will help you.
Example 1
The core code is as follows:
The Code is as follows:
Copy code
$. Ajax ({Url: url,DataType: 'json ',Data: data,Success: callback});
Can refer to the jquery official website PAI http://api.jquery.com/jQuery.getJSON/
The Code is as follows:
Copy
already exists. The syntax is as follows:
Bool isset ($ _ SESSION ['session _ name'])
For example:
The Code is as follows:
Copy code
Session_start ();If (isset ($ _ SESSION ['keyword'])Echo $ _ SESSION ['keyword'];ElseEcho "www. bKjia. c0m ";?>
Result:
Php
The usset function is used to deregister a created session variable. Syntax:
Unset ($ _ SESSION ['session _ name'])
For example:
The Code is as follows:
There are many ways to delete an array of empty elements. I will introduce two classic methods today. One is to use the array_filter function, and the other is to use the function to call a custom function.
The Code is as follows:
Copy code
$ Str1_array = array ('one-click tutorial net', '', 'HTTP: // www. bKjia. c0m','', '123 ','');$ Str1_array = array_filter ($ str1_array );Print_r ($ str1_array );?>ResultArray([0] => yijuche
The strtotime () function is a php date function. This problem occurs when the date. timezone in php. ini is not set. You only need to configure the time zone.
At the beginning of php5.1.0, the date. timezone option is added to php. ini, Which is disabled by default. The display time is Greenwich Mean Time, which is exactly eight hours different from that in Beijing.
Solution:
Modify the php. ini file and search for the file; date. timezone =. Remove the semicolon before and add the time zone af
The 301 jump tells the visitor that the page has always reached a new page. in php, we use the 301 jump function to send the 301 status code to the browser, and then implement the page Jump.
PHP code-only jump
The Code is as follows:
Copy code
Header ("Location: http://www.bKjia. c0m /");?>
However, the returned status code is 302.
If you want to achieve 301 redirection, you need to set the status code before
In php, there is only one method for page Jump, that is, using the header (location: $ go_url); To achieve page jump, I will give you a detailed introduction.
Php header () page Jump
I migrate the blog from http: // www. your domain name/blog to the http://www.bKjia. c0m domain name, when the user visits the previous blog address, automatically jump to the corresponding article of the current blog
The Code is as follows:
Copy code
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.