Use PHPExcel to export Excel examples in PHP

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

Practical solutions for failure to use Apache in winxp [sp2]

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,

Install Mysql + Apache2 + php5

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

Tips for hiding PHP webshells

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,

PHP5-detailed explanation of the creation and verification methods

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

PHP uses str_replace () function to prevent Injection

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  

Php open_basedir security and Usage Details

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

Get_magic_quotes_gpc () function in php

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

PHP two-dimensional array deduplication custom function

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 instance Usage Details

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

Php checks whether the url page is compressed using gzip.

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

Php jquery ajax User Logon instance code

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

Php output compressed HTML page code instance Program

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

How to Use php sessions? Session usage

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

Differences between php memcache and memcached

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

Php uses the key name in the array as the variable name key value

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

Php enabling and disabling error messages

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

Php array to xml and xml Conversion array instance

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 ($

Php variable scope learning notes sharing

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

PHP File Upload application and principles

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

Total Pages: 12780 1 .... 12733 12734 12735 12736 12737 .... 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.