One of the simplest ways to export excel files in php is to export csv files. However, to export an excel file, you can use the PHPExcel plug-in.
PHPExcel is a powerful PHP Excel class library, but it is a bit complicated to simply export data using
Recently I have prepared several PHP websites, so I need to install a PHP server on my computer. I haven't touched PHP, apache for a long time, when mysql is used, you just need to steal the lazy package and call it appserv. It can install php,
Download the following files to/usr/local/src/Apache(unixplatform's most popular Web server platform 20172.tar.gzMysql(and PHP combination of runtime -5.0.22.tar.gzPHP (for the current development language example -5.1.2.tar.gzDecompress:# Tar xvz
Recently, many of my friends have been asking me if I can hide my Trojan horse in HTML or images. In fact, it is very concealed to insert a Trojan horse into the PHP file, if you want to put it in an HTML file or image, read the test report.You know,
If you use php5.5, the hash creation and verification methods are much simpler. PHP 5.5 provides us with four functions: password_get_info (), password_hash (), password_needs_rehash (), and password_verify (). With them, we can quickly create and
The str_replace () function is used to replace specified characters, so we can use it to filter sensitive characters to prevent injection, below I will summarize some methods for you to share with you.
Various PHP character filter functions
The function of open_basedir is to specify the directory location, which means that the files that PHP can open are restricted to the specified directory tree, including the file itself, and are not affected by the security mode.
The following is
The get_magic_quotes_gpc function is used to determine whether to add a slash to the data provided by the user. This is in the php. ini configuration file. Next I will introduce the get_magic_quotes_gpc () function description.
Get_magic_quotes_gpc
If we use one-dimensional data to repeat items, we should not say that there are direct functions, but php does not provide functions for two-dimensional data, the following small series will recommend two good two-dimensional arrays to repeat the
Php ZipArchive is a built-in function of php. It can compress and decompress files. However, before using this function, we must. in ini, remove the semicolon before extension = php_zip.dll, and restart Apache to use this class library.
Optional
Gzip compression is a good way to compress and transfer pages. We often open it on the server, so that a kb file may be less than 20 KB after being compressed by gzip, next I will introduce the gzip compression detection and enabling methods.
What
User Login means that the user enters the user name and password, clicks the login page, does not refresh, and then submits it to the background program using ajax for judgment. If the login succeeds, the system returns real or relevant user
Compressing the page input is to remove all unused characters and then put all the Code together. This is helpful for seo, but it is poorly readable, we often see a lot of websites doing this. It is very troublesome to manually delete characters and
Session usage is actually very simple. It can save the data submitted by the user in the form of a global variable in a session and generate a unique session_id. This is to avoid confusion when there is more, in addition, the session can only have
This article will introduce the differences between php memcache and memcached. I hope some methods will be helpful to you.
First of all, you must enable the memcached Service to use the php APIs of memcache and memcached.
So what are the
This article introduces php to using the key name in the array as the key value of the variable name as the variable. I hope this tutorial will be helpful to you.
The Code is as follows:
Copy code
/*Php regards the key
There are several ways to enable and Disable Error prompts in php: one can directly use related functions in the program to open an account, and the other can use php. configure parameters in ini to control. The following section will introduce the
This article introduces two simple examples: Converting php arrays to xml and xml arrays. I hope this article will help you.
Php array to xml
The Code is as follows:
Copy code
Function array2xml ($ array, $ xml = false ){If ($
Variable scope is the scope of a variable that can be used between pages and functions, the following small series will introduce some learning notes about the use of the php variable domain to share with you.
The scope of variables in php is
You must know several tips for uploading files in php. One must be the data uploaded by the form post, which is accepted by php move_uploaded_file and saved to the specified path on the server.
1. form label enctype attribute.
2. $ _ FILES system
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