[PHP] Gd2 Fonts

2004-07-23 Thread Alexandru Boulescu
Hi,
I'm a newbie to linux and I have a question related to gd2 and ttf fonts 
under this operating system.

I hava a php script that writes a text on a picture using functions like 
and i don't know how and where to install ttf fonts for this script to 
work. i've tried to put them in the same dir as the script and also in 
other dirs that contained ttf files and it didn't work.

Also another question: is there a way to find a list with email accounts 
on a server using PHP. I want to be able to delete accounts, change 
passwords, etc.

Can anyone help me with that or is there an appropriate mailing list 
that deals with that kind of problems (probably linux?)

Thanx,
Alex.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Gd2 Fonts

2004-07-23 Thread Jason Wong
On Friday 23 July 2004 14:37, Alexandru Boulescu wrote:

 I'm a newbie to linux and I have a question related to gd2 and ttf fonts
 under this operating system.

 I hava a php script that writes a text on a picture using functions like
 and i don't know how and where to install ttf fonts for this script to
 work. i've tried to put them in the same dir as the script and also in
 other dirs that contained ttf files and it didn't work.

1) How exactly did your script not work?
2) what did the php error log say?

I will hazard a guess - you need to specify the full path to your font file. 
However somewtime between version 4.3.2 and 4.3.4 this requirement was 
dropped.

 Also another question: is there a way to find a list with email accounts
 on a server using PHP. I want to be able to delete accounts, change
 passwords, etc.

Please ask different questions in separate posts. A quick answer to this would 
be: it is completely dependent on your mailserver setup. You should learn 
more about your mailserver first.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I'd love to go out with you, but the man on television told me to say tuned.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD2 Fonts

2003-11-28 Thread Catalin Trifu
Fonts,

I am trying to use imageloadfont($PATH_TO_FONT . '/arial.ttf'); on a
windowze
machine. It fails without any error message.
Now, the font I use is the one from the windows Fonts/ dir.
I have also installed the freetype extension.
Can anyone tell me how they do it with fonts on windowze.
Please don't tell me to use Linux (i know that ;)).

Thank you,
Catalin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD2 Fonts

2003-11-28 Thread Jason Wong
On Friday 28 November 2003 15:33, Catalin Trifu wrote:
 Fonts,

 I am trying to use imageloadfont($PATH_TO_FONT . '/arial.ttf'); on a
 windowze
 machine. It fails without any error message.
 Now, the font I use is the one from the windows Fonts/ dir.
 I have also installed the freetype extension.
 Can anyone tell me how they do it with fonts on windowze.
 Please don't tell me to use Linux (i know that ;)).

In all cases that I have come across when I had problems loading fonts, PHP 
spat out an error. I suggest that you turn on FULL error reporting and look 
for the error.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Once harm has been done, even a fool understands it.
-- Homer
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php