The 32-bit signature string generated by the long URL md5 is divided into four sections, each of which contains eight bytes:
1) generate a 32-bit signature string for the long URL md5, which is divided into four sections, each of which contains 8
Do you want to know how much memory the PHP script requires? You can directly use PHP to view the memory function memory_get_usage () allocated to the PHP script. The following is an example:
The code is as follows:
Echo memory_get_usage (),'';
Php sorting algorithm code, including bubble sorting and quick sorting. For more information about how to implement bubble sorting, see Bubble sorting.
① Put all the numbers to be sorted into the work list.② From the first number in the list to the
I used PHP to connect to the OracleforNT Remote Database. I used php to connect to the remote oracle8.0.5 for NT Enterprise Edition. I cannot use ODBC or oracle interfaces. Me too! After searching, I finally found the correct connection method. I am
I think many of my friends know that this function is the most commonly used by hackers. it can parse php code and run it. eval is a function that cannot be banned in php, in the past, I thought I could use php. ini disables this function and the
10 tips for PHP scripts (8) PHP and XML
PHP contains optional XML extensions that support the Expat parser. XML-related functions in PHP allow you to create a parser to process valid XML documents. If the Apache version you are using is later
You can directly call a function that converts a PHP result set to JSON format. if you need a PHP result set, you can refer to the function that converts it to JSON format, you can directly call:
The code is as follows:
Function RecordToJson ($
10 tips for PHP scripts (6) PHP and COM
If you are an adventure and you are running PHP on a Windows system using CGI, ISAPI, or Apache, you can also obtain the COM function of the system. Now, the work of interpreting COM (the Component Object
If there are too long messages in the message board with the pull-down function, the page will be very long. do you think it is uncomfortable for those long message boards, each time, the scroll bar is highlighted many times.
If only the title
Today, we need to use php to output a 404 error page, and then load the 404 page output. each core code that facilitates user experience with search engines:
The code is as follows:
@ Header ("http/1.1 404 not found ");@ Header ("status: 404
Today, when we were dealing with bugs, we found another strange problem. when we set mysql encoding to gbk, we found the created table, when the table structure, whether it is a field or table structure description, is Chinese, the table structure
This article introduces CouldnotloadtypeSystem in detail. serviceModel. activation. httpModulefromassemblySystem. serviceModel solution. if you need it, refer to cocould not load type 'system. serviceModel. activation. httpModule 'from assembly
Comments on the session function of php4 (2) the vague comments are session_decode and session_encode:
Bool session_decode (string data );
Session_decode () decodes the session data in data, setting variables
Stored in the session.
Bool
My Forum source code (4) POST. PHP publishes the topic page and submits the published information to OKEY. PHP for processing.
Forum posts
Include "linkfox. inc. php ";
Include "info. inc. php ";
?>
$ Tem = $ HTTP_COOKIE_VARS [
Sometimes there are more and more temporary files generated in the cached folder of the website. if the files are not cleaned up for a long time, tens of thousands of cached files will exist in the folder, and many ftp tools may not be able to
In php, the addslashes function is used to solve the error. if you need a friend, refer to the following code. can you find the error?
The code is as follows:
Echo function_exists ('addcslashes'); // checks whether the function exists.Echo
The new version of phpadmin is limited to 8 MB, and the old version may be 2 MB. what should I do if there are dozens of megabytes? Next, this article will introduce the detailed modification method. if you are interested, do not miss it, the
Ajax cancels the processing of pending requests. if you need ajax, you can refer to the following situation when switching the Tab: click the tab1 option, the server sends an Ajax request to obtain the content data of tab1. If the request is being
When you use a string function to output an integer PHP version number and then use a program, you generally need to determine the php version number after the integer to determine the output.
$ Temp = explode (".", phpversion (); // Obtain the
The mysql_affected_rows function returns an abnormal value when the data before and after UPDATE is the same, next, I will introduce you to a friend who is interested in simple solutions. refer to the following. I learned from manual that the
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