Detailed steps for configuring the PHP Server environment
# Import the PHP5 module
LoadModule php5_module "D:/Program Files/PHP/php5apache2_2.dll"
# Identify the file ending with. php in the URL
AddType
Example of phpcurl_init function usage
// Initialize a curl object
$ Curl = curl_init ();
// Set the url you want to capture
Curl_setopt ($ curl, curlopt_url, 'http: // bbs.it-home.org ');
// Set
Centos6 how to use yum to install phpmysql and gd extension libraries
# Yum-y install mysql-server mysql-devel
Configure mysql boot service
# Chkconfig -- add mysqld (add mysql service to the service
Php import excelphp use phpexcel to import an excel file
// Load the PHPExcel class
Include (dirname (_ FILE _). '/phpexcel/PHPExcel. php ');
$ Obj = new PHPExcel_Reader_Excel5 ();
$ Obj->
Example of exporting and importing csv files in php
Header ("Content-type: application/vnd. ms-excel ");
Header ("content-Disposition: filenameappsdownloaded.pdf ");
Echo "1 \ t 2 \ t 3 \ n"; //
Php input stream: example of sending an image to a server using input:
Submit the form to the server. the server uses file_get_contents to obtain the php: // input content:
$ Content =
Install the gd library for php in yum in linux
[Root @ jbxue ~] # Yum install php-gd *
Setting up Install Process
Setting up repositories
Base 100% | ===================================| 951 B
Update 100%
Php function code for getting website addresses
/**
* Obtain the complete website address.
* By bbs.it-home.org
*/
Function getRootUrl (){
$ Name = '';
If (isset ($ _ SERVER
PHP image shrinking function example
/**
* Function for downgrading images
* The original image is deleted and the operated image is retained.
* @ Param string $ fileName
* @ Return void
Simple sample code for php date functions
A small example of a php date function -bbs.it-home.org
Echo time (); // The number of seconds (timestamp) from 00:00:00, January 1,
Php calculates the specified folder information (number of folders, number of files, folder size)
// Format the size of the output directory. unit: Bytes, KB, MB, and GB.
// You can also count the number of
A small example of PHP determining whether to connect to the network
// Check whether the network is connected
Function varify_url ($ url ){
$ Check = @ fopen ($ url, "r ");
If ($ check ){
$
Code for php to determine the path of a search engine and then jump
/**
* Determine whether the search engine redirects to a webpage
* Edit: bbs.it-home.org
*/
$ Flag = false;
$ Tmp = $ _
Differences between phpmysqli and mysql
This article introduces some differences between mysqli and mysql in php. if you have any need, you can make a reference.I. PHP-MySQL is the original Extension for PHP to operate MySQL databases. I of
Memory_get_usage: an example of getting the current PHP memory consumption
Echo memory_get_usage ();
$ Var = str_repeat ("phpzixue.cn", 10000 );
Echo memory_get_usage ();
Unset ($ var );
Echo
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