Re: [PHP] Is there a list of all Timezones as an array or someting?

2006-09-20 Thread Christopher Watson
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stripping with an OB callback

2006-09-20 Thread Christopher Watson
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 :) -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] move_uploaded_file locks?

2006-09-20 Thread Chris
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 copy

Re: [PHP] Is there a list of all Timezones as an array or someting?

2006-09-20 Thread Travis Doherty
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

Re: [PHP] php/css and .htaccess

2006-09-20 Thread Google Kreme
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

Re: [PHP] Is there a list of all Timezones as an array or someting?

2006-09-20 Thread Google Kreme
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 B

Re: [PHP] Resource problem affecting Curl functions

2006-09-20 Thread Google Kreme
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 containe

Re: [PHP] stripping with an OB callback

2006-09-20 Thread Robert Cummings
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

Re: [PHP] stripping with an OB callback

2006-09-20 Thread Christopher Watson
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

Re: [PHP] stripping with an OB callback

2006-09-20 Thread Robert Cummings
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

Re: [PHP] stripping with an OB callback

2006-09-20 Thread Robert Cummings
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

[PHP] stripping with an OB callback

2006-09-20 Thread Christopher Watson
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 outp

[PHP] Re: xsl + xml

2006-09-20 Thread Tony Marston
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

Re: [PHP] 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

2006-09-20 Thread Joe Wollard
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 t

[PHP] 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

2006-09-20 Thread Kelly McCoy
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

Re: [PHP] php/css and .htaccess

2006-09-20 Thread Jürgen Wind
Christopher Weldon wrote: > > tedd wrote: >> Hi gang: >> >> I embedded php code inside css and changed my .htaccess to read -- >> >> >> SetHandler application/x-httpd-php >> >> >> -- so that the css file would be processed and executed by php. The end >> result was that everything worked

Re: [PHP] php/css and .htaccess

2006-09-20 Thread Christopher Weldon
tedd wrote: Hi gang: I embedded php code inside css and changed my .htaccess to read -- SetHandler application/x-httpd-php -- 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 ac

[PHP] php/css and .htaccess

2006-09-20 Thread tedd
Hi gang: I embedded php code inside css and changed my .htaccess to read -- SetHandler application/x-httpd-php -- 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 fi

Re: [PHP] storing function names in db and running them as row is output?

2006-09-20 Thread Christopher Weldon
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 tha

Re: [PHP] Re: Most stable combination of AMP?

2006-09-20 Thread Christopher Weldon
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 st

Re: [PHP] storing function names in db and running them as row is output?

2006-09-20 Thread blackwater dev
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 >

Re: [PHP] storing function names in db and running them as row is output?

2006-09-20 Thread Christopher Weldon
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')

[PHP] Re: storing function names in db and running them as row is output?

2006-09-20 Thread Al
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')

[PHP] storing function names in db and running them as row is output?

2006-09-20 Thread blackwater dev
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 throug

[PHP] move_uploaded_file locks?

2006-09-20 Thread Matthew H. North
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 do

Re: [PHP] Re: Most stable combination of AMP?

2006-09-20 Thread Børge Holen
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

Re: [PHP] Re: Most stable combination of AMP?

2006-09-20 Thread Børge Holen
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

Re: [PHP] Re: Most stable combination of AMP?

2006-09-20 Thread James Tu
I was thinking more along the lines of what version of Apache, MySQL and PHP I should install... -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, My

Re: [PHP] preg_replace (again)

2006-09-20 Thread Pawel Miroslawski
Hi it's example script: '; $replacements[1] = ''; echo preg_replace($patterns, $replacements, $string); ?> It should be ok, but i don't test it. Pawel

[PHP] Re: reading a PDF's title

2006-09-20 Thread Shu Hung (Koala)
Hello all, I worked it out. I actually vi several acrobat file to see the actual code inside. This is my script after my study. This is certainly not the best method, but it works for me. Somebody may be interested it using or improve this. Please tell me if you guys got a better method: ") + 1

Re: [PHP] Re: Most stable combination of AMP?

2006-09-20 Thread Pawel Miroslawski
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 product

[PHP] Re: Most stable combination of AMP?

2006-09-20 Thread Kae Verens
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

[PHP] Most stable combination of AMP?

2006-09-20 Thread James Tu
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 environme

Re: [PHP] Is there a list of all Timezones as an array or someting?

2006-09-20 Thread Chris Boget
I need to have a selectbox filled with the available timezones of PHP. We are using v5.1.x, and it supports the date_default_timezone_set() etc.. As value you can give a string to what timezone. I want all these strings within an array or something so i can create a selectbox so users can select

Re: [PHP] Resource problem affecting Curl functions

2006-09-20 Thread Mark Krenz
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? On Wed, Sep 20, 2006 at 06:34:32AM GMT, Google Kreme [EMAIL PROTECTED] said the following: > On 19 Sep 2006, at 12

[PHP] Re: xsl + xml

2006-09-20 Thread Colin Guthrie
José Manuel Peso Echarri wrote: > 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 ther

[PHP] Hylafax: nweb2fax

2006-09-20 Thread Man-wai Chang
Anyone got an updated and bug-fixed version? The one I got seems to have many serious bugs. -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6.06) Linux 2.6.17.13 ^ ^ 19:50:01 up 11 days

[PHP] Is there a list of all Timezones as an array or someting?

2006-09-20 Thread Mathijs van Veluw
Hello there, I need to have a selectbox filled with the available timezones of PHP. We are using v5.1.x, and it supports the date_default_timezone_set() etc.. As value you can give a string to what timezone. I want all these strings within an array or something so i can create a selectbox so use

[PHP] xsl + xml

2006-09-20 Thread José Manuel Peso Echarri
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 mem

Re: [PHP] php4.3.4 phpinfo shows in mysql section as "Client API version 3.23.49"

2006-09-20 Thread Muthu
> Hi > > get it here: > http://dev.mysql.com/downloads/connector/php/ > > Michal > > Muthu wrote: >> Hi, >> I am using apache2.0+php4.3.4+mysql 4.1.1 in windows. If I >> type phpinfo(); , in mysql section it is coming as "Client API >> version 3.23.49" . To get the latest mysql client li

Re: [PHP] php4.3.4 phpinfo shows in mysql section as "Client API version 3.23.49"

2006-09-20 Thread Michal Stankoviansky
Hi get it here: http://dev.mysql.com/downloads/connector/php/ Michal Muthu wrote: Hi, I am using apache2.0+php4.3.4+mysql 4.1.1 in windows. If I type phpinfo(); , in mysql section it is coming as "Client API version 3.23.49" . To get the latest mysql client library for php4.3.4, wha

[PHP] php4.3.4 phpinfo shows in mysql section as "Client API version 3.23.49"

2006-09-20 Thread Muthu
Hi, I am using apache2.0+php4.3.4+mysql 4.1.1 in windows. If I type phpinfo(); , in mysql section it is coming as "Client API version 3.23.49" . To get the latest mysql client library for php4.3.4, what should I do?. If I need to get the php_mysql.dll for php4.3.4, Where can I get the

Re: [PHP] preg_replace (again) [solved]

2006-09-20 Thread Andrei
Well you can use string strip_tags ( string str [, string allowable_tags] ) function Andy Peter Lauri wrote: > Hi, > > Thanks for you comment. I already changed to . > > About sanitation: Do you know any open source where it checks code if it is > acceptable or not? Or should I just create a li

RE: [PHP] preg_replace (again) [solved]

2006-09-20 Thread Peter Lauri
Hi, Thanks for you comment. I already changed to . About sanitation: Do you know any open source where it checks code if it is acceptable or not? Or should I just create a lib that do some preg_match to see if any javascript tag is inside (assuming javascript should not be allowed). This is a pr

RE: [PHP] preg_replace (again) [solved]

2006-09-20 Thread Robert Cummings
On Wed, 2006-09-20 at 11:45 +0700, Peter Lauri wrote: > Just to share my solution: Out of curiosity, why don't you go with the very well known BBCode system? > preg_replace('/_color:(.*?)_(.*?)_color_/i', '$2', > $html); Hopefully this is a private system, otherwise someone not very nice might d

Re: [PHP] Resource problem affecting Curl functions

2006-09-20 Thread Børge Holen
On Wednesday 20 September 2006 08:34, Google Kreme wrote: > 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? Depends on your config