Home >Backend Development >PHP Problem >What should I do if the linux php verification code does not display?

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

藏色散人
藏色散人Original
2020-07-25 09:31:012983browse

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

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

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!

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