php-windows Digest 14 Jan 2002 09:04:08 -0000 Issue 951

Topics (messages 11411 through 11418):

Re: How to generate bitmaps containing truetype fonts?
        11411 by: Emile Bosch

Re: Setting up an XML platform/website
        11412 by: Manuel Lemos
        11416 by: Florian Luethi

compare and get difference between two dates
        11413 by: Byron Bignell
        11415 by: Ross Fleming
        11417 by: Byron Bignell

Help with mail function
        11414 by: Calcware
        11418 by: brother

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
how about checking the php manual for gd..
it's something with ttf
uh...

ttftext or something..

yes. u can use truetypes


"Florian Luethi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'd like to build a script that generates bitmaps for a navigation bar.
> I only reached to draw post script fonts and to write a .png file. But I'd
> like to use true type fonts instead and to write the bitmaps as .gif
files.
> Can anybody give me a hint? Is there a tool that converts .pngs to .gifs?
Is
> it possible to use truetypes?
>
> Thanks!
>
>


--- End Message ---
--- Begin Message ---
Hello,

Emile Bosch wrote:
> 
> Is anyone interested in setting up an XML platform for PHP, where the use of
> XML is explained, with sample PHP/XML applications and in-depth real live
> tutorials? Since lot's of people underestimate the power of XML. Maybe, it's
> nice to be ready when Microsoft's dotNet crashes in and launches an new XML
> era.

There are good and bad reasons for using XML.

IMHO, bad reasons are:

- It is the latest Internet mania (manias go as quickly as they came)
- Microsoft is advertising it for .Net or whatever (XML was already
useful before Microsoft had seen its potential)
- Extracting data from database in XML to process or show it in some
other format (XSLT)

Good reasons are:

- You need a data format for storing hierarchical data (documents,
configurations, etc...)
- You need a data format for exchanging system independent data (Web
services)
- You need to show abstract data in a human readable format

Going to XML because of the first reasons is technically silly although
a lot of people are buying into XML because of reasons like that.
 

> Anyone wants to help building such an platform/website?

You may want to look into this PHP Classes repository section before you
bother to duplicate any efforts:

http://phpclasses.upperdesign.com/browse.html/class/4

Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
Why not. I'm a graphics designer, and I haven't got much to do at the
moment, and I need some finger work. I'm not a PHP crack, but I can do the
graphics and HTML code for you, and too I think it's a good way to for me to
get used to PHP as well.

Sincerely,
Florian


"Emile Bosch" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is anyone interested in setting up an XML platform for PHP, where the use
of
> XML is explained, with sample PHP/XML applications and in-depth real live
> tutorials? Since lot's of people underestimate the power of XML. Maybe,
it's
> nice to be ready when Microsoft's dotNet crashes in and launches an new
XML
> era.
>
> Anyone wants to help building such an platform/website?
>
> Sincerly,
> Emile
>
>


--- End Message ---
--- Begin Message ---
Ok.

New as I am to PHP I need to ask this.  How does one compare two dates and 
return the difference in years, months, days, hours, minutes and seconds?

Byron



       \/
     @@||=-
-=|| bEe ||=-

*----------------------------------*
| >> The Virtual Village BBS       |
| >> Coming back soon. Stay tuned. |
*----------------------------------*
    --> Nature hates to vacuum. <--
--- End Message ---
--- Begin Message ---
>From the manual: see the time functions at
http://www.php.net/manual/en/ref.datetime.php specifically the gmmktime()
function.  Give it a date and it will tell u how many seconds have elapsed
since after the Unix Epoch (1/1/1970 00:00).  So gmmktime both the dates in
question and you'll have two values in seconds.  Subtract to get the number
of seconds between them.  Working out the days etc is just simple maths
after that.

Asking for the number of months to be included is ambiguous, how long is a
month?... :)

R

-----Original Message-----
From: Byron Bignell [mailto:[EMAIL PROTECTED]]
Sent: 13 January 2002 20:59
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] compare and get difference between two dates


Ok.

New as I am to PHP I need to ask this.  How does one compare two dates and
return the difference in years, months, days, hours, minutes and seconds?

Byron



       \/
     @@||=-
-=|| bEe ||=-

*----------------------------------*
| >> The Virtual Village BBS       |
| >> Coming back soon. Stay tuned. |
*----------------------------------*
    --> Nature hates to vacuum. <--

--- End Message ---
--- Begin Message ---

>I know I'm gonna get glamed for this, but ColdFusion has a nice datediff() 
>function...give it two dates and get get back the difference in years, 
>months etc...

I suppose I could something to do this...like I had to for JSP...



B


       \/
     @@||=-
-=|| bEe ||=-

*----------------------------------*
| >> The Virtual Village BBS       |
| >> Coming back soon. Stay tuned. |
*----------------------------------*
    --> Nature hates to vacuum. <--
--- End Message ---
--- Begin Message ---
My hosting company is running IIS version 5.0.  Whenever I try to use the
mail() function, I get a "Warning:Server error".

Does anybody know how to correct this issue?


--- End Message ---
--- Begin Message ---
Maybe they haven't set the mailstuff in the php.ini file?

/bro.

> -----Original Message-----
> From: Calcware [mailto:[EMAIL PROTECTED]] 
> Sent: den 13 januari 2002 23:10
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Help with mail function
> 
> 
> My hosting company is running IIS version 5.0.  Whenever I 
> try to use the
> mail() function, I get a "Warning:Server error".
> 
> Does anybody know how to correct this issue?
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 
--- End Message ---

Reply via email to