Questions about concurrency in PHP programs
For example, there are two user a users and B User A first access a.php B and then access a.php, the two access time is short and short
So at this time is not User B in the waiting state, and so on user A
Questions about sending JSON data using the POST method.
This post was last edited by jxflll on 2015-04-07 16:36:47
Stream_context_create uses this function post method to send an example of a JSON object. Some trouble sending the code up. Thank you,
A small algorithm problem
For example: when we recharge the phone, charge more than 10 yuan to send 1 yuan, charge more than 50 yuan to send 5 yuan.
So at this time, I recharge is 51 yuan, how I hit the 50 yuan to send 5 yuan, and at this time no
Header function and Php_auth_user do user authentication (reprint)
PHP Header php_auth_user PHP_AUTH_PW user authentication
In PHP, you can use the header function to do some interesting things, and user authentication is one of the most
A little experience of PHP development API
This article is a personal experience after self-developed some app interface, and read some of the information.
First, the function module design
Extracting the appropriate functionality from the
PHP Optimization Chowder
The article about PHP optimization is often to teach you how to write efficient code, this article intends to discuss the problem from another perspective, teach you how to configure an efficient environment, so the same
Installation of the PHP development environment
Recently in the attempt to develop the public, after using Apache+mysql to build a simple background, chose to use PHP for development. So, faced with a local build a PHP development environment
An analysis of the header output problem of PHP headers function
The header (' location:http://www.baidu.com '); * * But running the above discovery successful jump name is because this HTTP header does not conform to the HTTP specification, it
The principle of stealing red envelopes
Want to use PHP to achieve the function of red envelopes, who send the more red envelopes, Rob more, do not know if what algorithm appropriate
------to solve the idea----------------------
I think of a way of
PHP Error hints
Project error, but run the page blank, do not know where the wrong.
in php.ini error_reporting = E_all Modified
Run discovery or no error prompt after reboot
------to solve the idea----------------------
Display_errors = On
So you
Personal blog site
When debugging "personal blog site", the PHP code has some problems, look at the Master guide Ah
------to solve the idea----------------------
The first is because you passed in a string, prompting you to pass in an array; the
Ask a server environment configuration problem
All know that PHP with lamp is the best match, but Windows used to use, no use of Linux,
Now know that you can also use Wamp (windows+apache+mysql+php) and Wimp (windows+iis+mysql+php) to configure the
The parameter is true, but there is still a warning mysql_fetch_row () expects parameter 1 to be resource?
function Checkcanceluserstop ($phoneNum){$con = mysql_connect ("localhost", "root", "");if (! $con){echo "";echo "";Return}$result =
About PHP Writing database garbled problem
After inserting data into the database in the PHP page, garbled characters are displayed in the database.
Database Character Set:
Page Character Set:
Execute mysql_query ("Set names ' UTF8 '")
Thinkphp index.php method in Wamp configuration remove URL
Commissioning for a long time, only to find the simple things complicated.
In fact, the principle is very simple.
1. In the configuration file
' Url_model ' =>2,
Set to 2.
2. In
How do php multiple variables form a variable?
$xx [' D1 '][2]= ' Hello! ';
$a = ' xx ';
$b = ' 1 ';
I tried the following wording, not right.
echo ${$a. ' ["d '. $b. '][1] '};
How do you make a variable as output?
------to solve the idea--
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