Running in a php5.3 environment often occurs
deprecated:function ereg () is deprecated in .... and Deprecated:function ereg_replace () are deprecated in .... These types of error prompts.
The reason for this is that the php5.3 version does not
Do not make changes here, maintain the default selection
Click the browse button to change the installation directory to D disk
Change the Web Server port to 85 to avoid conflicts with IIS
Installation completed due to a configuration
Because the company's website before the user head is stored in their own server, and later feel the management is inconvenient, the new user avatar has been uploaded to the seven cattle, in order to facilitate the unified management, the leader
1. Upload Form upload.html
Copy Code code as follows:
1. Note This is a label, we want to implement file upload, must be designated as Multipart/form-data, otherwise the server will not know what to do.
2. It
Search for keywords in search engines. htaccess cache, you can search for a lot of information about setting up Web site file caching tutorial, through the settings can be CSS, JS and other infrequently updated files cached in the browser side, so
We generally use $_server[' remote_addr ' to get User IP,
However, if the reverse proxy is used, the REMOTE_ADDR in the HTTP header is not the user's address, but the address of the agent at the top level.
After my research there are two ways to
Copy Code code as follows:
$num = 1220.01;
echo Fmoney ($num);//Result: 1,220.21
echo Umoney ($num);
Result: one thousand and two hundred twenty dollars and twenty-one only
Echo Umoney ($num, "RMB");
Result: one thousand and two hundred
For local, we can use Windows with the lookup to find, but for online, such as looking for FTP space inside the file, this program is very useful.
PHP file Finder source code:
php version File search (file search) file Lookup (note:
SessionPHP $_session can store the current user data information, when users visit the Web site, PHP will give each user access to create a session ID, the ID is a unique ID, saved on the client, and the user's conversation data is saved to the
Features to implement:
1, the realization of remote access and collection of content
2, the implementation of PHP Web version of FTP upload download
3, the realization of analog landing: to a mail system, curl can simulate cookies
4, the
The PHP Framework provides a basic framework for building Web applications, simplifying the process of writing Web applications in PHP. In other words, the PHP framework helps promote rapid application development (RAD), not only saves development
Description
Array Array_flip (array trans)
Array_flip () returns an inverted array, for example, the key name in trans becomes a value, and the value in trans is the key name.
Note that the value in trans needs to be able to be a valid key name,
So far, you've learned a lot about PHP. It's time to write a small program practicing.
User Registration System
Write a index.php page with user name and password form, post submit to check.php, output username and "username + password" MD5
This is a very accurate, through PHP to achieve statistics online number of methods, want to know how to achieve the patience to read.
$ftime) {$fline = $fuid. ' | '. $ftime. "
\ n ";
@fputs ($fp, $fline);
Flock ($FP, lock_un)
Why uploading large files always fails, but uploading small files is no problem. Small series also cannot its solution, the Internet search for its reasons, finishing an article on the PHP upload big file failure reasons and solutions, share to
Main technical features of Laravel:
1, bundle is the laravel expansion of the package form or address. Laravel's expansion pack warehouse is quite mature enough to help you install the expansion pack (bundle) into your application. You can choose
We use PHP extensions, the main purpose is to improve the execution efficiency of the program, for a large number of traffic code or logic to write it as an extension. In the process of doing the project, it is necessary to sort the data, the data
This example describes how PHP uses Array_merge to rearrange the array subscripts. Share to everyone for your reference. Specifically as follows:
Using a array_unique to remove the duplicates inside an array, but found that the subscript retains
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