php-general Digest 8 May 2004 15:50:06 -0000 Issue 2751
Topics (messages 185700 through 185709):
Re: Graphical calendar
185700 by: David T-G
185703 by: Manuel Lemos
185709 by: Todd Cary
Re: page_title
185701 by: John W. Holmes
185706 by: Kim Steinhaug
Re: SMTP and changing the character set
185702 by: Chris
185705 by: Dave G
185708 by: Todd Cary
PHP5 RC2 Spec file
185704 by: Aidan Lister
185707 by: Aidan Lister
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 ---
Todd --
...and then Todd Cary said...
%
% I need to bring up a calendar so the user can determine what day of the
...
% Is there a simple graphical calendar where the use can pick a month and
% see the days of the week?
I don't know (though that makes sense), but you could always rip the
calendar code out of any of those mainstream apps. I use Craig Knudsen's
WebCalendar (http://www.k5n.us/webcalendar.php) and it has preview
calendars for last month and next month that would probably do a great
job for you.
%
% Todd
HTH & HAND
:-D
--
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00000.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Hello,
On 05/07/2004 11:36 PM, Todd Cary wrote:
I need to bring up a calendar so the user can determine what day of the
week a certain falls on, etc. My search with Google appears to have
calendars that are like appointment books.
Is there a simple graphical calendar where the use can pick a month and
see the days of the week?
You may want to try this class that does precisely that:
Class: Calendar generation class http://www.phpclasses.org/calendargenerator
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--- End Message ---
--- Begin Message ---
Which table_class is to be used with the calendar class?
Todd
Manuel Lemos wrote:
Hello,
On 05/07/2004 11:36 PM, Todd Cary wrote:
I need to bring up a calendar so the user can determine what day of
the week a certain falls on, etc. My search with Google appears to
have calendars that are like appointment books.
Is there a simple graphical calendar where the use can pick a month
and see the days of the week?
You may want to try this class that does precisely that:
Class: Calendar generation class
http://www.phpclasses.org/calendargenerator
--- End Message ---
--- Begin Message ---
Erik Gjertsen wrote:
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
$page_title = "Welcome";
Hmmm... you're title doesn't show up? Are you using sessions? Is
safe_mode on or off? Is html_title_mode on or off in your php.ini file?
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
Is it me or is the sollution here incredible simple?
<?php
$page_title = "Welcome";
?>
<head>
<title><?=$page_title?></title>
--
--
Kim Steinhaug
----------------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
----------------------------------------------------------------------
www.steinhaug.com - www.easywebshop.no - www.webkitpro.com
----------------------------------------------------------------------
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Erik Gjertsen wrote:
>
> > <head>
> > <title></title>
> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> > </head>
> >
> > <body>
> > <?php
> > $page_title = "Welcome";
>
> Hmmm... you're title doesn't show up? Are you using sessions? Is
> safe_mode on or off? Is html_title_mode on or off in your php.ini file?
>
> --
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
SMTP, just like HTTP, uses the Content-Type header. So you can do something
like this:
Content-Type: text/plain; charset=US-ASCII
Just add that to the header argument of the mail function, if that's what
you're using.
Chris
-----Original Message-----
From: Todd Cary [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 4:51 PM
To: [EMAIL PROTECTED]
Cc: Kim Wagner; Brian Feifarek; Gus Scherer
Subject: [PHP] SMTP and changing the character set
Is there a way to specify a character set in a SMTP email?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Todd,
> Is there a way to specify a character set in a SMTP email?
I've found that SMTP is really, really very particular about how you
apply spacing and carriage returns when passing a content type header
from PHP. In the PHP mail() function, you want to add the content type
header like so:
<?php
$contentType = " \r\nContent-Type: text/plain; charset=UTF-8";
mail($toaddress, $subject, $mailcontent, $contentType);
?>
In particular, take note of the space before \r\n. Without it, the
content type header would not work. I had to do a lot of experimenting
before I discovered this. You may have to some experimenting as well, as
I'm not sure if all servers behave the same on this issue.
Hope that helps.
--
Yoroshiku!
Dave G
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Thank you both for the help. One more question: can SMPT use the Asian
character set since it is 16 bits?
Todd
Dave G wrote:
Todd,
Is there a way to specify a character set in a SMTP email?
I've found that SMTP is really, really very particular about how you
apply spacing and carriage returns when passing a content type header
from PHP. In the PHP mail() function, you want to add the content type
header like so:
<?php
$contentType = " \r\nContent-Type: text/plain; charset=UTF-8";
mail($toaddress, $subject, $mailcontent, $contentType);
?>
In particular, take note of the space before \r\n. Without it, the
content type header would not work. I had to do a lot of experimenting
before I discovered this. You may have to some experimenting as well, as
I'm not sure if all servers behave the same on this issue.
Hope that helps.
--- End Message ---
--- Begin Message ---
Hi guys,
I'm trying to compile a PHP5 RC2 RPM, does anyone know where I can get a
SPEC file from?
--- End Message ---
--- Begin Message ---
Found it, it's generated by ./configure (I think)
"Aidan Lister" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi guys,
>
> I'm trying to compile a PHP5 RC2 RPM, does anyone know where I can get a
> SPEC file from?
--- End Message ---