Or a side dish, the first time to share code ah, this is their own previous write a PHP collection class, I have been in use, self-feeling is very simple and powerful, as long as a little bit of knowledge of the selector can be collected any page,
Typically, one of the Web servers that are installed with the default settings is information disclosure, which is PHP. PHP is now a popular service-side HTML embedded language (one?). )。 In today's challenging era, there are a number of attackers
。。。。 Because a site look at the picture compared to the pit father, to page by page pages .... So.... That's what I wrote.(I am a product is not a programmer) running speed is simply unbearable, and often mistakes occur, so I hope you help improve
Original PHP MVC framework Cgframework, written by a projectBaidu Cloud Disk Download address: Http://pan.baidu.com/s/1o6r1Neygit:https://github.com/naruone/cgframework/Oschina Git:https://git.oschina.net/naurone/cgframeworkAuthor:
Detects if a file has a BOM header-PHP
This file is used to quickly test whether UTF8 encoded files are added to the BOM and can be automatically removed
by Bob Shen
$basedir = "."; Modify this behavior to detect
Capacity unit calculation, supports defining fractional retention lengths, defining start and target units, or pressing 1024 for automatic rounding
Class Util {
/**
* Capacity unit calculation, supports defining
Believe that this article you are a person with their own site, the site is important to you? is the data important to you? The answer is yes. If it doesn't matter, what are we going to do? How do you back up your website data and how much do you
Express 100 data Call interface, I was used to develop the public platform of the Express query function.
$kuaidi _data = file_get_contents ("Kuaidiinfo.txt");
$SP = explode ("\ n", $kuaidi _data);
Var_dump ($SP);
It may be that the first-line of the program has a nose for the title, especially the whole stack of engineers. This article is mainly to introduce, predict the future technical direction. In addition, the text may also have expressed the wrong
Custom Intercept Chinese No garbled
function Chinesesubstr ($str, $start, $len) {//$str refers to a string, $start refers to the starting position of the string, $len refers to the length of the string
$strlen = $start + $len;
PHP gets the EXIF information of the picture, PHP comes with a exif_read_data function that can be used to read EXIF information of the picture
echo "Test1.jpg:\ n ";
$exif = Exif_read_data (' tests/test1.jpg ', '
Using PHP recursive function to properly delete the method of non-empty directory, PHP directory and file deletion method, when encountered in a non-empty directory, consider using PHP recursive directory traversal and delete, is a good choice.
Using this PHP code, you can know the use of RAM (memory) on your server.
echo "Initial:". Memory_get_usage (). "Bytes \ n";
/* Prints
initial:361400 bytes
*/
Let's use up some memory
for ($i = 0; $i
A big bug this morning, School platform Student ID number is an ultra-long pure number, when performing comparisons, the discovery is the same! Write a simple come over paste up, also please expert to answer under why! never really noticed this
PHP Verification Code implementation Principle Generate random numbers or letters to the session (when validating the code), and then draw the resulting numbers or letters! And then it's in front of us. Refresh Verification code: With JS change 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