Because the tool requires us to write a function that can generate random strings. I think there should be a lot of such random string generation functions on the internet. Baidu has a bunch of functions. below I will summarize them for you.
Because
Find people nearby based on latitude and longitude
$uid =$_post[uid];
if ($uid >0)
{
$re =mysql_query ("Select ' Lat ', ' long ' from Pre_common_member where uid= ' $uid '") or Die (Mysql_error ());
$row
Now the site, there will always be a little interaction with the user features, such as allowing users to upload avatar, upload photos, upload attachments such as. PHP writes a program that is not very efficient for uploading files.Fortunately,
It is much easier to query words by installing the interstellar translation king. If there is another reading function, just read the words directly. Otherwise, it will become a dumb English, when I installed my laptop, I could read the words
Because of the daily build requirements, you need to download the code with a script to automate the compilation, which is a small piece of functionality throughout the system.#!/bin/bash# @author liuyang# @date 2015-06-23function Help () {echo '
Engine files
Copy CodeThe code is as follows:
/**
* The OOP class template engine developed silently based on the Discuz template engine can support template caching and generate hash MD5 values. By the hash value to determine whether the template
Before that, I tried a project to automatically generate the so extension for our PHP code and compile it into PHP. my name is phptoc. However, the project is suspended for various reasons. I wrote this article because there are too few materials in
Php calls your own java (convert) ----------------------------- recommended method: JavaBridge. jarsourceforge. netprojectsphp-java-bridgemirror.optus.netsourceforgepphphp-java-bridgephp php calls your own java (convert)
-----------------------------
Json parsing: I have solved the problem that json_encode cannot pass Chinese characters. in the case of gbk encoding, how can I use the json_decode () function to parse it? PHPcodefunctionarrayRecursive (& amp; $ array, $ function, $
How to transcode a string to urlencode directly using urlencode? the result is a string instead of the following: % 6E1% 7A % 62% 2F % 6D % 615% 5C % 76% how can an English character be converted to this sharing: how can a string be transcoded into
I want to read the second $ in a.txt. how can I get the data between the third $ and the third $? thanks !!! & Nbsp; ------ solution ------------------ $ fp & nbsp; fopen (filename, & nbsp; r); $ num & nbsp; 0; $ s & PHP reading TXT text
I want to
Two-dimensional code
After scanning, parsing is garbled.
After the UrlEncode is the following content
%c2%b0%c3%99%c2%b6%c3%88%c2%b0%c3%99%c2%bf%c3%86%c2%a3%c2%ad%c2%b6%c3%be%c3%8e%c2%ac%c3%82%c3%ab%c2%b4%c3%8a% C3%8c%c3%b5
I use scans to parse, but
How is double-byte hexadecimal converted to decimal form?
For example: 0xFFFFFFBF;
Hexdec function conversion is treated as 4 bytes
Reply to discussion (solution)
$s = 0xffffffbf;echo $s; 4294967231$s = ' FFFFFFBF '; Echo hexdec ($s);//429496
A few days ago a friend wanted to get thinkphp all the functions and class definitions of the document. It's really a lot of trouble to sort it out manually.
To do this, a program is written using the reflection function of PHP.
Welcome to shoot
What is the meaning of braces {} in php. 1. {} indicates the start and end of the program block. for example, the code for copying code is as follows: if ($ x $ y) {do_nothing ();} 2. {} is used to indicate the string subscript. for example, $1 and {
Help solve the array problem! (Cainiao...) that is to say, the current data of a variable $ p is 221,567,568,569,572,573,140, 1723, 1724,1725, 1726,1727, 1728,1729, 1730,1731, 1732,1733, 2586,13587 & nb to help solve the problem of! (Cainiao asked ..
Using Imagick in PHP to convert PDFs into pictures,
PHP Manual, the description of Imagick, is really concise, each member function, click Open to see the following text:Copy CodeThe code is as follows:WarningThis function was currently not
1. If a method can be static, declare it static. Speed improvement are by a factor of 4. If a method is static, it is statically declared. The rate can be increased to 4 times times.
2. Echo is faster than print. echo is faster than print.
3. Use
When PHP reads the last line of a large file, the file function does not.
Reply to discussion (solution)
You can specify the last position with fseek and then read ahead.such as Fseek ($FP, -1,seek_end), and ran to the bottom line.
20130721
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.