Home  >  Article  >  CMS Tutorial  >  What should I do if the dedecms5.7 tag tag does not support uppercase letters?

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

藏色散人
藏色散人Original
2019-11-19 10:45:511681browse

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']);

with

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

Recommended learning: dedecms tutorial

Comments :PHP strtolower() function

Definition and usage

strtolower() function converts a string to lowercase.

Syntax

strtolower(string)

Parameters

string Required. Specifies the string to be converted.

Example

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

Output:

hello world!

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!

Statement:
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