PHP programming online resource navigation. I. PHP introduction reference the definition of www.php.net, an official site of PHP (HgpertextPreprocessor or personalhomepagstmls, PHP is a script language embedded on the server, cross-platform, and
PHP overview .. 1. what is PHP? 2. what does PHP mean? 3. What is the relationship between versions? 4. can I run different PHP versions at the same time? 5. what is the difference between PHP3 and PHP4? 6. I think I found out what a. PHP is?
2.
Section 4 constructor and Destructor [4]. If you declare a function in a class and name it _ construct, this function will be treated as a constructor and executed when an object instance is created. specifically, __is two strokes. if you declare a
Adjust the PHP file size limit
Max_execution_time = 30; Maximum execution time of each script, in seconds
Max_input_time = 60; Maximum amount of time each script may spend parsing request data
;
Php date addition and subtraction processing function example
Echo "today:", date ('Y-m-d H: I: s '),"";
Echo "tomorrow:", date ('Y-m-d H: I: S', strtotime ('+ 1 DAY '));
?>
Current time output from
Php code conversion implements gbk encoding to utf8
Class gb2utf8
{
Var $ gb; // The gb2312 string to be converted
Var $ utf8; // The converted utf8 string
Var $ codetable; // array of gb231
Php split array example
$ Arr = explode ("|", $ array ['A']);
// Split the array
$ Num = @ count ($ arr );
// Obtain the number of arrays
For ($ I = 0; $ I
Echo $ arr [$
Example of modifying the php. ini configuration file
@ Ini_set ('memory _ limit ', '64m');/* Maximum memory size occupied by the script */
@ Ini_set ('max _ execution_time ', '15');/* maximum script execution time */
Import SQL server data into Mysql database using php (example)
// Connect to the SQL server database
$ Conn = mssql_connect ("localhost", "sa", ""); // server name, user name, and password
Mssql_select_db ("
Php class for simplified conversion in UTF-8 coding
//
Class utf8_chinese
{
Private $ utf8_gb2312;
Private $ utf8_big5;
Public function _ construct (){
$ This-> utf8_gb2312 =
PHP image verification code creation example
$ Authnum = '';
$ Ychar = ", A, B, C, D, E, F, G, H, I, J, K, L, M, n, O, P, Q, R, S, T, U, V, W, X, Y, Z ";
$ List = explode (",", $ ychar); // delimiter
Php array sorting method (script School Dedication)
This article introduces the commonly used array sorting methods in php, including the usage of php array sorting functions, and the sorting methods of one-dimension arrays, two-dimensional
Two methods for php to obtain the file extension
This article describes a piece of php code used to obtain the file extension. it is convenient to use pathinfo () to obtain the extension in php. For more information, see.In php, you can
Example of an algorithm for generating globally unique guid using php
This article describes how to use php to generate a guid with a globally unique identifier. For more information, see.1. create the php class library file-guid. php
A cache interface demo written in php, compatible with redis and memcache
/**
* Factory method mode
*-------------
* @ Author zhangqian
* @ Version v1.0
*/
// Cache interface
Php merges all Layer 2 elements of the $ arr two-dimensional array and returns
Php merges all Layer 2 elements of the $ arr two-dimensional array and returns Array_merge ()Combine the elements of one or more arrays. the values of an array
Usage of unlink (), mkdir (), and rmdir () in php
Unlink () function use instance
// Use the unlink function to delete an object
$ Filename = "data.txt"; // defines the variable
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