First prev:
Create a form in sample6_1.php:
Copy the Code code as follows:
Show upload status and picturesThe upload file needs to be defined enctype, in order to show the image set target to Uploadframe
Upload Image function Uploadimg:
Copy the
When you see the error prompt
Syntax error, unexpected t_encapsed_and_whitespace, expecting t_string or t_variable or t_num_string
This hint is an issue that prompts for variable usage.
And what I came up with was that the array was used in the
1. Appservnetwork
First, let's download some PHP-related stuff first.
First, let's download a complete set of PHP-related tool--appservnetwork.
Appserv 2.5.10 PHP Operating environmentAppserv 2.6.0 PHP Operating environmentAfter the installation is
Most web scanners, including uploads, management background scanners, determine the existence of a page by judging the 200 return of HTTP, and the scan period will begin to scan the vulnerability on the basis of the existence of the page. Since
Take version phpmyadmin-2.6.1.tar.gz as an example
Unzip phpmyadmin-2.6.1.tar.gz to/usr/local/apache2/htdocs first,
Get the folder phpMyAdmin-2.6.1, rename it to phpMyAdmin, (this will be easier in later operations).
Go to the phpMyAdmin folder and
Phpmailer v5.1 Download
A begins with:
$AltBody--Properties
Derived from: Phpmailer:: $AltBody
Files: class.phpmailer.php
Description: The setting of this property is an alternate display of HTML that is not supported in the message body
addaddress--
The final effect is as follows:
step.inc.php installation Step Effect class:
Copy the Code code as follows:
/*** Step.inc.php Installation Step Effect class ** Extract the main code from the data sheet installation effect of the Comsenz product for
Copy CodeThe code is as follows:
$lenth = 19;$str = "How will the long title of the news show only a few words in front, followed by ..." To replace it? ";echo strlen ($str) ?>
Copy the Code code as follows:
/*@ Another method, use the Ord
1. Format
Location ~/query { Default_type Application/json; Return "{" res ": {" code ":" 0 "," message ":" "," Value ":" $value "}} ';}
2. Default_type Application/json; Indicates the JSON format returned, otherwise the browser open is a
Background
Mamp is a php+nginx+mysql integrated environment under MAC, supports multi-site, different versions of PHP.Today someone asked Mamp how to display the file list problem, here to record.
Knowledge Supplement
A Web site for security
In the PHP script to read Chinese or other language is garbled, first check that your file format is stored in UTF8 encoding format. If not please use ultraedit ... And so on some of the tools to convert UTF8 support conversion, it is best not to
A simple example
Existing student information database, need to delete more than one record at a time
Create a file named del.php
The code is as follows:
Copy the Code code as follows:
This file is mainly used to display the data in the
Copy CodeThe code is as follows:
Get the current script URLfunction Get_php_url (){if (!empty ($_server["Request_uri")){$scriptName = $_server["Request_uri"];$nowurl = $scriptName;}Else{$scriptName = $_server["Php_self"];if (Empty
Encrypt PHP programs with Eaccelerator
Copy the Code code as follows:
#/usr/local/bin/encoder
After execution, you will see simple instructions for use:
Copy the Code code as follows:
Usage:encoder [Options] Source_file_nameEncoder [Options]
About Discuz do not use the pass to login content introduction
Discuz is China's most commonly used forum, although he has a pass for everyone to connect, but in fact the user's unity is very bad, often to build two user tables, the first is not
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 of
for ($i =10; $i >0; $i--)
{
echo $i;
Flush ();
Sleep (1);
}
?>
According to the PHP manual,
This function sends all the output of the program so far to the user's browser.
The above code should output $i once every second. But this is not
Resin in the new version began to support PHP, I feel more fun, is too lazy to configure a group of Apache_php_mysql on their own machine, after all, Java-based to do things. So will own a PHP site directly resin inside do development, the overall
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