Why do I need debugger?
Many PHP programmers debug using Echo, Print_r (), Var_dump (), printf () and so on, in fact, for developers with a richer development experience these are enough, they can often in the process of program execution, By
There is no need to use Var in PHP, but when a variable is a member of a class, using Var is no problem.
In fact, this is a very easy problem to solve. In my opinion, familiar, hehe, recently learned JavaScript has learned to use VAR declaration
Several often overlooked but useful tags in the PHP smarty template engine, including capture tags, config_load tags, php tags, strip tags, fetch tags, and how to use define-defined constants directly in Smarty templates , this article will analyze
Today accidentally in the official document of CodeIgniter again see PHP call_user_func_array () This function, last year also in the Discuz Forum code also encountered, today on the Internet to check the use of this function, Let's share with you
Use thinkphp to do the development process of some skills summary, later found that will continue to add, but also welcome more friends in the following message to add.
(1) Do not use {$_get.id} or {$Think. get.id} directly in the template, because
In the Smarty template to determine whether the array is empty two methods, the following one by one for example to share.
(1) using the PHP count function
{if $array | @count GT 0} ... {/if}
(2) This is a very strange way of writing, today is
thinkphp 3.1.3 Seemingly no built-in method of intercepting Chinese strings, looking for a half-day did not find, the following author himself added a function to intercept Chinese strings, the specific code as follows, there is a need for friends
With the use of other people's packaged public Platform SDK Http://www.cnblogs.com/x3d/p/3740454.html, there was no time to fully understand the development manual.
Payment, even if you pay the margin, you still deal with the test phase, can not be
PHP function Strip_tags provides the ability to remove HTML and PHP tags from a string, which attempts to return the result of the given string str after removing null characters, HTML, and PHP tags.
Because Strip_tags () cannot actually validate
About the introduction of Memcache, here is not more said, readers can refer to: memcached is what? Memcache What should I use?
(1) Install Memcache First you have to download two files, memcached installation files and php required pecl extension
About Spl_autoload_register () and __autoload (), I believe most will choose the former? Look at the use of both:
Copy the Code code as follows:__autoload usagefunction __autoload ($classname){$filename = "./class/". $classname. ". Class.php ";if
For a long time did not use Smarty to do projects, and today suddenly to change their own website inside some things, because my site is a long time ago with smarty template engine do, change some places on the feeling still have to search the
The simplest PHP statement to import a database *.sql file into the database
Copy CodeThe code is as follows:
$sql =file_get_contents ("Text.sql"); Reads SQL statements into $sql as strings
$a =explode (";", $sql); Use the explode () function to
In real life and in the world of procedure, order is always important--I can't imagine what a world without order would look like! PHP arrays are no exception. PHP provides four sets of functions for the ordering of PHP arrays, the first three are
Until recently, to do a web thief program only to find that File_get_content is completely unable to meet the demand. I think that when reading remote content, File_get_content is not as good as curl, except that it's easier to use than curl.
Main
These two days installed the server, changed to apache+php5.4.3, configured to run the PHP website, there was an error: "PHP notice:undefined Index ..."
The specific information is:
PHP notice:undefined index:page in d:\myqy\andread.php on line
Using the Linux system to do Web server, local modification of JS or CSS to the server will often have no effect on the situation, this is the Linux server cache problem, resulting in local download JS or old version, the following to share a
This is accompanied by the effect and code of another turn column chart.
Original PHP Report effect:
Effect after turning into Excel:
vcd4kpha+ul3jz7t6wus6pc9wpgo8cd48chjlignsyxnzpq== "Brush:java;" >
GetProperties ()->setcreator
Previously wrote Curl batch data collection, paste the full version here, the code is very simple, nonsense does not say, on the code, Novice Welcome advice!!!
The code is only written to get to the link, as for the rank of the array after the key
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