PHP inserts 1000 data into MySQL, how to write???
for ($i =1; $i {
$id = "100";
$username = "XM";
$sql = "INSERT into Tb_user (id,username) VALUES (' $id ', ' $username ')";
mysql_query ($sql);
}
I did not set the ID and username into the
PayPal's notify_url cannot be returned
After the payment is successful, PayPal does not return to the specified notify_url, so I do not know if the payment was successful.
Please be a big help to see where the problem is.
If you have PayPal's
Using GD2 Library to create graphics in PHP does not show up in the browser
I just learned PHP soon, when using the GD2 library to create images in the browser to display the image, only a logo representing the image, my code is as follows:
Header (
Just talking about XSS attacks.
I remember doing a project before. The presence of an XSS attack is detected.
At first I did not filter the content submitted.
Later, the Foreach loop filters each variable $_get...$_post ... and finds No.
Then had
PHP and Redis use experience sharing
First, installation
1. Redis Download and Installation:
Reference
Mkdir/usr/local/redis
Cd/usr/local/redis
wget http://redis.googlecode.com/files/redis-2.4.2.tar.gz
Tar xzf redis-2.4.2.tar.gz
CD redis-2.4.2
Make
Phpexcel output XLS document display garbled solution
Recently in the system to do some reports, mainly for Excel read and processing operations.
Before the development on their own machine, there is no garbled situation,
Even if I decorate to the
OpCode to see the problem of PHP code performance
Recently seen in the "? some php Coding Tips mention one thing: avoid doing arithmetic in the for-judging condition.
?
So the rise with VLD looked at:
for ($i =0; $i<><>
For ($i =0, $j =strlen (
Some of the less common features of PHP
1. Variable function name, you can use string to splice function name
functionAA($str) {Echo $str;}$function= "AA";$function(' Hello ');//orCall_user_func($function,$param);
2. List all functions to
Execute shell commands with PHP
PHP as a server-side scripting language, like writing simple, or complex dynamic Web pages such a task, it is fully capable. But this is not always the case, sometimes in order to achieve a function, you have to rely
Phpmailer Chinese garbled problem
I use Phpmailer class library to send an e-mail, the code has been set to Utf-8, but if the sender, the recipient, and the subject contains Chinese characters, the display garbled problem, very uncomfortable.
Starting with a PHP face question.
Interview Topics:
?
?
Setcookie (' name ', ' test '); Echo $_cookies[' name '); Please say the result of the program (you can say the difference between the first and second time)
Originally, I thought it was
PHP Knowledge points to review the string
these can all be hard to knock out of remember how to look back to see AH must!!! /*echo Qqqqqq\nqqqqqqQqqqqqqqqqqqq\rqqqqqqqqqqqqqqqqqqmark*/Technical Mark to another line, and is shelf write!The effect
PHP Coding Specification
First, file format
1. For files that contain only PHP code, we will ignore "?>" at the end of the file. This is to prevent extraneous spaces or other characters from affecting the code.
For example:
$foo = ' Foo ';
2.
C writing a dynamic-link library php DLL
New-"Project-" Win32 Dynamic Link library-> A simple DLL project
Only before the function is marked:extern?? " C "?? _declspec (dllexport) function can be called by other programs through the DLL
extern "C"
How does the client manipulate the database through the page?
I now have a need to:
Local Computer information uploaded to the server database--Web site detected changes in the database, the information downloaded to the Web page, the front end is
30 minutes to learn the PHP language immediately
It's no exaggeration to say so, but you have to have a little programming base. I am talking about learning PHP language is not learning to use PHP to build Web applications AH. This language is
PHP5 magic function, Magic constant
Turn fromhttp://www.loveiso.com/article/11-06-11/48.html Magic function1. __construct ()Called when an object is instantiated,When __construct and a function with a class name are present, __construct is called
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