I'm going to do a feature that writes data to a database item has a number name, and so on. There are pictures
Want to ask how to upload a picture and write the address in the corresponding form, and then submit each item is stored in the database
A problem with PHP request rewriting
My colleague asked me to help explain a problem: a PHP-generated redirect request produces two distinct records in the Nginx log: One response body size is 0 bytes, and the other response body size is five
1
2
3
4
5
6
4
5
6
According to the figure above,
How to put the above selection into a field inside a table
When deposited, like this.
A
{
Value 1
Value 2
Value 3
}
B
{
Value 1
Value 2
Value 3
}
C
{
Value 1
Value 2
Value 3
}
Injection of attributes
Take read as an example, what does Yii do behind the scenes if it accesses $Component->property1? Take a look at Yii\base\component::__get ()
Public Function __get ($name)
{
$getter = ' Get '. $name;
if
Debug php,debug php in any environment
PHP Debug is enabled in the case of PHP debugging, regardless of the php.ini configuration.
Add in the first line of the PHP file you need to debug.
Ini_set (' display_errors ', 1); Error message Ini_set
1,
echo "Welcome to imooc!"; Output string
?>
2, strings are enclosed in "or", two characters can be used. Connected
3, Notes
//
4, line break
5. Variable names must be identified by the $ symbol
6, the "Var_dump" function can display
Databases are the foundation of most web application development. If you are using PHP, then most of the database with MySQL is also an important part of the lamp architecture.
PHP looks simple, and a beginner can start writing functions in a few
About 0x00
PHP local file contains knowledge of the vulnerability, dark clouds early on the corresponding article, Lfi with Phpinfo first by foreign Daniel, can refer to the following two articles. The use of the principle is to use the PHP post
1 error!
With PHP7, after compiling to install the extension, run PHP-FPM error, in the company did not solve, home on the Mac to reproduce the problem:
[24-mar-2016 23:06:50] notice:php message:php Fatal error:the fpm-fcgi SAPI is isn't
Error code
Call to undefined method illuminate\foundation\application::bindshared ()
Reason
The Form and HTML helpers has been deprecated in Laravel 5.0; The form module relies on the Laravel 5.0 framework, so it is still problematic to call in
This paper describes the Memcache ring queue class implemented by PHP. Share to everyone for your reference. Specific as follows:
The Memcache ring queue class implemented by PHP is described here. Did not learn the data structure, because the
Public Function Getmicrotime ()
{
List ($usec, $sec) = Explode ("", Microtime ());
return (float) $usec + (float) $sec);
Return date (' Ymdhis '). $usec *1000000;
}
I do the order number with this accurate to microsecond time. But there are
After the APT installation completes the PHP service to start normally, but runs the PHP program to prompt 502 first to let us see the previous configuration. A piece of PHP configuration. Location ~ \.php$ {try_files $uri =404;fastcgi_pass 127.0.0.1
On the top page of the page, add
Date_default_timezone_set (PRC); /* Transfer time to Beijing time, php5 default to Greenwich Mean Time */
Date ()
A: "AM" or "PM"
A: "AM" or "PM"
D: A few days, two digits, if insufficient 0; from "01" to "31"
In the "PHP Foundation" This document, saw the trait method, feel more unfamiliar, so this morning with two hours, check out some of the features and usage of the trait method, organized and published this blog.
Trait is a new feature in PHP5.4
How does PHP get the address of a picture on a remote website? Do you have any ideas?
For example, to get Baidu's background image of the path
https://ss0.baidu.com/7Po3dSag_xI4khGko9WTAnF6hhy/super/crop%3D229%2C229%2C1770%2C1103/sign= C9810c80b61c87
The purpose of this blog is to have the following points:
1, win under the installation of Cygwin
2. Install PHP Environment and PHP development environment in Cygwin
3. Install Swoole Extension
4. Set Phpstorm and Cygwin to complete the remote
Now no matter login Weibo account, or other forum account, and so on, will find the need to enter a verification code, because the login with the verification code, can improve the security of the site, the following share a good PHP project 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service