IP address location in thinkphp, including IP address library file
a few days ago, the study of the TP in the IP address location, really cost some time, now solved, share to everyone.
IP Address Library A bit large, go here to
Fix PHP generated UTF-8 encoded CSV file with Excel open garbled problem
Wrote
In fact, this problem has been encountered long ago, should be unresolved, then the situation is OpenOffice open Normal and Excel open not normal, and later did not solve,
How to get rid of the back 0
10000000000 becomes 10
10020000000 becomes 1020
10020030000 becomes 102030
How does this come true?
------Solution--------------------
echo preg_replace ('/0+$/', ' 0 ', 10020030000);
------Solution--------------------
Phpmailer email problem, server connection not on
e-mail with Phpmailer, there are two errors ...
1.
When you bring your own code with the Phpmailer document, use the gmail,sohu,126 ... to not connect to the server
But later with QQ mailbox, can
Add general extensions such as mbstring extensions for PHP
Note: The default generated extension.so directory is/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/Set the Extension_dir directory to point to it
Environment php5.2.14,
PHP garbled how to solve. It's like Zend encryption.
PHP garbled how to solve. The code is as follows:
Zend20020623011394613886xù
? 2õklõõ6ñ "øedç®? N!?? Ø?¹ówò? Ç$?$®?-r²èëó{cûåïcþã? R? Øtxu䪢u¥ij²¨?
"|-iew¨pu¤.ªªê¹÷îü¹??" ‰ê¢ ' àö?sïüsîùß3$)
A question about PHP to execute the MySQL statement, the head is quick to blow up, beg predecessors!
PHP to add the user's MySQL statement, ask the elder pointing ah, I did not do a good night, as follows [post acquisition]
Add $user user to
Please Teach the heroes! HTTP Error (Internal Server error)
My local server, in the opening of the site when a hint, can't open any page,
HTTP Error (Internal Server error): An unexpected condition is encountered while the server is attempting to
Which hero can tell me what the return value of __call () in PHP is! ~~
Class my{
Public $name = "My Class";
function __tostring () {
Return $this, name. is an empty class "."
";
}
function __call ($n, $v) {
echo "Method not present:" $n.
Questions about calling Lucene (JAVA) code in PHP
Recently want to use the Web page to display the results of Lucene search, the web said with PHP and Javabridge can, but I use the javabridge inside the example or the class I
Windows2003 problems starting with the nginx+php service I can only start with such batches now, but a logoff user will stop working. Start_nginx.bat [Co
Windows2003 using the nginx+php service to start a problem
I can only start with such a batch
1. Installation Configuration Apahce
Installation configuration Apache is relatively simple, followed by the Installation Wizard will be able to take a step down. At most, you need to be aware of where to configure the port, if you have installed
Please download the Snoopy class first
Copy CodeThe code is as follows:
/*** Public Platform PHP-SDK* Wechatauth for unofficial Login API* Users to access the QR code provided by scanning the Web page to achieve the landing information* The main
The PHP upload files often encountered several problems summed up, later use will not have to look for.
1. Make a simple upload file first
Copy the Code code as follows:
Copy the Code code as follows:if (($_files["File" ["Size"] {if
MD5 using md5sum recursively to generate the entire directory under Linux
Today to use md5sum operation directory, recursively generate all the files in the directory MD5 value, the results found that it does not support recursive operation and then
Always wanted to write this, after a long time today interest came to simply record.
Verification Code
Fully automatic distinguish between computer and human public Turing Test (English: Completely automated publicly Turing test to tell Computers
Using PHP to develop applications, especially Web applications, often requires the generation of random passwords, such as user registration to generate random passwords, user reset password also need to generate a random password. Random password
First show you the message board:
Recently read PHP basic grammar, want to use these basic things to implement the message board, but also a solid foundation of knowledge.
What is a message board? A carrier that can be used to record and display
I am also a novice php, through W3cschool to understand the basic principles of PHP after the write. But still rookie.
First, regardless of 3DES encryption method is right, methods are online, in the run time reported a mistake, the younger brother
In the latest Zend Framework 2.0, a large number of php5.3 closure features have been introduced. You can initialize a module by introducing a closure in the configuration file. (See: Http://packages.zendframework.com/doc ... )
However, the
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