Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/a2424901/public_html/index.php on line 35

前端 未结 10 2046
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 21:02


        
10条回答
  •  南笙
    南笙 (楼主)
    2020-12-03 21:48

    On GoDaddy (shared hosting, Cpanel), I have to specify the path only after the domain:

    My files are here:

    URL:  http://example.com/assets/fonts/verdana/verdana.ttf
    path:  /home/content/123456/html/example/assets/fonts/verdana/verdana.ttf
    

    PHP code which works:

    $font = 'assets/fonts/verdana/verdana.ttf';
    

    Using other values for the path did not work.

提交回复
热议问题