It always helps to post the whole code, so we know what you're talking about.
The great thing about php's safe mode that it's not safer than the normal mode and that it applies very many limitations into a programmer.
I'm assuming you are using the imagettftext() function. The [url=http://php.net/manual/en/function.imagettftext.php]php manual page[/url] is the one that has the code you are using. I've tested it, and the putenv is not needed. The text at the manual implies that it's only required for some old GD versions. You should be fine with leaving it out.
SAFE_MODE workaround
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: SAFE_MODE workaround
- we're poor!
Re: SAFE_MODE workaround
Yes, I'm using inmagettftext()...and yes that is the snippet.
I'll try to use it on my test setup without it and get back to you.
EDIT: It worked! Thanks evil!
I guess I have to update my MODX file now and XSL.
I'll try to use it on my test setup without it and get back to you.
EDIT: It worked! Thanks evil!
I guess I have to update my MODX file now and XSL.
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: No registered users and 2 guests