Dedecms shows the modification method of the digital verification code. it is annoying to enter the letter verification code, especially uppercase letters. Then find the file and modify it to a digital verification code.
Modify the file
Pagination in PHP
// Establish a database connection
$ Link = mysql_connect ("localhost", "root", "wyh7ye ");
; // Obtain the current page number
Mysql_select_db ("test", $ link );
If (isset ($ _ GET ['Page'])... {
$ Page = intval ($ _ GET ['Page']);
Automatically generate the [PHP version] of the summary code. implement the following content: truncate a piece of text containing HTML code without blocking.
Note: This is a PHP version used on the server. if you need a client version, read the
Solve some problems of generating static and dynamic pages by using dede and the dynamic methods for generating train collection data into the database --------------------------------------------------------
Wind 13 is out of date
Reprinted, please
An entry-level phpClass article has just browsed the homepage update of the article on the Class (refers to the http://www.phpe.net/articles/389.shtml of PHPE), very good, it is recommended to look.
Exploration of classes ~~ It took me half a year
The str_replace function in php is summarized to facilitate string replacement. String replacement.
Syntax: string str_replace (string needle, string str, string haystack );
Return value: string
Function type: data processing
Description
This
Permission design for implementing permission algorithms in php
There are probably several modes:
User + group + Role + permission
User + group + permission
User + Role + permission
User + permission
I recently read other people's design methods.
Discuz security question algorithm my friend today asked me if I could spare the answer to the discuz security question. Or crack, I have noticed a password before. I only remember that it was very short. I thought it was the MD5 obtained by substr,
China webmaster station ForDede4.0 collection rules reprint please indicate out of im286.com, this post address: http://www.im286.com/viewthread.php? Tid = 1991813
The acquisition rule For Dede4.0 on the Chinese webmaster station is outdated in just
Implementation of Discuz board horizontal display image
Implementation of Discuz board horizontal display image _ php skills
Find discuz.htm in the template you are currently usingFind the code:
$forum[name] {lang forum_threads}:
Improving php framework performance step by step I. problems with the current framework
Currently, mainstream frameworks such as Zend Framework and Cakephp all adopt the MVC pattern and implement URL routing allocation. For example. In this way,
This article introduces some techniques to defend against PHP Trojan attacks, so that you can better prevent Trojans. 1. prevent jumping out of the web Directory
First, modify httpd. conf. if you only allow your php script program to operate in the
Str_replace replacement vulnerability in php functions
Definition and usage
The str_replace () function uses one string to replace other characters in the string.
SyntaxStr_replace (find, replace, string, count)
Parameter description
Find is
We all know that Dedecms supports [field: senddate function = "strftime ('% y-% m-% d % H: % M', @ me) "/] in this way, you can use the function in the tag to call the relevant function to re-process the content returned by the current tag and then
I found a problem when writing a script that is not complex. Let's talk about the code first. its main function is to use PHP to determine whether to generate a piece of Javascript and use cookies to record the status.
The code is as follows:
/*
For Forum applications, we automatically add copyrights when downloading files. this is an idea. asp is the same principle. when downloading an attachment, we add the website name before the attachment name, that is, when downloading the file to the
Php verification code
The code is as follows:
// File header...Header ("Content-type: image/png ");// Create white paper with true color$ Im = @ imagecreatetruecolor (50, 20) or die ("image creation failed ");// Obtain the background color$
I believe that the free PHP space applied for on the internet is generally unavailable for beginners, so one of our solutions to data processing is to use text files. But what method can be used to process text data as quickly and conveniently? In
50 suggestions for optimizing PHP code. if you are a friend of php, you can check the suggestions to improve php efficiency. 1. if you can define the class method as static, try to define it as static, it will increase the speed by nearly four times.
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