Here's how to use this:
1. Strstr: Returns a string from the beginning of the judged character to the end, if there is no return value, does not contain
Copy CodeThe code is as follows:
/* For example in manual */
$email = ' user@example.com ';
$
First, build PHP environmentDownload PHP 5.2.6 source code and unzip
Compile and install, build PHP environment
Second, create an extension project
Enter the source directory
CD php5.2.6/ext/
./ext_skel--extname=my_extCreate a project named My_ext
MYSQLND is integrated in the PHP source tree, and unlike the original Libmysql, MYSQLND is more closely connected to the kernel.
Officials say the memory footprint is about 40% savings. It's faster.
By the way. if Mysql_connect () [2002]
Very helpless, did not think of any good way, then a flash of inspiration. Put a PHP page, which can directly bounce back to the shell, not to mention the console under the operation than the Webshell more convenient, there will be no time-out or
Copy the Code code as follows:
/* A new PHP sentence Cmdshell (not a word trojan)
Principle: PHP Run-time if you meet the character "(keyboard ~ symbol of the next key) will always try to execute the command contained inside, and return the result
Uchome code is still very good, learn!
Copy CodeThe code is as follows:
/**
* Define some constants
*/
@define (' In_uchome ', TRUE); It is said to prevent the file from being illegally included
Define (' X_ver ', ' 1.2 '); Uchome version
Define ('
But we can replace it with a regular:
Copy CodeThe code is as follows:
function Dhtmlspecialchars ($string) {
if (Is_array ($string)) {
foreach ($string as $key = = $val) {
$string [$key] = Dhtmlspecialchars ($val);
}
} else {
$string =
Many people first want to start to optimize the program from the server cache, many different server caches have their own characteristics, such as I have been involved in some projects, according to the cache hit rate of different use of
There are some features not added to, such as automatic renaming, image processing and so on. You can add them as needed.
Use:
$up = new Upfile (root_path. ' data/'. Date ("Ym", Time ()), array (' gif ', ' jpg ', ' jpeg '), true);
$fileimg =
user-define-session-inc.php File Code:
Copy CodeThe code is as follows:
function Mysession_open ($save _path, $session _name)
{
@mysql_connect ("localhost", "root", "1981427")//Select the database before you need to connect to the database
Can be preceded by the error statement plus @
You can also modify php.ini
Php. INI error_reporting = E_all caused, if you do not want to see this hint, you can
error_reporting = E_all &~e_notice.
You can also add error_reporting (0) to the top
Framework Workflow:
Load frame file load parameter settings object initialize settings load project settings parameters get controller and Controller method execute controller Event
Examples of use are:
Copy CodeThe code is as follows:
Class
Copy CodeThe code is as follows:
# set $domain for your domain (note no www)
$domain = "Jb51.net";
# set URL, note no post-dash/
$docroot = "Http://jb51.net";
# Set font for error messages
$fontface = "Verdana";
# Set the font size for 404
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