Get the App
SLTechnology News&Howtos  ›  Servers  › 

Resolve the problem that dedecms5.7tag tags do not support uppercase letters

Shulou Source: shulou.com Published: 2022-06-02 05:45:48 10月02日 Update

Solve the problem that dedecms5.7tag tags do not support uppercase letters? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

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

Dedecms5.7tag tags do not support uppercase letter solutions

I inadvertently found that some of the tag tags in my dedecms blog were invalid. At first, I thought I had made a mistake, but I didn't understand it for a long time. Later, I inadvertently found that it was because the dedecms5.7 version of the tag tag does not support uppercase letters.

Here is the solution:

Open the tags.php file in the root directory of the website

Put the following line of code

$tag = trim ($_ SERVER ['QUERY_STRING'])

Replace it with

$tag = strtolower (trim ($_ SERVER ['QUERY_STRING']))

Note: PHP strtolower () function

Definition and usage

The strtolower () function converts a string to lowercase.

Grammar

Strtolower (string)

Parameters.

String is required. Specifies the string to be converted.

Examples

Output:

Hello world! Thank you for reading! After reading the above, do you have a general understanding of solving the problem that dedecms5.7tag tags do not support uppercase letters? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

Tags: Tags uppercase uppercase letters support questions content functions characters strings articles lines codes examples methods blogs parameters lowercase what to do situation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Xiaomi Apple Microsoft