Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [PHP] function exists in command line but not in browser

0 views
Skip to first unread message

Nilesh Govindarajan

unread,
Jul 19, 2010, 5:04:38 AM7/19/10
to Shelley, php List
On Mon, Jul 19, 2010 at 2:22 PM, Shelley <myph...@gmail.com> wrote:
> Hi all,
>
> The problem is imagettfbbox().
> jpgraph uses it to create truetype font images.
>
> I have a phpinfo() script.
>
> The command line output:
>
> php i.php | grep Free
> FreeType Support => enabled
> FreeType Linkage => with freetype
> FreeType Version => 2.2.1
>
> But when the script is loaded in the browser, the output has no such
> "FreeType Support"!
> So imagettfbbox() does not exist.
>
> Somebody could offer some suggestions??
>
> Thank you veeeeeery much.
>
> --
> With best regards,
> Shelley Shyan
> http://phparch.cn
>

Your set up is using two different INI files for command line and web.
In the phpinfo(), see Parsed Configuration File (something similar),
its at the top of the page, some four-five lines down.

--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com

Richard Quadling

unread,
Jul 19, 2010, 7:42:33 AM7/19/10
to Nilesh Govindarajan, Shelley, php List
On 19 July 2010 10:04, Nilesh Govindarajan <li...@itech7.com> wrote:
> On Mon, Jul 19, 2010 at 2:22 PM, Shelley <myph...@gmail.com> wrote:
>> Hi all,
>>
>> The problem is imagettfbbox().
>> jpgraph uses it to create truetype font images.
>>
>> I have a phpinfo() script.
>>
>> The command line output:
>>
>> php i.php | grep Free
>> FreeType Support => enabled
>> FreeType Linkage => with freetype
>> FreeType Version => 2.2.1
>>
>> But when the script is loaded in the browser, the output has no such
>> "FreeType Support"!
>> So imagettfbbox() does not exist.
>>
>> Somebody could offer some suggestions??
>>
>> Thank you veeeeeery much.
>>
>> --
>> With best regards,
>> Shelley Shyan
>> http://phparch.cn
>>
>
> Your set up is using two different INI files for command line and web.
> In the phpinfo(), see Parsed Configuration File (something similar),
> its at the top of the page, some four-five lines down.


http://docs.php.net/manual/en/configuration.file.php

Shelley

unread,
Jul 19, 2010, 4:52:20 AM7/19/10
to php List
0 new messages