Coding techniques to provide PHP performance
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP will search for variables in a string surrounded by double quotes, single quotes will not, note: only echo
Ask: About judging whether the site is closed
If the site server needs maintenance, when the site maintenance, how to use code to determine whether the site is maintained, if in maintenance, jump to the prompt "Server is Maintenance" page?? Not very
Background query for a sub-table
I am doing a backstage, management post reply, because a lot of replies, the back end of the database is divided into a table,
Now there is a need in the background, the product can be based on the time to review
Really need help, ecshop shopping cart for advice. Thanks to the Bulls ...
Ecshop to develop a feature, click "Add Cart" to jump to the shopping cart page, on this page, there is a group of numbers, select a number $shoujihao to add to the current
About global variables How do you understand and wonder?
PHP was just getting started and had questions about global, and then tested it by itself:
function test (){Global $a;$a = 10;Global $b; $b = $a +10; }Test ();echo $a. "";echo $b.
Just started to touch PHP, parsing XML encountered a problem
This post was last edited by Yxxue on 2012-11-25 18:57:42
The remote XML document format is as follows:
Username= "U1" sex= "1" nickname= "maltose"
Problem of batch generating true static
Write the article information to the database, if you find that a record does not generate true static, then generate true static.
Also can indicate the last 10 or 20 added records, not generated true static,
The variables included in the Include function are not callable.
1.php
echo $a;
2.php
$a = "AAAAAAAAAAAA";Include ("1.php");
This writes the execution 2.php to be able to obtain the output correctly, but below can not
2.php
function LoadFile ($
Php+mysql query database cause the system is very card!
PHP Code:
$DBH = @mysql_connect ("localhost:3306", "root", "123456"); /* Define the variable DBH, the mysql_connect () function means to connect to the MySQL database, "@"
Want to be an Android client, can be used to access my own written PHP page, how should it be done?
I want to write an Android client, on their own computer with the simulator run, you can access the same on the computer running PHP page, how should
ECSHAOP How to change the picture path
This is the case, I changed the domain name, but the address of the picture or the remote domain name caused by the image is not displayed now how to replace the original address with the current picture
Apache Server first time Access slow!
In the local test, the first time to visit the site is obviously very slow, the second visit is very fast. The same problem occurs during the interval of the second visit. Do you want to resolve the cache
The cookies returned by Curl are processed into an array of
The goal is to convert the cookies inside the header returned by curl into the array and get location
Example:
......
Cache-control:private,no-cache=
Ask for help, pseudo-static remove index.php problem
such as: The www.abc.com/index.php/list-3-3 through pseudo-static changed to Www.abc.com/list-3-3
But after the change to visit the www.abc.com/index.php/list-3-3 URL, but back to the
Is it good to develop a small website using PHP? Or an ASP? or something?
Now to do a small travel site, which is better to use, or you have any better suggestions, please talk about ...
------Solution--------------------
rails,php
------Solution---
How to make a query report in PHP
Database: MSDTable: PURTC, PURTDFields in the PURTC:Fields in the PURTD:------------------------------Criteria Area---------------------------------------------------------------Data Display Area-------------------
Basic Programming Section FAQs and original Learning Exchange articles index
This post was last edited by phpnewnew on 2012-10-11 10:55:19
BASIC Programming FAQs Summary
http://topic.csdn.net/u/20120119/12/2f3f894d-e6fc-4692-80e9-de798b7e7c0b.html?40
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