File manipulation functions in PHP (read-Write, properties, executable

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

PHP Custom File Save Session implementation method

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

How to learn PHP

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

Introduction to PHP Simple guide

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

Install PHP 4.0 on win 98+PWS

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

Let IIS support PHP

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

Install some additions to Apache and PHP, a very useful article

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+DBM's Alumni Program (4)

--> --> 8, registration file Reg. PHP3?Require ("common.") PHP3 ");Require ("Mail.") PHP3 ");if ($submit) {if ($id = = "") Error ("Please fill in your registered user name!") ");ElseIf (!eregi ("^[0-9a-za_z]+$", $id)) error ("Your username cannot

PHP FCK article pagination

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

Php+ajax no refresh to achieve three-level linkage between province, land and city

html > Head >Meta http-equiv="Content-type" C />script type="Text/javascript" >var xmlHttp ;var requesttype="" ;function createxmlhttprequest (){if (window. ActiveXObject ){ xmlHttp=new activexobject("Microsoft.XMLHTTP" );}else if (window.

The war in the PHP hole

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

PHP Directory file Operation function directory operation details

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

Date and time functions in PHP

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

PHP packaged into EXE

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.

Output Control in PHP

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

Nginx + PHP (FastCGI) installation configuration notes

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

Usage of the preg_match_all function in php

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

PHP deletes the file before the specified date in the root directory of the specified folder.

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 read directory displays instances in a list

Example 1 The code is as follows:Copy code   $ GetUrl = (empty ($ _ GET ['URL'])? './': $ _ GET ['URL']. '/';  Function fileName ($ dir){   $ FileAll = scandir ($ dir, 0 );$ PathDir = $ pathFile = array ();$ Count = count ($ fileAll );  If ($

Php deletes duplicate array elements and empty element code

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

Total Pages: 12780 1 .... 3324 3325 3326 3327 3328 .... 12780 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.