php-general Digest 9 May 2004 03:57:45 -0000 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>
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: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>
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,
Where can i get the gd library for windows. I've googled but i can't find it.
Thanks

--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Think you want

<?php
$page_title = "Welcome";
echo $page_title;
?>

>>I have write following code:
>><?php
>>$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
>>



--- End Message ---
--- Begin Message ---
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?
>
> <?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 --- 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



--- End Message ---
--- Begin Message --- 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



--- End Message ---
--- Begin Message --- 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



--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
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

--- End Message ---
--- Begin Message --- [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

--- End Message ---
--- Begin Message ---
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.

--- End Message ---
--- Begin Message --- 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
<mailto:[EMAIL PROTECTED]>
<http://www.dawnstar.com>

--- End Message ---
--- Begin Message ---
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 <mailto:[EMAIL PROTECTED]>   .   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.

--- End Message ---
--- Begin Message ---
Hi, guys
 http://fastcgi.coremail.cn, I hope you like it...

Thanks

--- End Message ---
--- Begin Message ---
Hi, guys
        http://fastcgi.coremail.cn, I hope you like it...

Thanks

--- End Message ---

Reply via email to