if (is_executable ("test.txt"))//to judge a file{echo "File executable"; Output results}else//If the file is not executable{echo "File not executable"; Output information}
//
Var_dump (Is_file ("Test.txt")). " "; To judge a fileVar_dump
session.inc.php Tutorial Files: Defines the session file store, the session solution, is to provide in the PHP script to define the global variable method, make this global variable in the same session for all PHP script is valid. As we mentioned
From silently to others ask how to learn PHP start, to later many people again to ask silently how to learn PHP, whether silently is a novice, or veteran, it seems that always feel a clear thread to come, but, silently since learned PHP, then I walk
Specifically what day began to contact with PHP, silently this dull brain has not been able to remember, but it should be said that time is not short, although I often is yesterday's thing to forget today. I used to have a lot of choices when I
Now the network technology is booming, only to see the CGI (Common Gateway Interface) and Out of ASP (Active Serve Page), and then kill PHP (see note), really dizzying. The emergence of these new software not only brought us a new feeling, but also
I am learning this aspect of things, just see this article configuration, and learn some things, send up and share with you.
The Internet Information Services (IIS) built into Windows systems have good support for ASPs, so it is convenient to debug
Anywhere liuxiLzl@163.net
PHP installation Steps, the Internet has a lot of information, are very detailed. However, since the installation of free software such as apache,php does not have a friendly user interface like commercial software, many
PHP FCK article pagination fckeditor article page code
$page =isset ($_get[' page ')? $_get[' Page ']:1;//here. Pagination number of the current article if not, 1.$split = ' ';
Here is the pagination code for the FCKeditor article
$array
Misuse of include
1. The reason of the loophole:
Include is the most commonly used function in writing PHP Web sites, and supports relative paths. There are many PHP scripts that directly take an input variable as an include parameter, resulting in
directory, file operation details-php
Write a file and read the file in the same way, first see if you can write: $file = ' dirlist.php ';if (is_writable ($file) = = False) {Die ("I am
1) Date
Usage:
Date (format, [time]);
If there is no time argument, the current time is used.
A format is a string in which the following characters have special meaning:
U replaces the number of seconds since a start time (as if it were January 1, 1
Principle. I found a packaging program on the Internet Make_exe (from Phpnow) can put the. 7z+ Package of file interface information into an EXE run package, and automatically run the self-extracting 7z compressed package of batch files.
Buffered output
for ($i =10; $i >0; $i-){echo $i;Flush ();Sleep (1);}?> according to the PHP manual
This function sends all the output of the program so far to the user's browser.
The above code, should be output every second $i. But this is not
This is the Nginx and PHP installation notes that the webmaster recorded when they installed the server at one time in 2011. Installation process records are simple, just a rough flow, some details are not detailed description, please forgive me, I
Int preg_match_all (string pattern, string subject, array matches [, int flags])Search all the content that matches the regular expression given by pattern in the subject and put the result in the matches in the order specified by flags.After the
Delete an object The code is as follows:Copy code File_delete = "home/meeta/my. php ";If (unlink ($ file_delete )){Echo "The file was deleted successfully.", "n ";} Else {Echo "The specified file cocould not be deleted. Please try again.", "n ";}
Php can delete an array by using the following two methods:1. Traverse the array and determine whether the element value is specified. If so, use unset () to delete it. The sample code is as follows: The code is as follows:Copy code // $ Var is
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