The flower fades and the red and green apricots are small. When swallows fly, green water surrounds others.

Label: PHP

 Record an experience of converting DEDECMS to ZBLOGPHP
ZBLOG Tutorial

Record an experience of converting DEDECMS to ZBLOGPHP

Birds on the 15th floor 8 years ago (2016-07-16) 65111 Browse 1 Comments Collection

This is probably the second largest database I have visited. For the first time, a relatively large ZBLOG database conversion operation was recorded here. The number of articles was less than 2W, the number of Tags was about 2.5W, the number of categories was more than a dozen, and the number of comments was not much (all of them were hosted to the public). Because the number is too large, it is almost impossible to do general plug-ins, and it is difficult to ensure that an ok is error free. The key point is that the other program is GBK, while ZBLOG is UTF-8 coded, so

 The method of dream weaving from DEDECMS to ZBLOGPHP
ZBLOG Tutorial

The method of dream weaving from DEDECMS to ZBLOGPHP

Birds on the 15th floor 8 years ago (2016-07-16) 55039 Browse 17 Comments Collection

As ZBLOG PHP version becomes more and more perfect, thanks to its security advantages, more and more Zhimeng DEDECMS users are switching to ZBLOG. This site introduces the method of Zhimeng DEDECMS to ZBLOG PHP for the first time. Maybe you can contact me. This is a paid tutorial, which is applicable to any version of Dream Weaving. Articles, categories, tags, and comments can be completely converted. The measured data is 50000 articles, 100000 comments, and 30000 tags

 PHP formatted array output style
Web

PHP formatted array output style

Birds on the 15th floor 10 years ago (2014-09-03) 45980 Browse 0 Comments Collection

When debugging PHP programs, sometimes you don't understand what is in the PHP array. You often need var_dump to look at it. But after dumping complex arrays, they are piled up into a heap with extremely poor readability. The following code can help you. function dump($vars, $label = '', $return = false) {...

 PHP thumbnail artifact
Web

PHP thumbnail artifact

Birds on the 15th floor 10 years ago (2014-08-29) 34687 Browse 0 Comments Collection

It seems that ZBlog has not yet produced any reliable thumbnail plug-in. I found this when I was preparing for DIY and decided to share it to save time for DIY. This script can dynamically obtain and cache remote or local images, create a cache folder in the same directory, support arbitrary scale cutting and scaling, and only need to get values from the browser. Plug ins are accessed in a way like this http://doma...

 Solution to blank lines in the header of php pages
Web

Solution to blank lines in the header of php pages

Birds on the 15th floor 15 years ago (2009-11-07) 29236 Browse 0 Comments Collection

The problem occurred when modifying the program under the key page. The original program is gb2312, but the problem was found when changing it to utf-8. No matter how the page is adjusted to structure and CSS, there will be a blank line in the head. The effect is even worse under IE The reason for the problem: The notepad did not remove the bom when converting the code, resulting in a small dot in the php code, which eventually led to an empty line on the page. Solution: Use Editp

 List all dates in the year
Novice programming

List all dates in the year

Birds on the 15th floor 16 years ago (2008-12-16) 22740 Browse 0 Comments Collection

Today, I used this dd when I went somewhere to download regular files. At that time, I couldn't think of any good way to get all the dates of the year Writing on your own will kill you and make mistakes. So I searched this stuff, but I don't know anything about PHP, so I'll file it here. [code=php]//I'll list all the dates of the year// header("Content-type:text/html; c...