Tutorials to .com

Tutorials to .com » Php » Others » php other

php other Articles


101: Function
A function (function) can use the following syntax to define function foo ($ arg_1, $ arg_2, ..., $ arg_n) ( echo "Example function. \ n"; return $ retval; ) Any valid PHP code may appear in the function (function), even for a functio...

102: A head count to determine whether the array in a function known
bool in_array (mixed needle, array haystack [, bool strict]) In the haystack search needle, if found is returned TRUE, otherwise return FALSE. If the third parameter strict is TRUE the value of in_array () function will check whether the type of n...

103: How to shield off phpinfo () function
In the php.ini configuration file there are the options disable_functions =; This directive allows you to disable certain ; Functions for security reasons. It receives ; A comma separated list of function names. ; This directive is * NOT * affec...

104: How to use PHP's date and time function
(1) date Usage: date (format, [time]); If there is no time parameter, then use the current time. Format is a string, of which the following characters have special meanings: U replaced by a start time (like 1 January, 1970) the number of second...

105: PHP and XML: using expat functions (a)
PHP and XML: using expat functions (a) Extensible Markup Language (Extensible Markup Language) is obviously most developers will want to add to their toolbox of things. XML is a W3C standard, it is an open, language-neutral, API neutral, streaming,...

106: PHP and XML: using expat functions (b)
PHP and XML: using expat functions (b) Let us look at the actual document to deal with the PHP code. / * NewsBoy: News system for the web written in PHP by Justin Grant (Web: jusgrant.cjb.net or justin.host.za.net Mail: justin@glendale.net) 25 Mar...

107: PHP and XML: using expat functions (c)
PHP and XML: using expat functions (c) How, in a PHP script can use this category? In fact very simple. There is an example: First class definition needs to be included in the script require (CLASS_DIR. "class.Newsboy.php"); Then, we c...

108: Simple page buffer technology (c)
ontent.php3 documents used to process dynamic pages. Users can content.php3? Page = id number to read out a data file. Specific methods that I do not, we know that each data file as long as there is a different id number, so content.php3? Page = id ...

109: Default parameters are a function of
<HTML> <HEAD> <TITLE> Have default function parameters </ TITLE> </ HEAD> <BODY> <FONT SIZE=5> <? function printColored ($ Text, $ Color = "black") / / function definition of function ( ...

110: Have the function return value
<HTML> <HEAD> <TITLE> Function return value </ TITLE> </ HEAD> <BODY> <FONT SIZE=5> <? function makeBold ($ inputText) / / definition of function makeBold () function ( $ boldedText = "<B...

111: Using PHP to achieve a small site advertising
Picture Link is probably the most commonly used advertising network advertising model, but a number of dynamic random display advertising is not so simple things. PHP's file upload function provides a 468x60 pixel in this region (standard-size p...

112: Specified period of time from months down onto a function of n
Author: bjbs_270 Some time ago to do a month with a statement of statistical functions such as the title, combined with others to use mktime () function I wrote was always a mistake, however, very depressing. Out over the weekend a little more time...

113: Will automatically add the string interception function
One of the advantages of PHP is the fast, the general application of the site can be said to have been sufficient. However, if the high site traffic, narrow bandwidth, or other factors that gave rise to server performance bottlenecks, you may have t...

114: PHP link to read a function of site
Principle: to read a site's source files, re-use is the analysis of its source code, all the links <? /********** qiushuiwuhen (2002-5-20 )***********/ if (empty ($ url)) $ url = "http://www.csdn.net/expert/"; / / set url $ site...

115: PHP4 to introduce a new function - output control function
These functions can let you control the output of your script content. Can be used in many different situations, especially in your script has output to send the file after the first new circumstances. Output control function does not use header () ...

116: PHP's date handling
I was just about to use PHP to help the preparation of a processing system. I found that I need to know to deal with the last issue of a customer is over how long? When I used to use when the ASP is quite simple to solve this problem, ASP has the Da...

117: How can like phpinfo () screen out?
Q: how can like phpinfo () screen out? A: path: C: winntphp.ini (NT and 2000) C: windows (95,98) In the php.ini configuration file there are the options disable_functions =; This directive allows you to disable certain ; Functions for security r...

118: php in rename () function
As we all know, rename () function can be carried out on the file or directory rename operation. In fact, it can do a lot of things. A friend familiar with the unix command shell should know mv, it is very mobile and win32, and the movement to rena...

119: How to use PHP in the header to send the head of information
According to Mr. Peng Wuxing in the "PHP BIBLE" described, header can be sent Status header, such as header ( "Status: 404 Not Found"); ?> Could occur so that the user's browser can not find the 404 error document, but ...

120: Information to obtain a comprehensive picture of the function getImageInfo ()
<? php function getImageInfo ($ img) (/ / $ img absolute path for the image files $ img_info = getimagesize ($ img); switch ($ img_info [2]) ( case 1: $ imgtype = "GIF"; break; case 2: $ imgtype = "JPG"; break; case ...


Page 6 of 9
[1]   [2]   [3]   [4]   [5]   [6]   [7]   [8]   [9]