Home >Backend Development >PHP Problem >What should I do if the linux php verification code does not display?
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".
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!