PHP Magic functions and variables
1:php Magic function
__construct ()Called when an object is instantiated.When __construct and a function with a class name are present, __construct is called and the other is not called.__destruct ()Called when an
Summary of some key points to improve the efficiency of PHP operation
1. The speed of $row [' ID '] is 7 times times that of $row[id]. This is also one of our most encountered problems. There is also the distinction between single and double quotes
How do you store a two-dimensional array in a cookie?
First, convert the array into a string, and then remove the slash (why is there a slash?). ) Convert back
a.php
b.php
JS Create cookie
var name = "Str1"; varfunction Setcookie
Resolution of image references due to the failure of the other anti-theft chain processing load
Many image sites now have anti-theft chain processing, and if you load their images directly in your Web page, you will be prevented from accessing
In PHP to replace the method of line break summary, we all know that we commonly used two operating systems Linux, Windows in the text line wrapping is not the same, how to replace the compatible with all the line, PHP has three ways to solve.
1.
Memcached-1.4.4-14 for Win32 or Win64
View PHP.ini The default storage for session is files, as follows
Session.save_handler = Files
The default storage path for session isFor Windows: c:/windows/tempFor Linux: Unknown
# Windows Platform
For example, your original path is http://localhost/test/index.php/index/add.
So now the address is http://localhost/test/index/add.
How to get rid of index.php?
The mod_rewrite.so module is loaded in the 1.httpd.conf configuration
How do I click submit once submitted, can not be submitted again?
Reply to discussion (solution)
function Checktext () {$ ("#go"). attr (' disabled ', true);//The Commit button fails var title=document.getelementsbyname (' title ') [0].
Tokyu Tokyu Tokyu Tokyu Tokyu Solving
Reply to discussion (solution)
Look at the template, or the PHP fileIt's blank
.
It's mostly BOM head in mischief
。。。
Reply at: 2014-07-02 16:29:21It's mostly BOM head in mischiefHow to Solve
PHP built-in function substr () can intercept a specified string, but it is only appropriate to intercept all English strings. If Chinese is present in the string, it is possible to cause garbled characters after interception, even in some scenarios,
Dynamic settings are required here
Dynamic settings are required here
Dynamic settings are required heredynamic settings are required here dynamic settings are required here dynamic settings are required here dynamic settings are
I changed the root directory of the website and changed it into a/wwwroot/www.
But I can't access it, I don't know why.
Reply to discussion (solution)
What do you mean, no access? What does the directory section say below?
What do you
$query = $db->findall ("P_newsclass where f_id= ' $_get[cid]"), while ($row = $db->fetch_array ($query)) {$news _ class_in.= $row [id]. ",";} echo $news _class_in= $news _class_in. " $_GET[CID] ";
is to display the news list and print it correctly.
Required software and version information
centos-6.4
apache-2.2.29
php-5.4.15
mysql-5.5.28
1. Installing libxml-2.9.2
Using the centos-6.4 Yum source installed libxml is 2.7.6, if you need to use Phpexcel to generate Excel2007 files, you must
PHP Abstract Factory mode development ideas
The abstract factory model is relative to the factory model
Abstract Factory mode is an abstraction of the factory model, which, in layman's terms, separates the structure of the factory model into an
Using Smarty to achieve text interlaced color
PHP page
Assign (' list ', $rows); $smarty, display (' 1.html ');
Template page Design
Product ID
Product Name
Product logo
Product
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