Some people think that Linux is very complex to build PHP environment, and then try to install LNMP one-click installation package. In fact, is to install a Web server, and then support PHP can be, very simple, compared to the installation of LNMP
Here the implementation of the PHP Import export Excel function is to use open source Phpexcel, do the following operation please download the class library file, the official website: http://www.codeplex.com/PHPExcel, website case code a lot,
Look at the POP3/SMTP protocol when you want to try to write a class, the core is nothing, is the use of fsockopen, and then write/Receive data, only to achieve the most core part of the function, as a learning Socket operation of the practicing. It
The examples in this article describe the simple pagination classes and usage of PHP implementations. Share to everyone for your reference, specific as follows:
page;
* * Get the total number of pages * $page->pagecount;
* * Total Record
This article describes a simple way to create a calendar in PHP. Share to everyone for your reference, specific as follows:
";
$calendar. = " $monthName $year ";
$calendar. = ""; Create the Calendar headers foreach ($daysOfWeek as $day)
This article is a short story about PHP serialization/object Injection Vulnerability Analysis, which describes how to get the remote shell of a host.
If you want to test this vulnerability yourself, you can do it through XVWA and Kevgir.
The first
PHP's own mail function compares the egg pain, the SendMail is configured under win or the message cannot be sent. Pear/mail with a third party can connect to the mail server directly via SMTP. such as (smtp.163.com). Therefore, it is not necessary
This article describes the php file upload class. Share to everyone for your reference, specific as follows:
This shows the FileUpload.class.php file upload class, which uses two constants that can be defined in the Web site configuration file:
If the callback function is not provided, Array_filter () deletes all entries in input that are equivalent to FALSE.
You can use this function to delete an element that is null in the array.
Copy Code code as follows:
Delete an element
The example in this article describes a method for Php+ajax implementation without refreshing paging. Share to everyone for your reference, specific as follows:
Note : Some of the class libraries used here can find the source code in the previous
First of all, this article is based on the WAMP environment, so, if you see here has not built a good wamp environment, mind you first set up the environment, because here are some practical content.
1. Prepare
In the WAMP environment, I use the
What is the MIME type, which is the type of file that sets an extension to open with an application, and when the file is accessed, the browser automatically opens with the specified application.Used to specify some client-defined file names and how
This example describes the DES encryption and decryption instance implemented by PHP. Share to everyone for your reference, specific as follows:
'; echo ' str: '. $str.
' ';
$jiami = Jiami ($key, $STR); Echo ' Encrypt: '. $jiami.
'
The usually submits a form for no refreshes, and we do it using AJAX. Some time ago, I followed the boss. Another way of not refreshing a submit form is to use the IFRAME framework. Now put it out and share it with everyone. First: HTML page
This article illustrates the method of shuffle () of PHP function to take several random elements of an array. Share to everyone for your reference, specific as follows:
Sometimes we need to take a few random elements of the array (like doing
This example for you to share the PHP Web generated two-dimensional code, Android client scan login specific code for your reference, the specific content as follows
Using the Zxing open Source Library with sweep code on the GitHub, the network API
Traverse the directory or traverse the directory of the specified type of file, this is every child shoe in the writing program will inevitably use. PHP itself also provides a lot of gray useful functions, use them correctly, there is no mistake.The
Some days ago because the business needs to write a calculation of the combination of code, today sorted out for later use
Copy Code code as follows:
/**
* Mathematical problems to solve: calculate the composition of C (a,1) * C (b, 1) *
PHP Member Login module is a very simple website development module, this example mainly to PHP beginners a simple reference, the logic of which is still to the reader to understand, many more thinking. login.php file
Error_reporting
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