The PHP dirname function returns the directory name dirname
(PHP 4, PHP 5)
DirName-Returns the component path of the directory name
Describe
String dirname (string $ path)
Given that a string contains the path of the file, the function returns the
PHP file to save Data statistics page access to the function of the number of
$jishu = "Jishu.txt";if (!file_exists ($jishu)){$KJS = fopen ($jishu, "w");Fwrite ($kjs, 0);Fclose ($KJS);}function Kaishi ($jishu){$js = fopen ($jishu, "R");$du = Fread ($
Opendir (target directory name) The function that opens the directory. Readdir (the target directory name opened) function to read the directory. Closedir (the target directory name opened) function to close the directory. Rewinddir (target
Provides a simple example of PHP to determine the case letter function Oh, it can find out how many uppercase letters a string has how many lowercase letter oh, is a very convenient common function.
Provides a simple example of PHP tutorial to
Definition and usage
The Filter_input_array () function gets multiple filters from the external input scripts and filters them.
This feature is useful for filtering large numbers of input variables without requiring filter_input (), more.
This
Returns an error (including the socket timeout) if the file pointer goes to EOF, or TRUE If an error occurs, otherwise returns FALSE.
Definition and usageThe feof () function detects if the end of file (EOF) has been reached.
Returns an error
Function abs ()
Describe:
Mixed ABS (mixed number);
Returns the absolute value of number. If The argument number is a float, return type is also float, otherwise it is int (returns the absolute value of the lost digit, floating-point return float,
In PHP, the date () function is a function that can get time and date, it may be commonly used on the day of the month, I would like to share the date () function of the unknown parameter.
Date () function
This function is more familiar.
1. Super Simple page Cache
If your project is not based on a CMS system or framework, creating a simple caching system will be very real. The following code is simple, but it can solve a problem for small sites.
//define the
PHP Rawurlencode and Rawurldecode Tutorials
Rawurldecode(PHP 4, PHP 5)Rawurldecode-decoding URL-encoded stringsDescribeString Rawurldecode (String $str)Returns a string in which the sequence of percent sign (%) signs after two hexadecimal digits are
The Str_ireplace () str_replace function in PHP is the substitution of characters, and I think the biggest difference is that one is not sensitive to case, and the other is the same for case sensitivity.
Str_replace () function
Definition: Use a
PHP Filegroup function Filegroup
(PHP 4, PHP 5)
Archive group-GET filegroup
Describe
International Archive Group (string $ file name)
Gets the filegroup. Returns the format of the numeric value in the ID of the owning group, use Posix_getgrgid ()
PHP fgets functions
Fgets(PHP 4, PHP 5)Fgets-Get the line from the file pointerDescribeString Fgets (resource $ processing [abstract $ length])Get the line from the file pointer.ParametersHandleThe file pointer must be valid and must point to a file
This article to introduce a simple file operation function Fopen,fopen function can open, read, and assist the file save, let me give you a summary of PHP file operation.
Open File
The simplest syntax for fopen is as follows:
fopen
The actual effect of PHP's unset () functionIt's highly recommended that you share this technical article
PHP variable to memory overhead and release, whether Unset () really frees memory. Turn from: The actual effect of PHP's unset () function
The
Overview
In the PHP development work very much uses the time-out processing to the time-out situation, I say several scenes:
1. Get data asynchronously if a backend data source gets unsuccessful then skips without affecting the entire page
PHP is a scripting language that requires the PHP interpreter to parse and run PHP files. When PHP is used as a CGI service Web request, it needs to be embedded in some kind of Web server, most commonly integrated into Apache or IIS, that is, before
PHP is a server-side scripting language, mainly used for dynamic web development, is currently one of the most popular development languages. Node is a JavaScript toolkit for writing high-performance Web servers. Author Jani Hartikainen published a
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