[PHP] PHP5 RC2 Spec file

2004-05-08 Thread Aidan Lister
Hi guys,

I'm trying to compile a PHP5 RC2 RPM, does anyone know where I can get a
SPEC file from?

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



RE: [PHP] SMTP and changing the character set

2004-05-08 Thread Dave G
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:



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]

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



Re: [PHP] page_title

2004-05-08 Thread Kim Steinhaug
Is it me or is the sollution here incredible simple?





-- 
-- 
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:
>
> > 
> > 
> > 
> > 
> >
> > 
> >  > $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

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



[PHP] Re: PHP5 RC2 Spec file

2004-05-08 Thread Aidan Lister
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?

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



Re: [PHP] SMTP and changing the character set

2004-05-08 Thread Todd Cary
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:

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.

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


[PHP] Re: Graphical calendar

2004-05-08 Thread Todd Cary
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


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


php-general Digest 8 May 2004 15:50:06 -0000 Issue 2751

2004-05-08 Thread php-general-digest-help

php-general Digest 8 May 2004 15:50:06 - 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!



pgp0.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:






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?





-- 
-- 
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:
>
> > 
> > 
> > 
> > 
> >
> > 
> >  > $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 characte

[PHP] Problems with very special characters

2004-05-08 Thread Wouter van Vliet
Hello everybody,
 
I'm back! (been a subscriber here before, a while ago .. was quite an active
one at that time .. ;)) .. and I'm back for a reason, having a very wicked
problem. The setup is one RedHat linux 9 machine (called "s007"), previously
in use as both our web and database server. As traffic increased
dramatically earlier this week, we had to grab another server, running
RedHat Fedora. We'll call her "s006", and use to serve the webpages. All
happened very quickly and smooth for most of it. Only currently still
existing problem has (appearantly) to do with transferring the very special
characters over the lines between s007 and s006, displaying them on the
screen and entering them in the database through webforms. Normal special
chars like é, ê, à and so on seem to be displayed ok (after calling
htmlentities in php: PHP 4.3.3 (cgi) (built: Oct 21 2003 09:51:55) on s006
and PHP 4.3.4 (cli) (built: Jan 24 2004 22:34:14) on s007), but the more
exotic ones (~ and ^ signs on and under Z, S .. and stuff like that) still
cause problems on the s006. Same script, requesting data from the same rows
of the same database on the s007 works as it is supposed to.
 
MySQL version of both servers is "mysql  Ver 11.18 Distrib 3.23.58, for
redhat-linux-gnu (i386)", for both machines, /etc/sysconfig/i18n looks like:
 
  1 LANG="en_US"
  2 SUPPORTED="nl_NL:nl_NL:nl:en_US:en"
  3 SYSFONT="lat0-sun16"
  4 SYSFONTACM="iso15"

(numbers are line numbers). To compare the pages:
http://esctoday.s007.interlize.net/annual/2004/participants.php
 
http://esctoday.s006.interlize.net/annual/2004/participants.php   
 
I'm stuck here with my hands in my hair, and would very much appriciate any
clue to a solution,
Wouter van Vliet
 
(ps. since I'm not sure of the solution will be found in php, mysql or any
other place I have posted this message also to the mysql-general list)


[PHP] Gd library not found

2004-05-08 Thread Phpu
Hi,
Where can i get the gd library for windows. I've googled but i can't find it.
Thanks


Re: [PHP] Gd library not found

2004-05-08 Thread Ray Hunter
On Sat, 2004-05-08 at 10:46, Phpu wrote:
> Where can i get the gd library for windows. I've googled but i can't find it.

It should be bundled with the zip file version of windows php. You will
probably have to download the zip file from php.net and then get the dll
for gd out of the zip file and put it where php can load it up.

--
Ray

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



Re: [PHP] page_title

2004-05-08 Thread Daniel Clark
Think you want



>>I have write following code:
>>>$page_title = "Welcome";
>>?>
>>
>>But I can not see Welcome on top of the page.
>>Can someone tell me why I not can see it?
>>
>>Thanks
>>Erik Gjertsen
>>
>>-- 
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>




Re: [PHP] page_title

2004-05-08 Thread Erik Gjertsen
Thanks it help
Erik Gjertsen

"Kim Steinhaug" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is it me or is the sollution here incredible simple?
>
>  $page_title = "Welcome";
> ?>
> 
> 
>
> -- 
> -- 
> 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:
> >
> > > 
> > > 
> > > 
> > > 
> > >
> > > 
> > >  > > $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

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



[PHP] Re: Graphical calendar

2004-05-08 Thread Todd Cary
I found it!!

Todd

Todd Cary wrote:
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


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


[PHP] Re: Graphical calendar

2004-05-08 Thread Todd Cary
Works like a champ!

Question: has anyone extended the class so that when one clicks on a 
day, the year, month, day is returned?

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


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


Re: [PHP] Re: Recommend an IDE for Windows

2004-05-08 Thread Chris Lott
On Fri, 07 May 2004 23:58:47 +0200, Rainer Müller
<[EMAIL PROTECTED]> wrote:

> > I've been looking at Zend Studio and Nusphere PHPEd as primary candidates.
> > However, I have a short window to buy something (fiscal year issues) so any
> > comments on these two editors (separately or in comparison to one another)
> > or other tools I should be looking at would be greatly appreciated!
>
> http://www.phpedit.net - It's still free, but the license model will
> change soon AFAIK.

Hopefully they will get their next release out the door real soon.
Until then I have until Tuesday to purchase something so will keep
testing Zend, Maguma, and NuSphere.

The problem is that with such short time to evaluate I want to avoid
as many "gotchas" as possible.

c

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



RE: [PHP] Re: Graphical calendar

2004-05-08 Thread php-list
You can try using PEAR's Calendar System. It works great for what you might
need. Here's a website of what you can do with PEAR Calendar:

http://pearcalendar.sourceforge.net/examples/

-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED] 
Sent: Saturday, May 08, 2004 12:59 PM
To: Manuel Lemos
Cc: [EMAIL PROTECTED]
Subject: [PHP] Re: Graphical calendar

Works like a champ!

Question: has anyone extended the class so that when one clicks on a 
day, the year, month, day is returned?

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
> 
> 

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

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



[PHP] Re: Problems with very special characters

2004-05-08 Thread Aidan Lister
Hi,

Make sure the charset of your document matches the charset sent by the
server - If you tell the browser the charset is A, and use characters from
charset B, you will get the problem observed.

The charset can be sent from Apache, PHP and the actual charset is set in
the document.

It's a pain in the arse to fix, I've had the same problem, it took a lot of
experimenting

Good luck,


"Wouter Van Vliet" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello everybody,

I'm back! (been a subscriber here before, a while ago .. was quite an active
one at that time .. ;)) .. and I'm back for a reason, having a very wicked
problem. The setup is one RedHat linux 9 machine (called "s007"), previously
in use as both our web and database server. As traffic increased
dramatically earlier this week, we had to grab another server, running
RedHat Fedora. We'll call her "s006", and use to serve the webpages. All
happened very quickly and smooth for most of it. Only currently still
existing problem has (appearantly) to do with transferring the very special
characters over the lines between s007 and s006, displaying them on the
screen and entering them in the database through webforms. Normal special
chars like é, ê, à and so on seem to be displayed ok (after calling
htmlentities in php: PHP 4.3.3 (cgi) (built: Oct 21 2003 09:51:55) on s006
and PHP 4.3.4 (cli) (built: Jan 24 2004 22:34:14) on s007), but the more
exotic ones (~ and ^ signs on and under Z, S .. and stuff like that) still
cause problems on the s006. Same script, requesting data from the same rows
of the same database on the s007 works as it is supposed to.

MySQL version of both servers is "mysql  Ver 11.18 Distrib 3.23.58, for
redhat-linux-gnu (i386)", for both machines, /etc/sysconfig/i18n looks like:

  1 LANG="en_US"
  2 SUPPORTED="nl_NL:nl_NL:nl:en_US:en"
  3 SYSFONT="lat0-sun16"
  4 SYSFONTACM="iso15"

(numbers are line numbers). To compare the pages:
http://esctoday.s007.interlize.net/annual/2004/participants.php
 
http://esctoday.s006.interlize.net/annual/2004/participants.php

I'm stuck here with my hands in my hair, and would very much appriciate any
clue to a solution,
Wouter van Vliet

(ps. since I'm not sure of the solution will be found in php, mysql or any
other place I have posted this message also to the mysql-general list)

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



[PHP] Re: protecting web page

2004-05-08 Thread Anguz
[EMAIL PROTECTED] wrote:

Hi,

i'm designing a web application and i want to protect my web page from
printing and if possible want to protect source code too.
Do you know any solution that can help me. I've find an application named
HTML guard but it only work for static html pages. I need more a class or
function to prevent for printing.
Thanks for your help,

Marc
For the HTML source, I've used this in a client's page once and works 
very well:

http://cleverscripts.com/index.php?a=cleversource

Dunno about the printing though.

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


[PHP] A binary compatibility alternative to mod_fastcgi

2004-05-08 Thread Pan qingfeng
Hi, guys
 http://fastcgi.coremail.cn, I hope you like it...

Thanks

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



[PHP] A binary compatibility alternative to mod_fastcgi

2004-05-08 Thread 潘庆峰
Hi, guys
http://fastcgi.coremail.cn, I hope you like it...

Thanks

Re: [PHP] Re: protecting web page

2004-05-08 Thread Petr U.
On Sat, 08 May 2004 21:00:43 -0500
Anguz <[EMAIL PROTECTED]> wrote:

 > > Do you know any solution that can help me. I've find an application named
 > > HTML guard but it only work for static html pages. I need more a class or
 > > function to prevent for printing.

There is _no way_ to really hide/protect html page on client side.. If someone
(some knowing) would like to show your source and it's important for him, then
he spend some time to break this ugly protection.

-- 
Petr U.

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



Re: [PHP] Re: protecting web page

2004-05-08 Thread Travis Low
Petr U. wrote:
On Sat, 08 May 2004 21:00:43 -0500
Anguz <[EMAIL PROTECTED]> wrote:
 > > Do you know any solution that can help me. I've find an application named
 > > HTML guard but it only work for static html pages. I need more a class or
 > > function to prevent for printing.
There is _no way_ to really hide/protect html page on client side.. If someone
(some knowing) would like to show your source and it's important for him, then
he spend some time to break this ugly protection.
Just to strengthen/clarify this statement, look at it this way.  The user has 
downloaded the data to his machine.  You don't have any control over the data 
after that point.  Heck, the user can just print the screen they are looking 
at.  How you gonna stop that?

If you're just looking to discourage casual copying, then carry on. :-)  If 
it's really important, you might be able to generate non-printable PDF files, 
or generate images containing the desired text, or stuff like that.  Just to 
make copying/printing harder.

cheers,

Travis

--
Travis Low


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


Re: [PHP] Re: protecting web page

2004-05-08 Thread Ashley M. Kirchner
	Urgh.  I replied to Travis only, instead of the list.  Sorry Travis, 
didn't mean to.  Here's a repost to the list:

--

Travis Low wrote:

If it's really important, you might be able to generate non-printable 
PDF files, or generate images containing the desired text, or stuff 
like that.  Just to make copying/printing harder.
   Nothing's going to stop someone to simply grabbing a screen capture
of that, pasting it in a different application and hitting Print.  The
only way to safe guard stuff online...is to never put it online.
--
H| I haven't lost my mind; it's backed up on tape somewhere.
 +
 Ashley M. Kirchner    .   303.442.6410 x130
 IT Director / SysAdmin / WebSmith . 800.441.3873 x130
 Photo Craft Laboratories, Inc.. 3550 Arapahoe Ave. #6
 http://www.pcraft.com . .  ..   Boulder, CO 80303, U.S.A.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


php-general Digest 9 May 2004 03:57:45 -0000 Issue 2752

2004-05-08 Thread php-general-digest-help

php-general Digest 9 May 2004 03:57:45 - Issue 2752

Topics (messages 185710 through 185726):

Problems with very special characters
185710 by: Wouter van Vliet
185720 by: Aidan Lister

Gd library not found
185711 by: Phpu
185712 by: Ray Hunter

Re: page_title
185713 by: Daniel Clark
185714 by: Erik Gjertsen

Re: Graphical calendar
185715 by: Todd Cary
185716 by: Todd Cary
185717 by: Todd Cary
185719 by: php-list.xenonsolutions.com

Re: Recommend an IDE for Windows
185718 by: Chris Lott

Re: protecting web page
185721 by: Anguz
185724 by: Petr U.
185725 by: Travis Low
185726 by: Ashley M. Kirchner

A binary compatibility alternative to mod_fastcgi
185722 by: Pan qingfeng
185723 by: Pan qingfeng

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 ---
Hello everybody,
 
I'm back! (been a subscriber here before, a while ago .. was quite an active
one at that time .. ;)) .. and I'm back for a reason, having a very wicked
problem. The setup is one RedHat linux 9 machine (called "s007"), previously
in use as both our web and database server. As traffic increased
dramatically earlier this week, we had to grab another server, running
RedHat Fedora. We'll call her "s006", and use to serve the webpages. All
happened very quickly and smooth for most of it. Only currently still
existing problem has (appearantly) to do with transferring the very special
characters over the lines between s007 and s006, displaying them on the
screen and entering them in the database through webforms. Normal special
chars like é, ê, à and so on seem to be displayed ok (after calling
htmlentities in php: PHP 4.3.3 (cgi) (built: Oct 21 2003 09:51:55) on s006
and PHP 4.3.4 (cli) (built: Jan 24 2004 22:34:14) on s007), but the more
exotic ones (~ and ^ signs on and under Z, S .. and stuff like that) still
cause problems on the s006. Same script, requesting data from the same rows
of the same database on the s007 works as it is supposed to.
 
MySQL version of both servers is "mysql  Ver 11.18 Distrib 3.23.58, for
redhat-linux-gnu (i386)", for both machines, /etc/sysconfig/i18n looks like:
 
  1 LANG="en_US"
  2 SUPPORTED="nl_NL:nl_NL:nl:en_US:en"
  3 SYSFONT="lat0-sun16"
  4 SYSFONTACM="iso15"

(numbers are line numbers). To compare the pages:
http://esctoday.s007.interlize.net/annual/2004/participants.php
 
http://esctoday.s006.interlize.net/annual/2004/participants.php   
 
I'm stuck here with my hands in my hair, and would very much appriciate any
clue to a solution,
Wouter van Vliet
 
(ps. since I'm not sure of the solution will be found in php, mysql or any
other place I have posted this message also to the mysql-general list)
--- End Message ---
--- Begin Message ---
Hi,

Make sure the charset of your document matches the charset sent by the
server - If you tell the browser the charset is A, and use characters from
charset B, you will get the problem observed.

The charset can be sent from Apache, PHP and the actual charset is set in
the document.

It's a pain in the arse to fix, I've had the same problem, it took a lot of
experimenting

Good luck,


"Wouter Van Vliet" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello everybody,

I'm back! (been a subscriber here before, a while ago .. was quite an active
one at that time .. ;)) .. and I'm back for a reason, having a very wicked
problem. The setup is one RedHat linux 9 machine (called "s007"), previously
in use as both our web and database server. As traffic increased
dramatically earlier this week, we had to grab another server, running
RedHat Fedora. We'll call her "s006", and use to serve the webpages. All
happened very quickly and smooth for most of it. Only currently still
existing problem has (appearantly) to do with transferring the very special
characters over the lines between s007 and s006, displaying them on the
screen and entering them in the database through webforms. Normal special
chars like é, ê, à and so on seem to be displayed ok (after calling
htmlentities in php: PHP 4.3.3 (cgi) (built: Oct 21 2003 09:51:55) on s006
and PHP 4.3.4 (cli) (built: Jan 24 2004 22:34:14) on s007), but the more
exotic ones (~ and ^ signs on and under Z, S .. and stuff like that) still
cause problems on the s006. Same script, requesting data from the same rows
of the same database on the s007 works as it is supposed to.

MySQL version of both servers is "mysql  Ver 11.18 Distrib 3.23.58, for
redhat-linux-gnu (i386)", for both machines, /etc/sysconfig/i18n looks like:

  1 LANG="en_US"
  2 SUPPORTED="nl_NL:n

[PHP] using cookies

2004-05-08 Thread David T-G
Hi, all --

I guess I need a primer on cookie usage.  I've read the manual regarding
setcookie and have gone back to look at everything having to do with
cookies on this list in the past few months (it seems that I'm not the
only one with some troubles, but most of them appear to have been having
sent some HTML output before trying to set a cookie).

I want to check to see if the user has my cookie to then log him in
automatically, and if he doesn't then I show the login screen and he logs
in and then I set the cookie if the box is checked.

Of course, $_COOKIE is set, so I have to check for my cookie name.  Even
something as simple as

  $_COOKIE['test'] = 'tested';

followed by a load of the page and a print doesn't show it.

Do I only call setcookie if the cookie isn't set, or do i call it every
time I load the page to initialize it?  Once I set it, how do I read it?
Does anyone have any pointers to a basic tutorial?


TIA & HAND

:-D
-- 
David T-G
[EMAIL PROTECTED]
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature