A large network company when applying for a written question with answers _php tips
Source: Internet
Author: User
1, there is a forum, a large number of posts, please briefly explain how to improve the efficiency of user search posts.
On the program side, you can use page caching techniques. In front of the interface design can also allow users to enter more keywords, such as the title of the post, the person's ID, time, etc., this can greatly improve the efficiency of the search.
Cached, both the template cache and the local cache can be
2, in the blog users automatically bind after registration: User name. mmosite.com Such a level two domain name, please briefly say the solution.
Can use two IIS sites, one is the main station, one is the domain name jump
Sites for jumps you must add an empty host header in IIS (default site)
The following points are also required:
1. Pan-domain name resolution, will *.yourdomain.com to your Web server's IP address
2. In the domain name jumps the website the default page edits the program, obtains the *.yourdomain.com the value of the *, jumps to the main station
$_server[' Htt_host ']; Based on this query, the database will do.
3, please use the PHP script to parse out the
Http://srfi.schemers.org/srfi-28/mail-archive/maillist.html
All the emails that appear in this page are saved to the array.
Preg_match_all \w+@ ([\w\.] +) on the line
4, use JavaScript script to write down the following functions. There is a page with two image ads, when users visit this page, press the probability of 1% randomly click on two ads in one ad.
parseint (Math.random () *100) ==1
5, there is an article contains Chinese and English characters, now need to be the article in the English words all extracted. For example, the following text:
RF Online has been officially rele button work ased for
The result of the extraction should be:
RF
Online
Has
been
Officially
Rele
ased
For
Please write this function in C language.
Preg_match_all \w+
C language is also simple, Assoc range judged on the line
6, please use the Linux shell (Bourne Again Shell) script to write the following features required:
Now there is a directory/video/temp/to store the video files uploaded by the user, this directory is temporary now we need to periodically transfer this directory file to/video//below, please write out the script
#!/usr/bin/php-n
foreach (Glob ("/video/temp/") as $file) {
Copy ...
}
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