Home > CMS Tutorial > DEDECMS > body text

What should I do if the dedecms5.7 tag tag does not support uppercase letters?

藏色散人
Release: 2019-11-19 10:45:51
Original
1672 people have browsed it

What should I do if the dedecms5.7 tag tag does not support uppercase letters?

dedecms5.7 What should I do if the tag does not support uppercase letters?

dedecms5.7 tag tag does not support uppercase letters solution

I accidentally discovered that some tag tag clicks in my dedecms blog were invalid, and I initially thought it was I made a mistake in the tag, and I tried to correct it for a long time but didn’t figure it out. Later I accidentally discovered that it was because dedecms5.7 version tag tag did not support uppercase letters;

Here is the solution:

Open the website root Directory’s tags.php file

Replace the following line of code

$tag = trim($_SERVER['QUERY_STRING']);
Copy after login

with

$tag = strtolower(trim($_SERVER['QUERY_STRING']));
Copy after login

Recommended learning: dedecms tutorial

Comments :PHP strtolower() function

Definition and usage

strtolower() function converts a string to lowercase.

Syntax

strtolower(string)
Copy after login

Parameters

string Required. Specifies the string to be converted.

Example

<?php echo strtolower("Hello WORLD!"); ?>
Copy after login

Output:

hello world!
Copy after login

The above is the detailed content of What should I do if the dedecms5.7 tag tag does not support uppercase letters?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!