The _ FILE ,__ CLASS and other magic variables in PHP today saw a magic variable, which was never seen before, __dir __. I checked it and found it was added by php5.3, by the way, let's take a few examples to explain the complete path and FILE name
How to contribute code to PHP. PHP has previously migrated the source code to git for management, and is also on github (github. comphpphp-src), so that more developers can contribute code to PHP. PHP has migrated the source code to git for
Make the Chinese zodiac search webpage (php) and Chinese Zodiac php. The Chinese zodiac search web version is made (php). the Chinese zodiac php is bored today with a 12 Chinese zodiac queryer: Preview the website effect: hongxing01.hktd02u.
Iconv function Knowledge Summary in PHP, Phpiconv function Summary
Today, when revising the paper online, I met the Iconv function. Learn a bit
Header (' Content-type:application/vnd.ms-excel;charset=utf-8 '); $name =iconv (' utf-8 ', ' gb2312 ',
Mind messy, original non-static method can also be static call (turn), thoughts static
Can a non-static method be called statically in 1.PHP?
Today I was asked if PHP could use the Classname::methodname () method to invoke a method that does not
The Chinese content field in MySQL read with PHP today is garbled.
Use the following statement to set the connection encoding.
$ Charset = $ params ['charset']; mysql_query ('set character_set_connection = $ charset, character_set_results = $
This article is excerpted from: laruence Linux Private food basic article 22nd, chapter 23; reprinted please note the Source: http://www.cnblogs.com/beanmoon/archive/2012/10/30/2746103.html
Installing and uninstalling software in Linux is a headache
Session_start (), which has been solved for four days. in fact, there are a lot of solutions on the Internet, and many people in the Forum can answer such questions. But in the end, I still run the PHP code on my friend's computer. After confirming
Session highlights
For the PHP session function, there is always no suitable answer, especially some errors, and there are some no error results. The most terrible thing is the latter, which has always been difficult for many beginners. Some
JSON Basics
Simply put, JSON can convert a set of data represented in a javascript object to a string, and then it can be easily passed between functions, or asynchronously applied.ProgramTransmits the string from the Web Client to the server-side
This article will discuss how to use the inter-process communication mechanism-IPC (inter-process-communication) in the PhP4 environment ). The software environment discussed in this article is Linux + php4.0.4 or later. First, assume that you have
Source: http://blog.csdn.net/heiyeshuwu/archive/2005/08/16/456000.aspx
[Translation] PHP and Socket
Article: PHP and SocketTitle: PhP game programmingAuthor: Matt rutledgetTranslation: heiyeluren
◇ Socket Basics◇ Generate a server◇ Generate a
Solution in windows:
Find the path of session. save_path = "" in php. ini and check whether this directory exists or whether the directory has write permissions for everyone or Authenticated Users. Generally
Solution in linux:
After updating
Ignored magic-delay value assignment for php reference (late data Delay Binding) and value assignment binding
I am talking about the variable reference feature of php today, but what is the problem of delayed assignment? This is mainly an idea I
PHP uses xpath to parse XML, and xpath to parse xml
This example describes how PHP parses XML using xpath. We will share this with you for your reference. The details are as follows:
XML files are widely used in lightweight applications developed by
How to handle the multi-button form submission action in js, jsaction
In the previous article, we introduced how to implement multiple button submission actions in php. Today we will introduce a processing method for implementing multiple button
Json is often used when php and javascript are used to implement some functions. Json is a data format of js and can be directly parsed by js. Php cannot directly read json data, but php provides the json_decode function to convert json data, which
The younger brother is coming soon. Please stop laughing!
I was a little confused when I first came into contact with PHP today. I don't know where to start. Because of the poor foundation, I made some jokes. Here I will write down the process to
Testing PHP today
ProgramThe error message "cannot use a scalar value as an array" is displayed. The error message returned a few days ago. At that time, it seemed to be fine-tuned and I didn't go into details, today, it appears again.
I can't
Alternative syntax in PHP
Today looked at the WordPress code, there are some rare php substitution syntax,
→ ', ' thebox '));?>
'. __ (' Pages: ', ' Thebox '), ' after ' + ') ');?>
What does the colon and endif after else
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.