You need to modify the attachment.php file in the root directory
In $attachexists = $ispaid = FALSE;
if (!empty ($checktwo)) {
Add at the end of the?>
} else {
echo "";
echo "
";
}
I set up discuz! on this machine. 5.0.1 Debugging passed the
The
Definition and Usage
The Str_replace () function replaces some other characters in a string with a string.
GrammarStr_replace (Find,replace,string,count)
Parameter description
Find required. Specifies the value to find.
Replace Required.
The latest plan to learn PHP, found a lot of functions need to use, can write their own trouble, so find the next PHP commonly used functions, from the big PHP system down, is definitely the use of PHP utility function
Copy CodeThe code is as
Note: All of the following functions do not use a regular.
The above is to remove the first matching three functions for the same purpose
Copy CodeThe code is as follows:
function Str_cut ($str, $start, $end) {//Remove first match, highest
Field Name field type description
ID Integer ID
Depart varchar (45) Department name
ename varchar (45) Employee name
Pcname varchar PC Name
IPADDR varchar IP Address
Pcmodel varchar PC model
PCSN varchar PC Serial number
Displaymodel varchar (45)
A. php file that contains the program start character (), and the specific code is placed between the start character and the Terminator. In order to facilitate later modification and program reading, the customary code should be in accordance with
For a cookie, if we want to verify that the user is logged in, we must save the user name and password in the cookie (possibly the MD5 encrypted string) and verify it each time the page is requested. If the user name and password are stored in the
The related setting is to modify the Date.timezone parameter in php.ini:
[Date]
; Defines the default timezone used by the date functions
;d Ate.timezone =
The default is off, just remove the comment, you can
[Date]
; Defines the default timezone
In the PHP4.0 added to the session support, convenient for many of our programs, such as shopping cart and so on!
In many forums, the session is also used to process the user login, record the user name and password, so that users do not have to
Home Four: Latest topics + Latest replies + Hot Topics + Essence article for DZ5.5 Official edition
Applicable version: discuz!5.5 official version
Change Difficulty: Easy
Database Upgrade: None
Demo Website: http://fhxye.cn/
Author: I just modified
A successful development team requires each member of the team to adhere to code reuse rules that push the reusability of the code to the extreme without significantly reducing the developer's creativity and development efficiency. If the developer
phpMyAdmin Introduction
phpMyAdmin is a PHP-based program that can control and manipulate MySQL over the internet. With phpMyAdmin, you can fully manipulate the database, such as setting up, copying/deleting data, and so on.
Installation
The database stores approximately hundreds of thousands of IP records, with the following record set:
+----------+----------+------------+---------+---------+--------+--------+
| Ip_begin | Ip_end | country_id | prov_id | city_id | isp_id | Netbar
mysql4.1 client does not support authentication protocol problem resolution when connecting over version
shell> MySQL
Client does not support authentication protocol requested
by server; Consider upgrading MySQL client
The official argument is that
and the RSS feed of the Help net is on the basis of this program to do a little transformation, the main
If an array string is output and the encoding problem is resolved.
The PHP source code and code are explained in detail as follows:
RSS Feed
I send the code all for my original, and applied in a number of projects. I often use php+mysql pagination code
Copy CodeThe code is as follows:
$perpagenum = 10;//definition shows several pages per page
$total = Mysql_fetch_array (mysql_query
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