If I have two files a.php,b.php.
The statements in the a.php file are:
The code is as follows
Copy Code
echo "I am a.php";?>
Now, I need to display the source code in the file a.php in the b.php file, which is
The ftp_get () function downloads an object from the FTP server.If the call succeeds, true is returned. If the call fails, false is returned.SyntaxFtp_get (ftp_connection, local, remote, mode, resume)The ftp_connect () function creates a new FTP
The round () function rounds a floating point number.SyntaxFloat round (float val [, int precision])Returns the result of rounding val by the specified precision (number of digits after decimal point. Precision can also be negative or zero (default )
Here is a simple method: The code is as follows:Copy code Result: 16:21:38Time () function: displays the current system time.The time () function returns the Unix timestamp of the current time.SyntaxTime (void) parameter descriptionVoid is
The code is as follows:Copy code // Construct a string$ Str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ ";Echo "original string: ". $ str. " ";// Intercept in various ways$ Str1 = substr ($ str, 5 );Echo "starts from 5th characters to the end:". $ str1. " ";$
In the php Tutorial, arrays are powerful data types. They can do a lot of things and store different data types in an array. Below we list the common operations of arrays, sort and sort the array by key name./* Common functions of arrays ** Array
/* Function definition:* 1. The function is named* 2. Independent code segments* 3. The Function executes a specific task.* 4. You can return a value to the program that calls it. ** Advantages of functions:* 1. Improve program reusability* 2.
Php Tutorial method_exists check whether the class contains functionsThe syntax of the method_exists () function is as follows: bool method_exists (object, string method_name)The method_exists () function is used to check whether the methods of the
$ Ip = "127.0.0.1"; // define an ip address$ Long = ip2long ($ ip); // Convert the ip address to an integer.If ($ long =-1 | $ long = false) // if the execution is incorrect{Echo 'invalid ip, please try again '; // output error message}Else{Echo $
$ File = "test.txt"; // definition fileEcho fileowner ($ file); // get the file owner/*The fileowner () function returns the object owner.If yes, all user IDs of the file are returned. If it fails, false is returned. The user id is returned in
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