PHP generates random strings
You can specify whether it is a pure number or a pure letter or a mixture.
You can specify the length of the.
Copy CodeThe code is as follows:
function Rand_zifu ($what, $number) {
$string = ";
for ($i = 1; $i
Note the area to Transcode
Baidu AK Application Address: Http://lbsyun.baidu.com/apiconsole/key
Copy the Code code as follows:
$city = "Jiaxing";$content = file_get_contents ("http://api.map.baidu.com/telematics/v3/weather?location=%e5%98%89%e5%
But now this article may contain some expressions, we certainly can not directly extract src Road strength, so if the first is an expression picture, will extract the expression image as the cover, this time we need to write clear regular to exclude
PHP5.5 How to install memcached under Windows
Download server-side Resources
http://download.csdn.net/detail/zsjangel/7104727
After the download is complete, unzip (I am using 64-bit, 32-bit version of I did not try, should be no problem), into the
example, PHP Baidu weather Thief program.
Copy CodeThe code is as follows:
Get the weather information of the search for XX (place name) weather crawl inside Baidu
$url = "Http://www.baidu.com/s?wd=%B1%B1%BE%A9%CC%EC%C6%F8"; This is to search for
As described in the Yii documentation, the general process in which yii processes the form is:
In just a small project, want to use AJAX to submit form information and verify the save, do not want to use the hidden iframe to do no-refresh commit,
Product and CMS content, is an uncertain specific properties of things, different types of goods, with different attributes, specifications, and the rules can also affect the price, from this point of view, than the content of the CMS is more
In PHP, it is common to add elements like arrays to the Array_push function, which is the stack operation of the array, but the function is to add elements to the end of the array, if you need to press the array elements into the array's head (that
Many people like to DIY their microblog on the website, so I wrote one too.
The micro-hirohide address in the Sina Weibo tool is directly captured here.
Copy the Code code as follows:
Set_time_limit (0);$url =
Use CodeIgniter (CI) to do the site's friends should be found that any URL of the site by default will bring a index.php, this from the perspective of SEO, the impact on the site is not small, but the URL of the beautiful, this is very uncomfortable,
In PHPCMS2008, each column can be assigned to different roles of different permissions, is based on the column as the starting point, and our general situation from the role of the starting point is not right, so it does not go to achieve the
First, open and use the Smarty cache
To turn on the Smarty cache, simply set the caching to true in the Smarty settings parameter and specify Cache_dir. Setting the Cache_lefetime parameter at the same time specifies the cache lifetime (in seconds)
thinkphp printing the last SQL statement is a very common use, in the process of debugging code is often used, because the memory is not very good, in this note, convenient for later use.
The following is also a sample record
$form =m (' user '),
Some days ago a friend lost a shell to me, let me help to decrypt, open the source read the following is "God Shield Encryption", the appearance of a brilliant,
Baidu under the discovery of the aegis is a very old thing, the last update was in 2012-1
Use the Array_rand () function to randomly select one or more elements from an array and return.
Copy CodeThe code is as follows:
Array_rand (Array,number)
Parameter description
Array required. Specifies the input array parameters.
Number is
Thinkphp built-in template engine is a self-innovative XML-compiled template engine, below a case to share some thinkphp built-in template engine commonly used template tag usage, including variable output, loop, judgment, comparison, etc., these
Just start learning thinkphp framework, the following will be thinkphp Action controller can be directly used in the system constants to do a summary, easy to remember the direct use.
Think_path//thinkphp system directory
App_path//Current project
Apache the same IP configuration of multiple domain names, do web development should be very familiar with, but still summed up to prevent later forget!
Here's how it's done:
1. Installing the Apache Configuration virtual directory under Windows2003
In order to save time later, a class that operates SQL statements is encapsulated today, where it is saved and used later.
File name of this class: SqlTool.class.php
There are mainly DQL and DML two functions
Look at the following source code "
PHP Imperial cms file directory naming is very weird, took over a modification of the Imperial CMS, found a half-day did not find the configuration file where, really ashamed, search, share out with the same can not find the profile of friends
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