Let's take a look at the function code of PHP drawing column chart, good crap don't say more to see it, good crap don't say much.
Let's take a look at the function code of PHP drawing column chart, good crap don't say more to see it, good crap don't
1, when using file_get_contents or fopen, file, ReadFile and other functions to read the URL, a variable named $http_response_header is created to hold the HTTP response header, Data flow information that is opened using functions such as fopen can
PHP traversal two-dimensional array and multidimensional array code about PHP arrays, let's talk about two-dimensional arrays and multidimensional traversal code, the following three examples to test the array of the traversal of the PHP code
For some reason the PHP allow_url_fopen option is turned off, and it is impossible to use file_get_contents directly to get the contents of a remote Web page. That is, you can use another function, curl.
Unlimited file_get_contents get Remote Web
Dynamic code and front-end code are completely detached, and the template contains only the pure front-end code (HTML,CSS) and identifiers that replace the dynamic code. The pure dynamic code is written in the core, but there is a parameter that
The file_get_contents function is used to capture the contents of a remote server, but before we use the file_get_contents function, we must turn allow_url_fopen on in php.ini.
Problem description
fopen (), file_get_contents (), getimagesize () and
Recommended use of violent version, safe and reliable; The gentle version is more efficient from the point of view of program writing. Oh
The basic principle is to fix off, Len may be misplaced, gentle version is from off to the forward search,
PHP constant DirName (__file__)
__FILE__: called the PHP Magic Constant, returns the full path and file name of the currently executing PHP script, containing an absolute path
1) the dirname (__file__) function returns the path where the script is
PHP fnmatch file name matching mode
Fnmatch(php 4 "= 4.3.0, PHP 5)Fnmatch-Match a pattern to a file nameDescribeBoolean Fnmatch (String $ pattern, string $ string [abstract $ flag = 0])Fnmatch () checks if a given shell wildcard pattern will be
PHP filesize functions
FileSize(PHP 4, PHP 5)filesize-Get File sizeDescribeInternational filesize (string $ file name)Gets the size of the given file.ParametersFilenameThe file path.return valueReturns the size of the file in bytes, or false (and
We're all using timestamps here.
Mktime (HOUR,MINUTE,SECOND,MONTH,DAY,YEAR,[IS_DST])Its parameters can be omitted from right to left, and any omitted parameters are set to the current value of the cost date and time.
Parameter descriptionHour is
When we are applying
PHP application ODBC specific code:
Class odbc_db
{
var $ Con = NULL ;
var $ Resource = NULL ;
function __construct ()
{
}
function Connect ($dsn = ",$user = ", $passwd =",$cursor_type = 0)
{
!
SUBSTR (str,start,length);
Example: substr (' PHP tutorial is very good language ', 4,5);
The output is the is ve;
When the length of the START>STR, it is returned as ();
substr (' PHP is very good language ', 26,5);
substr (' PHP is very good
We use these two functions to remove the last character of the string is the argument, RTrim he has the default to delete spaces and some special characters, but you can also delete the specified characters, page substr We are the character length,
PHP Tutorial Date () convert mktime () to a readable date
The Date/time function allows you to extract and format the date and time on the server
The Mktime () function returns a UNIX timestamp for a date.
The parameter always represents the GMT
As you all know, the rename () function can rename a file or directory. In fact, it can do a lot of things.
A friend familiar with Unix should know the shell command MV, which is quite moving with Win32, and can be renamed while moving. I found that
WinXP Building PHP Development Environment 1. Installing the Apache server
Address: http://httpd.apache.org/download.cgi
Download current new version: Apache_2.2.13-win32-x86-openssl-0.9.8k.msi
Run the installation files directly.
This example
We are learning
PHP function Pack Definition:
Compress the data into the string in place.
Grammar:
String Pack (string format, mixed [args] ...);
return value:
String
PHP function Pack Type:
Data processing
PHP Function Pack Content
"Replace i=i+1 with I+=1." In line with C + + habits, efficiency is high ";
For global variables, you should run out of unset ()
As far as possible to file operations, although the PHP file operation efficiency is not low;
Optimization of the Select
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