Learned PHP, now I test the connection database, but always connected, the error log is as follows:
[28-jun-2014 06:55:03 UTC] PHP warning:mysql_connect (): Error while reading greeting packet. pid=2604 in D:\web\Apache software
Current
Current--Returns the cell in the array
DescriptionMixed
Current(Array &array)
Each array has an internal pointer to its "current" cell, which initially points to the first cell inserted into the array.
The current () function returns
/** * return result set * * @param mixed valid data set returned by $info or error description * @param string $msg is empty or error type code * @param String $result the request succeeded or failed identity * @param int $post 1 is XML, 2 is JSON *
1, after the installation successful zookeeper, in the Zookeeper Bin directory has started the corresponding startup script
Start the server
./zkserver.sh Start
Start Client: (* Note: CLI requires Java installation)
zkcli.sh
2, php Example:
E-commerce website purchase of goods after the production of orders will generally have a payment aging problem
If the order is not paid within a certain amount of time after the user orders, cancel the order and release the remaining quantity of
$.ajax
PHP Backend return:
PHP code
Reply to discussion (solution)
Turn off PHP settings Magic quotes GPCor run stripslashes on the results
Turn off PHP settings Magic quotes GPCor run stripslashes on the results
Excuse me,
001-php Basic -01-php Quick Start
01-php career path and PHP Outlook
PHP career path
PHP Junior Engineer under 1 years 3k-6k
PHP Intermediate engineer 1-3 years 6k-10k
PHP Senior engineer More than 3 years above 10k
Architect = Technology
First, start Apache
There are two ways
1. Turn on network sharing
Open "System Preferences", "sharing", before "Internet sharing" that item to hit √.
2. Open Terminal, enter
?
1
sudo apachectl start
You need to enter the password, enter
fopen (), followed by the argument,
For example: R
r+
A read-only mode, a read-write mode, exactly what is the difference Ah, why create a back this mode?
Can you pass an example to let me know?
Reply to discussion (solution)
R, can only read
Author: zhanhailiang Date: 2015-01-23
Local Environment:
System version: Microsoft Windows 6.1.7601PHP version: PHP 5.3.29php_curl.dll Extended Version: 7.35.0
A very strange problem encountered in Windows environment, send request error using
Hello, I do not understand PHP very much, in the online pull a project, trial Wampserver Run, it seems that there is a syntax error compilation does not pass. Watched for a long while did not see out, trouble you to help a little busy, thank you.
Table A:
ID Name banji_id//banji_id is the ID of table B
1 Zhang Long 1
2 Zhang Long 2
3 Li 41
3 Li 45
5 Wang 53
6 Zhao Hu 2
7 Zhao Hu 1
8 Zhaohu 4
Table B:
ID km SJ1 SJ2
1 Abacus Mental Arithmetic 2015 spring
2 Eloquence 2015 Spring
3 Composition
/** * * DES for. NET version * @author Administrator * */class des_net{var $key; var $iv; Offset function des_net ($key, $iv =0) {//key length 8 for example: 1234ABCD $this->key = $key; if ($iv = = 0) {$this->iv = $key;//default to $key as
There are several possibilities for the original:
[font= "Microsoft Yahei" onclick= "alert (' B ')"] People's Republic of China [/font]
[font= "abc" onclick= "Alert (' B ')"] People's Republic of China [/font]
[font= "Microsoft Yahei"] People's
I do not PHP, so also ask you to forgive the great God
Direct access to this page is also not displayed (red xx)
I Baidu try to solve
GD is open.
You still don't see the picture.
Asking for help from the great God
Reply to discussion (
1,session Temp File
In the server, the security and efficiency of the server can be reduced if all sessions of the user are saved to a temporary directory. Opening a server-stored site can be very slow.
Using the PHP function Session_save_path ()
Want to put array (1 = ' 1 ', 2 = ' 1 ',) into the V2 field of the table in the test database, what should I write?
Reply to discussion (solution)
Take it first, and then json_encode into it?$arr = Array (1 = ' 1 ', 2 = ' 1 ');$v 2 =
$t = ' 2011-01-31 17:21:22 ';
Print_r (Array (
Date (' Y year m month ', Strtotime ($t)),
Date (' Y year m month ', Strtotime (' + 1 month ', Strtotime ($t))),
Date (' Y year m month ', Strtotime (' + 2 month ', Strtotime ($t))),
));
Exit
Why is it
Recently in learning, PHP MySQL
Next, after submitting the form, between inserting the database,
Is that enough to write? Do you want to write any other anti-SQL code?
$name =mysql_real_escape_string ($_post[' name ');
Reply to discussion
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