php-general Digest 21 Sep 2006 08:10:11 -0000 Issue 4359

Topics (messages 241986 through 242012):

Re: Most stable combination of AMP?
        241986 by: Børge Holen
        241992 by: Christopher Weldon

move_uploaded_file locks?
        241987 by: Matthew H. North
        242009 by: Chris

storing function names in db and running them as row is output?
        241988 by: blackwater dev
        241989 by: Al
        241990 by: Christopher Weldon
        241991 by: blackwater dev
        241993 by: Christopher Weldon

php/css and .htaccess
        241994 by: tedd
        241995 by: Christopher Weldon
        241996 by: Jürgen Wind
        242007 by: Google Kreme

Error: Cannot load /usr/local/apache2/modules/libphp4.so into server: 
/usr/local/apache2/modules/libphp4.so: cannot restore segment prot after reloc: 
Permission denied
        241997 by: Kelly McCoy
        241998 by: Joe Wollard

Re: xsl + xml
        241999 by: Tony Marston

stripping with an OB callback
        242000 by: Christopher Watson
        242001 by: Robert Cummings
        242002 by: Robert Cummings
        242003 by: Christopher Watson
        242004 by: Robert Cummings
        242010 by: Christopher Watson

Re: Resource problem affecting Curl functions
        242005 by: Google Kreme

Re: Is there a list of all Timezones as an array or someting?
        242006 by: Google Kreme
        242008 by: Travis Doherty
        242011 by: Christopher Watson

Grrrrr... Re: Returned mail: User unknown
        242012 by: Google Kreme

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 ---
On Wednesday 20 September 2006 20:04, James Tu wrote:
> I was thinking more along the lines of what version of Apache, MySQL
> and PHP I should install...

The ones in yer distribution. That'll probably lessen yer possibility of 
getting into trouble of both security and functionality.

>
> -James
>
> On Sep 20, 2006, at 12:06 PM, Pawel Miroslawski wrote:
> > On 9/20/06, Kae Verens <[EMAIL PROTECTED]> wrote:
> >> James Tu wrote:
> >> > Hi:
> >> >
> >> > I'm trying to setup a dev environment using Apache, MySQL and
> >>
> >> PHP...to
> >>
> >> > develop an application that will go to production.
> >> > What is the most stable versions of the AMP components should I can
> >> > install?
> >> >
> >> > The production environment will most likely live on a Linux
> >>
> >> machine.  My
> >>
> >> > dev environment will be on OS X.
> >>
> >> that's a religious question. some people advocate some
> >> distributions over
> >> others.
> >>
> >> Personally, I recommend Fedora - it's easy to install, and you can
> >> use
> >> "yum"
> >> and "yumex" (graphical yum) for package management.
> >>
> >> Kae
> >>
> >> --
> >
> > Hi
> > I agree it's a religious question.
> > I prefer Debian, apt-get is a really comfortable tool and it
> > install all
> > require dependencies. All procedure LAMP install it only 4 commands
> > ex.
> > apt-get install php5 :) It's a very fast and nice (best what i know).
> >
> > Representant of debian's church ;)
> > Paul
> > *
> > *

-- 
---
Børge
Kennel Arivene 
http://www.arivene.net
---

--- End Message ---
--- Begin Message ---
Børge Holen wrote:
On Wednesday 20 September 2006 18:06, Pawel Miroslawski wrote:
On 9/20/06, Kae Verens <[EMAIL PROTECTED]> wrote:
James Tu wrote:
Hi:

I'm trying to setup a dev environment using Apache, MySQL and PHP...to
develop an application that will go to production.
What is the most stable versions of the AMP components should I can
install?

The production environment will most likely live on a Linux machine. My dev environment will be on OS X.
that's a religious question. some people advocate some distributions over
others.

Personally, I recommend Fedora - it's easy to install, and you can use
"yum"
and "yumex" (graphical yum) for package management.

Kae

--
Hi
I agree it's a religious question.
I prefer Debian, apt-get is a really comfortable tool and it install all
require dependencies. All procedure LAMP install it only 4 commands ex.
apt-get install php5 :) It's a very fast and nice (best what i know).

Representant of debian's church ;)
Paul
 *
*

Disipel of the same church. Never any problems and rock stable.


Well, though I tout in favor of Debian MOST of the time (especially for stable distributions), sometimes it's not possible to use the stable distro releases, as they many times are way-behind the current version of the software and it limits you to the features you have available.

For example, the stable version of mod_php for apache under Debian is 4.3.10-16, compared to the current stable release of PHP 4.4.4!

AIA, if you aren't too picky and don't need particular versions of your packages, then use your package manager to install them. Else, it's oftentimes better to compile and install packages from scratch as many compile-time options will increase performance for your particular hardware and allow customization (pick and choose what you do and don't want compiled into PHP). For both cases (especially if your development and production hardware are different), make sure you compile/install each environment with the same settings (configure options) to make absolutely certain that you don't have missing dependencies / expectations on your production system when they were there on the dev box.

--
Christopher Weldon, ZCE
President & CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874

--- End Message ---
--- Begin Message ---
Can't find this in the PHP docs, so: does anyone know whether 
move_uploaded_file locks the target file during the process?

If move_uploaded_file does a rename within the same filesystem this isn't an 
issue (on unix, anyway, the O/S just reassigns inodes rather than copying 
data).  But if it does a copy instead, or if it has to rename across 
filesystems, any process that tries to read or write the file before 
move_uploaded_file completes could be munging things.

-- 
Matthew H. North
mailto:[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Matthew H. North wrote:
Can't find this in the PHP docs, so: does anyone know whether move_uploaded_file locks the target file during the process?

If move_uploaded_file does a rename within the same filesystem this isn't an issue (on unix, anyway, the O/S just reassigns inodes rather than copying data). But if it does a copy instead, or if it has to rename across filesystems, any process that tries to read or write the file before move_uploaded_file completes could be munging things.

I don't *think* it does any locking, it just calls the system functions to handle the rename (so yeh across partitions/file systems it will do a copy).

The internals list might be able to give a more precise answer..

--
Postgresql & php tutorials
http://www.designmagick.com/

--- End Message ---
--- Begin Message ---
First, the example I have is not the real situation, just an example so I
don't want to get into why are you doing it like that, etc.  Just want to
see if it's possible.

Basically, I want to store stuff in a text field in a db like this "johns
name is ucfirst('john adams') ".

When I cycle through that row for output in my php script, I want it to not
see ucfirst as text but as the php function and run it....how is the
possible?

Thanks.

--- End Message ---
--- Begin Message ---
blackwater dev wrote:
First, the example I have is not the real situation, just an example so I
don't want to get into why are you doing it like that, etc.  Just want to
see if it's possible.

Basically, I want to store stuff in a text field in a db like this "johns
name is ucfirst('john adams') ".

When I cycle through that row for output in my php script, I want it to not
see ucfirst as text but as the php function and run it....how is the
possible?

Thanks.



eval()

--- End Message ---
--- Begin Message ---
blackwater dev wrote:
First, the example I have is not the real situation, just an example so I
don't want to get into why are you doing it like that, etc.  Just want to
see if it's possible.

Basically, I want to store stuff in a text field in a db like this "johns
name is ucfirst('john adams') ".

When I cycle through that row for output in my php script, I want it to not
see ucfirst as text but as the php function and run it....how is the
possible?

Thanks.


$db_query = mysql_query("select command from table");
if ($db_query && mysql_num_rows($db_query) > 0) {
  while ($array = mysql_fetch_array($db_query)) {
    eval($array['command']);
  }
}

eval() is your solution.

--
Christopher Weldon, ZCE
President & CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874

--- End Message ---
--- Begin Message ---
great, thanks.  So if it's just text, eval won't do anything?

On 9/20/06, Christopher Weldon <[EMAIL PROTECTED]> wrote:

blackwater dev wrote:
> First, the example I have is not the real situation, just an example so
I
> don't want to get into why are you doing it like that, etc.  Just want
to
> see if it's possible.
>
> Basically, I want to store stuff in a text field in a db like this
"johns
> name is ucfirst('john adams') ".
>
> When I cycle through that row for output in my php script, I want it to
not
> see ucfirst as text but as the php function and run it....how is the
> possible?
>
> Thanks.
>

$db_query = mysql_query("select command from table");
if ($db_query && mysql_num_rows($db_query) > 0) {
   while ($array = mysql_fetch_array($db_query)) {
     eval($array['command']);
   }
}

eval() is your solution.

--
Christopher Weldon, ZCE
President & CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874


--- End Message ---
--- Begin Message ---
blackwater dev wrote:
great, thanks.  So if it's just text, eval won't do anything?

On 9/20/06, Christopher Weldon <[EMAIL PROTECTED]> wrote:

blackwater dev wrote:
> First, the example I have is not the real situation, just an example so
I
> don't want to get into why are you doing it like that, etc.  Just want
to
> see if it's possible.
>
> Basically, I want to store stuff in a text field in a db like this
"johns
> name is ucfirst('john adams') ".
>
> When I cycle through that row for output in my php script, I want it to
not
> see ucfirst as text but as the php function and run it....how is the
> possible?
>
> Thanks.
>

$db_query = mysql_query("select command from table");
if ($db_query && mysql_num_rows($db_query) > 0) {
   while ($array = mysql_fetch_array($db_query)) {
     eval($array['command']);
   }
}

eval() is your solution.

--
Christopher Weldon, ZCE
President & CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874



Umm, I believe eval will error out if it's just text. eval is basically processing a PHP command, so if you have something like "Bob Smith" and you run:

eval("Bob Smith");

It will error out because "Bob Smith" is not a something that can be processed by PHP.
--
Christopher Weldon, ZCE
President & CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874

--- End Message ---
--- Begin Message ---
Hi gang:

I embedded php code inside css and changed my .htaccess to read --

<FilesMatch "\.(htm|html|css)$">
 SetHandler application/x-httpd-php
</FilesMatch>

-- so that the css file would be processed and executed by php. The end result was that everything worked and did what I wanted.

However, FireFox / Mozillia won't accept a css file if a .htaccess file reads as indicated above.

Any ideas as to how to get FireFox to play nice?

Thanks in advance for any replies.

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
tedd wrote:
Hi gang:

I embedded php code inside css and changed my .htaccess to read --

<FilesMatch "\.(htm|html|css)$">
 SetHandler application/x-httpd-php
</FilesMatch>

-- so that the css file would be processed and executed by php. The end result was that everything worked and did what I wanted.

However, FireFox / Mozillia won't accept a css file if a .htaccess file reads as indicated above.

Any ideas as to how to get FireFox to play nice?

Thanks in advance for any replies.

tedd


That shouldn't be expected. The SetHandler only applies to the Apache handler side, as browsers should not be able to read those files (.htaccess). So, are you 100% positive that PHP is in fact processing the file?

--
Christopher Weldon, ZCE
President & CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874

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


Christopher Weldon wrote:
> 
> tedd wrote:
>> Hi gang:
>> 
>> I embedded php code inside css and changed my .htaccess to read --
>> 
>> <FilesMatch "\.(htm|html|css)$">
>>  SetHandler application/x-httpd-php
>> </FilesMatch>
>> 
>> -- so that the css file would be processed and executed by php. The end 
>> result was that everything worked and did what I wanted.
>> 
>> However, FireFox / Mozillia won't accept a css file if a .htaccess file 
>> reads as indicated above.
>> 
>> Any ideas as to how to get FireFox to play nice?
>> 
>> Thanks in advance for any replies.
>> 
>> tedd
>> 
> 
> That shouldn't be expected. The SetHandler only applies to the Apache 
> handler side, as browsers should not be able to read those files 
> (.htaccess). So, are you 100% positive that PHP is in fact processing 
> the file?
> 
> -- 
> Christopher Weldon, ZCE
> President & CEO
> Cerberus Interactive, Inc.
> [EMAIL PROTECTED]
> 979.739.5874
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
FF needs 
header('Content-Type: text/css; charset=ISO-8859-1');
in css files.
-- 
View this message in context: 
http://www.nabble.com/php-css-and-.htaccess-tf2308435.html#a6418835
Sent from the PHP - General mailing list archive at Nabble.com.

--- End Message ---
--- Begin Message ---
On 20 Sep 2006, at 16:18 , tedd wrote:
However, FireFox / Mozillia won't accept a css file if a .htaccess file reads as indicated above.

Any ideas as to how to get FireFox to play nice?

Yep, you need to specify header('Content-Type: text/css')

This is because Mozilla/Firefox is, as far as I know, the only browser to insist on the content type for css files. Albeit it, mozilla.org is RIGHT on this one.


--
How you have felt, o men of Athens, at hearing the speeches of my accusers, I cannot tell; but I know that their persuasive words almost made me forget who I was, such was the effect of the,; and yet they have hardly spoken a word of truth.
--- End Message ---
--- Begin Message ---
I am getting the error 

 

Cannot load /usr/local/apache2/modules/libphp4.so into server:
/usr/local/apache2/modules/libphp4.so: cannot restore segment prot after
reloc: Permission denied 

 

When I try to load Apache.  

 

Running PHP 4.4.4, Apache 2.0.59, and mysql 4.1.21

 

All installations have gone smoothly; I just have not been able to start
apache because of the error. 

 

Thanks for any help. 

 

Kelly


--- End Message ---
--- Begin Message ---
Since Fedora is popular, can I assume that's what you're running? Even
if it's not I'll bet it's a Linux distro that's employing SELinux.
11,500 web pages agree ;-)

http://www.google.com/search?q=%22reloc:+Permission+denied%22




On 9/20/06, Kelly McCoy <[EMAIL PROTECTED]> wrote:
I am getting the error



Cannot load /usr/local/apache2/modules/libphp4.so into server:
/usr/local/apache2/modules/libphp4.so: cannot restore segment prot after
reloc: Permission denied



When I try to load Apache.



Running PHP 4.4.4, Apache 2.0.59, and mysql 4.1.21



All installations have gone smoothly; I just have not been able to start
apache because of the error.



Thanks for any help.



Kelly




--- End Message ---
--- Begin Message ---
http://www.tonymarston.net/php-mysql/domxml.html
http://www.tonymarston.net/php-mysql/sablotron.html
http://www.tonymarston.net/php-mysql/dom.html
http://www.tonymarston.net/php-mysql/xsl.html

-- 
Tony Marston
http://www.tonymarston.net
http://www.radicore.org

""José Manuel Peso Echarri"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi people,
>
> I  am looking for a library that mix xsl and xml producing output in xhtml 
> at server side.
> I have readed about sablotron and libxsl, but i am confused.
>
> Which is the best alternative in perfomance terms for the versions 4.2, 
> 4.3?
> is there some way for preprocess xsl or let ir in memory or any way for 
> improve the resources usage?
>
> Thanks
>
> Regards,
> Jose 

--- End Message ---
--- Begin Message ---
I've been coding with PHP for maybe a year.  So I'm somewhat new to
it.  But I've learned quickly, and created a fairly serious LAMP app
that is capable of returning large query results.  During my
investigation into various means for incrementally reducing the
response sizes, I've discovered output buffering with a callback
function.  So, as an experiment, I bracketed my includes of the
Fusebox files in index.php with ob_start('sweeper') and
ob_end_flush(), and placed the simple callback function at the top of
the file that performs a preg_replace on the buffer to strip all
excess space:

function sweeper($buffer) {
   return preg_replace("/\s\s+/", " ", $buffer);
}

Results?  Kinda nice!  A large query result measuring over 900K of
HTML is reduced to 600K.  With no change at the browser.  Still valid
HTML, and the browser happily gobbles it up and displays it cleanly.
It's just 30% faster getting to me.

Now, the question.  Is this going to bite me in the ass?  'Cause right
now, it looks dang good to me.  Great bang for the buck, as far as I'm
concerned.  I've been churning it over in my head, and I don't see a
situation (certainly not in my particular app) where doing this
whitespace reduction is going to backfire.  There isn't anything in
any of this that requires the contiguous non-word characters.

I have a feeling though, that one of you more learned PHPers are going
to tell me exactly where my ass is gonna start hurtin'.

Christopher Watson
Principal Architect
The International Variable Star Index (VSX)
http://vsx.aavso.org

--- End Message ---
--- Begin Message ---
On Wed, 2006-09-20 at 17:13 -0700, Christopher Watson wrote:
> I've been coding with PHP for maybe a year.  So I'm somewhat new to
> it.  But I've learned quickly, and created a fairly serious LAMP app
> that is capable of returning large query results.  During my
> investigation into various means for incrementally reducing the
> response sizes, I've discovered output buffering with a callback
> function.  So, as an experiment, I bracketed my includes of the
> Fusebox files in index.php with ob_start('sweeper') and
> ob_end_flush(), and placed the simple callback function at the top of
> the file that performs a preg_replace on the buffer to strip all
> excess space:
> 
> function sweeper($buffer) {
>     return preg_replace("/\s\s+/", " ", $buffer);
> }
> 
> Results?  Kinda nice!  A large query result measuring over 900K of
> HTML is reduced to 600K.  With no change at the browser.  Still valid
> HTML, and the browser happily gobbles it up and displays it cleanly.
> It's just 30% faster getting to me.
> 
> Now, the question.  Is this going to bite me in the ass?  'Cause right
> now, it looks dang good to me.  Great bang for the buck, as far as I'm
> concerned.  I've been churning it over in my head, and I don't see a
> situation (certainly not in my particular app) where doing this
> whitespace reduction is going to backfire.  There isn't anything in
> any of this that requires the contiguous non-word characters.
> 
> I have a feeling though, that one of you more learned PHPers are going
> to tell me exactly where my ass is gonna start hurtin'.

Should be an issue as long as you're not stripping whitespace from
between <pre></pre> tags. Although, one must wonder why you don't just
use output compression since all that whitespace would just compress
anyways as would all the other content. In fact 900k with fairly
standard content would shrink to about 90k.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
On Wed, 2006-09-20 at 20:21 -0400, Robert Cummings wrote:
> On Wed, 2006-09-20 at 17:13 -0700, Christopher Watson wrote:
> > I've been coding with PHP for maybe a year.  So I'm somewhat new to
> > it.  But I've learned quickly, and created a fairly serious LAMP app
> > that is capable of returning large query results.  During my
> > investigation into various means for incrementally reducing the
> > response sizes, I've discovered output buffering with a callback
> > function.  So, as an experiment, I bracketed my includes of the
> > Fusebox files in index.php with ob_start('sweeper') and
> > ob_end_flush(), and placed the simple callback function at the top of
> > the file that performs a preg_replace on the buffer to strip all
> > excess space:
> > 
> > function sweeper($buffer) {
> >     return preg_replace("/\s\s+/", " ", $buffer);
> > }
> > 
> > Results?  Kinda nice!  A large query result measuring over 900K of
> > HTML is reduced to 600K.  With no change at the browser.  Still valid
> > HTML, and the browser happily gobbles it up and displays it cleanly.
> > It's just 30% faster getting to me.
> > 
> > Now, the question.  Is this going to bite me in the ass?  'Cause right
> > now, it looks dang good to me.  Great bang for the buck, as far as I'm
> > concerned.  I've been churning it over in my head, and I don't see a
> > situation (certainly not in my particular app) where doing this
> > whitespace reduction is going to backfire.  There isn't anything in
> > any of this that requires the contiguous non-word characters.
> > 
> > I have a feeling though, that one of you more learned PHPers are going
> > to tell me exactly where my ass is gonna start hurtin'.
> 
> Should be an issue

That should have read "shouldn't" :)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Hi Robert,

Well, I think the main reason I'm not using transparent output
compression is because this app shares php.ini with several other PHP
apps on the server, and I don't want to foist this change on the
admins of those apps.  I was trying to come up with a localized
strategy for trimming my app's output.

The <pre></pre> issue is not an issue for me.

-Christopher

On 9/20/06, Robert Cummings <[EMAIL PROTECTED]> wrote:
Should be an issue as long as you're not stripping whitespace from
between <pre></pre> tags. Although, one must wonder why you don't just
use output compression since all that whitespace would just compress
anyways as would all the other content. In fact 900k with fairly
standard content would shrink to about 90k.

--- End Message ---
--- Begin Message ---
On Wed, 2006-09-20 at 17:33 -0700, Christopher Watson wrote:
> Hi Robert,
> 
> Well, I think the main reason I'm not using transparent output
> compression is because this app shares php.ini with several other PHP
> apps on the server, and I don't want to foist this change on the
> admins of those apps.  I was trying to come up with a localized
> strategy for trimming my app's output.

Why settle for 30% speed boost when you can get 90% ...

    http://ca3.php.net/manual/en/function.ob-gzhandler.php

:)

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Bingo!  That's the ticket.  Thanks, Robert.

-Christopher

On 9/20/06, Robert Cummings <[EMAIL PROTECTED]> wrote:
Why settle for 30% speed boost when you can get 90% ...

   http://ca3.php.net/manual/en/function.ob-gzhandler.php

:)

--- End Message ---
--- Begin Message ---
On 20 Sep 2006, at 06:09 , Mark Krenz wrote:
On Wed, Sep 20, 2006 at 06:34:32AM GMT, Google Kreme [EMAIL PROTECTED] said the following:
On 19 Sep 2006, at 12:12 , Mark Krenz wrote:
 I run a shared webserver with a few hundred vhost containers in
Apache's config.

Are these vhosts all contained in httpd.conf, or are they separate
files?

Does it make a difference?

  I doubt this makes a difference, but its all in one vhost.conf file.
The httpd.conf file includes that file.

  So does anyone have any ideas about my problem with curl functions?

Not as such, but I would try a couple of things.

First, does it matter which of the vhost you remove/comment out before you get functionality back?

Second, if you split the vhost.conf file into, say, two files, does it make a difference?

I don't have thousands of vhosts anymore, but we used to. They were all in separate files though, by domain, an included with a include / etc/httpd/vhosts/*.conf in the httpd.conf file.


--
You know, Calculus is sort of like measles. Once you've had it, you probably won't get it again, and you're glad of it. -- W. Carr
--- End Message ---
--- Begin Message ---
On 20 Sep 2006, at 06:15 , Chris Boget wrote:
$timeZonesArray = array( 'GMT' => array( 'GMT' => +0 // GMT

Er... ok, but that seems to be missing quite a lot. For example, I notice that India Standard Time (IST; UTC +5:30) is missing from your array. Granted, it's only 1.1 Billion people and the largest English speaking population in the world... (or second most, depending on whom you ask).

Or did you just forget to paste the Asia portion of the array?

--
Two, Four, Six, Eight! Time to Transubstantiate!

--- End Message ---
--- Begin Message ---
Google Kreme wrote:

> On 20 Sep 2006, at 06:15 , Chris Boget wrote:
>
>>  $timeZonesArray = array( 'GMT'            => array( 'GMT'   =>  +0
>> // GMT
>
>
> Er... ok, but that seems to be missing quite a lot.  For example, I 
> notice that India Standard Time (IST; UTC +5:30) is missing from your 
> array.  Granted, it's only 1.1 Billion people and the largest English 
> speaking population in the world... (or second most, depending on 
> whom you ask).
>
> Or did you just forget to paste the Asia portion of the array?
>
Most Linux boxen have `|/usr/share/zoneinfo/zone.tab`, or grab it from
the database tables in a mysql server (assuming it is setup with
timezones imported) which would be the mysql.timezone* tables.

|http://www.php.net/putenv

The comments have quite a bit on timezones and PHP.  The command you
will use to change the timezone of the running script is:

putenv("TZ=$zone");

The equiv to set a MySQL connection to a certain timezone would be:

SET time_zone = '$zone';

http://dev.mysql.com/doc/refman/5.1/en/time-zone-support.html

That URL has the MySQL side of setting timezones.

Travis Doherty

--- End Message ---
--- Begin Message ---
Might also want to have a look-see at the Date_TimeZone class of the
PEAR::Date package.  It seems pretty comprehensive with regard to time
zone coverage.

-Christopher

--- End Message ---
--- Begin Message ---
On 20 Sep 2006, at 22:47 , [EMAIL PROTECTED] wrote:
   ----- The following addresses had permanent fatal errors -----
<[EMAIL PROTECTED]>

   -----Transcript of session follows -----
... while talking to postoffice.local.:
RCPT To:<[EMAIL PROTECTED]>
<<< 550 5.1.1 unknown or illegal alias: [EMAIL PROTECTED]

I can't be the only person getting these in response to every message I sent the list, can I?

Can someone unsub this person?

--
"I hope someday you know the indescribable joy of having children, and of paying someone else to raise them."
--- End Message ---

Reply via email to