What should I do if the linux php verification code does not display?

藏色散人
Release: 2023-03-03 09:48:02
Original
2897 people have browsed it

linux PHP verification code is not displayed because Linux does not support relative paths. The solution is to complete the path and the statement is "/usr/local/apache2/htdocs/slms/include/arial.ttf".

What should I do if the linux php verification code does not display?

Recommendation: "PHP Tutorial"

The verification code of PHP is not displayed under Linux:

I transferred the code developed under Windows to CentOS and found that the verification code could not be displayed.

Accessing the verification code page displays the following error:

Warning: p_w_picpathttftext() [function.p_w_picpathttftext]: Could not find/open font in /usr/local/apache2/htdocs/slms/include/yzm.php on line 24
Copy after login

After searching, it was found that linux does not support relative paths, sweat.

So I can only write the full path.

/usr/local/apache2/htdocs/slms/include/arial.ttf
Copy after login

The above is the detailed content of What should I do if the linux php verification code does not display?. 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!