PHP5 study record (1)
First, the main new features of PHP5
The 1.public/private/protected access modifier, for methods and properties in the object.
You can use the generic object-oriented access modifier to control access levels for methods and
PHP Basics (4)-cookie use
PHP Basic Knowledge-cookie use
Sample code download page http://xieye.iteye.com/blog/1336095 (in attachment)
A cookie is a simple definition of the data that the browser transmits when it sends a request to the
PHP does not recompile add FTP module
To add an FTP module as an exampleEnter the source directoryCD php-5.2.9/ext/ftp#运行phpize生成configure/usr/local/php529/bin/phpize
?
Configuring for:PHP Api Version:???????? 20041225Zend Module Api No:????? 20060
PHP Basic Learning--the difference between the Isset function and the empty function
Empty to determine whether a variable is "empty", isset to determine whether a variable has been set. It is this so-called "as the name implies", so I
phpMyAdmin Adding a stored procedure
Stored procedures:
?
CREATE PROCEDURE ' Clearcoupon ' () BEGIN declare today int (16); Select Unix_timestamp (Curdate ()) into today; UPDATE coupon SET status=0 WHERE endtime
?
Copy to phpMyAdmin
Two-dimensional array sorting, and subscript rearrangement
Title, I sort of a field, row, found subscript also follow, hope Subscript re-arrange, from 0~ start Platoon, ask how to do?
------Solution--------------------
PHP Code
$fruits = Array (
const, define, and static in PHP5
First, the const
In programming, we generally use constants to define those constants that cannot be changed at run time, let's look at the const in PHP, this thing actually nothing to say, just for the knowledge
Encountered PHP variable assignment strange .......
The strange things that happened when I modified the program today.
I'm going to assign a direct value.
$swfpath = "f:/comsenzexp/wwwroot/docs/2012/09/10/";
$pdfpath =
Installing lamp and phpMyAdmin under Ubuntu
Installing lamp and phpMyAdmin under Ubuntu
About the lamp configuration under Ubuntu, has become some people's heart disease, plus phpmyadmin configuration, but also make them selves here. Now I'm going
Types of errors in PHP
One, the error of the program itself
This error is easier to handle errors, such as syntax errors or the compiler can not parse, these errors at compile time, will not be compiled, and then according to the wrong prompt, to
How do you optimize a list of massive data and frequent updates?
Now the website data is very many, and update frequently, such the station Content List page How to optimize? At the moment we are generating static data, which can be more and more,
How to get the domain name via IP??
I use GETHOSTBYADDR (' inside put IP '), every time only return IP instead of return domain name, seemingly only input 127.0.0.1 can return domain name, Baidu, and Google are not, this function exactly how to use
Take the MySQL field comment question
Include ("conn.php");
$query = "Select * from Menu";
$result = mysql_query ($query);
for ($i =0; $i
<>
{
$temp =mysql_field_name ($result, $i);
echo $temp. ":";
$query _1= "Select Column_comment from
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
PHP 5.4.6 and 5.3.16 released
PHP 5.4.6 and 5.3.16 released. 2012-08-16 the last version of the 2012-07-19 5.4.5/5.3.15 fixed several bugs and several security vulnerabilities. After 1 RC.
Complete improvements:
Version 5.4.6
16-august-2012
CLI
This will not delete the data. Sure to delete the success, sweat
PHP Code
------Solution--------------------
Did $shan and $ming get a value?
Is this data identified in the database?
------Solution--------------------
is
thinkphp conversion between simplified, traditional, and English pages
Click to download simplified, traditional, English
Example : Simplified file
lan_chinese.php: Simplified file
Var_dump ($_session);d ie;
$lan = Array (' Shouye ' = ' home ','
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