php-general Digest 20 Apr 2010 23:38:13 -0000 Issue 6703

2010-04-20 Thread php-general-digest-help
php-general Digest 20 Apr 2010 23:38:13 - Issue 6703 Topics (messages 304244 through 304272): Re: Mail Function Using PEAR Issues 304244 by: Ken Guest 304259 by: Alice Wei 304268 by: Peter Lind 304269 by: Ashley Sheridan Excel Report Formatting

Re[2]: [PHP] How to do i18n better?

2010-04-20 Thread Andre Polykanine
Hi Ash, Yepp, it's understood. But how exactly did you store the language-specific strings: in an array or using another way? -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ:

Re: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Ken Guest
On Tue, Apr 20, 2010 at 2:10 AM, David McGlone da...@dmcentral.net wrote: On Mon, 2010-04-19 at 08:25 -0400, Alice Wei wrote: I have not changed any of my SMTP settings since my new installation of PHP with Pear. So, I am not sure what the settings are supposed to be. Would I need to install

[PHP] Excel Report Formatting

2010-04-20 Thread Php Developer
Hi, Do you know if there is a way to generate a formated Excel report. I want some rows to be of different colors than the others. Thank you __ Get the name you've always wanted @ymail.com or @rocketmail.com! Go to

RE: [PHP] Excel Report Formatting

2010-04-20 Thread Tommy Pham
-Original Message- From: Php Developer [mailto:pdevelo...@rocketmail.com] Sent: Tuesday, April 20, 2010 8:30 AM To: php-general@lists.php.net Subject: [PHP] Excel Report Formatting Hi, Do you know if there is a way to generate a formated Excel report. I want some rows to be of

RE: [PHP] Excel Report Formatting

2010-04-20 Thread Jay Blanchard
[snip] Do you know if there is a way to generate a formated Excel report. I want some rows to be of different colors than the others. [/snip] STFW or STFA much? This was posted yesterday Stupid browser tricks http://www.evolt.org/node/26896 -- PHP General Mailing List

[PHP] Date Math

2010-04-20 Thread Floyd Resler
I need to get the difference in months between two dates. The dates could be as much as 60 months apart. Is there any easy way to do this either through PHP or MySQL? I know how I can do it through code but thought there might be a simple one or two line option. Thanks! Floyd -- PHP

Re: [PHP] Date Math

2010-04-20 Thread Dan Joseph
On Tue, Apr 20, 2010 at 11:40 AM, Floyd Resler fres...@adex-intl.comwrote: I need to get the difference in months between two dates. The dates could be as much as 60 months apart. Is there any easy way to do this either through PHP or MySQL? I know how I can do it through code but thought

RE: [PHP] Excel Report Formatting

2010-04-20 Thread Tommy Pham
-Original Message- From: Jay Blanchard [mailto:jblanch...@pocket.com] Sent: Tuesday, April 20, 2010 8:40 AM To: Php Developer; php-general@lists.php.net Subject: RE: [PHP] Excel Report Formatting [snip] Do you know if there is a way to generate a formated Excel report. I want

RE: [PHP] Excel Report Formatting

2010-04-20 Thread Jay Blanchard
[snip]I believe the OP wants to format the excel for download. And not display the data in excel like in the web browser.[/snip] He didn't specify that, but you can change the code in the article to save the file and make available for download. -- PHP General Mailing List

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Dan Joseph
Its good to see we're all playing nice today! -- -Dan Joseph www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month. Promo Code NEWTHINGS for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Php Developer
Hi Tommy, The code in the link is traightforward. The problem is you need to install ADOdb. I'm wondering if there is a way to do it from scratch. Thanks - Original Message From: Tommy Pham tommy...@gmail.com To: Php Developer pdevelo...@rocketmail.com; php-general@lists.php.net

Re: Re[2]: [PHP] How to do i18n better?

2010-04-20 Thread Ashley Sheridan
On Tue, 2010-04-20 at 13:34 +0300, Andre Polykanine wrote: Hi Ash, Yepp, it's understood. But how exactly did you store the language-specific strings: in an array or using another way? -- With best regards from Ukraine, Andre Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber:

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Ashley Sheridan
On Tue, 2010-04-20 at 12:50 -0400, Dan Joseph wrote: Its good to see we're all playing nice today! It's still not an excel file but an HTML table sent with an Excel mime-type. This is just asking for trouble if the user does not use Excel, as it's exploiting behaviour that looks very

Re: [PHP] Class constants

2010-04-20 Thread Nathan Rixham
Gary . wrote: On Mon, Apr 19, 2010 at 3:12 PM, Ashley Sheridan wrote: On 19 April 2010 14:24, Gary wrote: Okay. Why not? ... Class constants must be defined with static values, not variables. They are constants after all! If they relied on the value of a variable, surely that would mean

[PHP] Re: Directory permissions question

2010-04-20 Thread Nathan Rixham
Al wrote: I'm working on a hosted website that was hacked and found something I don't fully understand. Thought someone here may know the answer. The site has 4 php malicious files in directories owned by system [php created dirs on the site are named nobody] and permissions 755. Is there

RE: [PHP] Excel Report Formatting

2010-04-20 Thread Tommy Pham
-Original Message- From: Php Developer [mailto:pdevelo...@rocketmail.com] Sent: Tuesday, April 20, 2010 9:52 AM To: Tommy Pham; php-general@lists.php.net Subject: Re: [PHP] Excel Report Formatting Hi Tommy, The code in the link is traightforward. The problem is you need to

RE: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Alice Wei
From: peter.e.l...@gmail.com Date: Mon, 19 Apr 2010 10:15:08 +0200 Subject: Re: [PHP] Mail Function Using PEAR Issues To: aj...@alumni.iu.edu CC: php-general@lists.php.net Most, if not all, mail servers keep log files. You should look for the log files to see if the mail server has sent

Re: [PHP] How to do i18n better?

2010-04-20 Thread Per Jessen
Ashley Sheridan wrote: That's the check I did on the last site i worked on (vicestyle.com) The user agent string is checked for a language and the site uses that. If none is found (bearing in mind that there's no hard and fast rule about what can go into a UA string) then it defaults to

RE: [PHP] Excel Report Formatting

2010-04-20 Thread Jay Blanchard
[snip] It's still not an excel file but an HTML table sent with an Excel mime-type. This is just asking for trouble if the user does not use Excel, as it's exploiting behaviour that looks very particular to Excel and not ALL spreadsheet software. [/snip] This is true, it is exploiting behavior

Re: [PHP] Get Power Saving Settings of the Server

2010-04-20 Thread kranthi
Your server management software may provide a way to get this information either through the command line or through a network interface Using exec('gconftool-2 -g /apps/gnome-power-manager/timeout/sleep_display_ac') helped. Thanks -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How to do i18n better?

2010-04-20 Thread Ashley Sheridan
On Tue, 2010-04-20 at 20:27 +0200, Per Jessen wrote: Ashley Sheridan wrote: That's the check I did on the last site i worked on (vicestyle.com) The user agent string is checked for a language and the site uses that. If none is found (bearing in mind that there's no hard and fast rule

Re: [PHP] Date Math

2010-04-20 Thread tedd
At 11:40 AM -0400 4/20/10, Floyd Resler wrote: I need to get the difference in months between two dates. The dates could be as much as 60 months apart. Is there any easy way to do this either through PHP or MySQL? I know how I can do it through code but thought there might be a simple one

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Php Developer
Hi, somebody knows if it is possible to open excel content in a new window? what i want is basically initialize the headers and instead of echo $content i want it to open in a new window. is that possible? - Original Message From: Tommy Pham tommy...@gmail.com To: Php Developer

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Ashley Sheridan
On Tue, 2010-04-20 at 12:58 -0700, Php Developer wrote: Hi, somebody knows if it is possible to open excel content in a new window? what i want is basically initialize the headers and instead of echo $content i want it to open in a new window. is that possible? - Original Message

Re: [PHP] Date Math

2010-04-20 Thread Paul M Foster
On Tue, Apr 20, 2010 at 03:32:58PM -0400, tedd wrote: At 11:40 AM -0400 4/20/10, Floyd Resler wrote: I need to get the difference in months between two dates. The dates could be as much as 60 months apart. Is there any easy way to do this either through PHP or MySQL? I know how I can do it

Re: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Peter Lind
On 20 April 2010 20:17, Alice Wei aj...@alumni.iu.edu wrote: From: peter.e.l...@gmail.com Date: Mon, 19 Apr 2010 10:15:08 +0200 Subject: Re: [PHP] Mail Function Using PEAR Issues To: aj...@alumni.iu.edu CC: php-general@lists.php.net Most, if not all, mail servers keep log files. You should

Re: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Ashley Sheridan
On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote: On 20 April 2010 20:17, Alice Wei aj...@alumni.iu.edu wrote: From: peter.e.l...@gmail.com Date: Mon, 19 Apr 2010 10:15:08 +0200 Subject: Re: [PHP] Mail Function Using PEAR Issues To: aj...@alumni.iu.edu CC:

RE: [PHP] Excel Report Formatting

2010-04-20 Thread Jay Blanchard
[snip] Hi, somebody knows if it is possible to open excel content in a new window? what i want is basically initialize the headers and instead of echo $content i want it to open in a new window. is that possible? [/snip] Yes, it is possible. a href= target=_blank Is this too obvious?

[PHP] Hello everybody - php newbie from switzerland

2010-04-20 Thread Nick Balestra
Hello everybody, I am NIck, from Locarno (southern switzerland) i am getting into php development for my own start-up company, maybe there are other people near me that would be nice to know for networking and alike. I will post here all my questions if i don't find any answer already on this

Re: [PHP] Excel Report Formatting

2010-04-20 Thread Tommy Pham
On Tue, Apr 20, 2010 at 1:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-04-20 at 12:58 -0700, Php Developer wrote: Hi, somebody knows if it is possible to open excel content in a new window? what i want is basically initialize the headers and instead of echo $content

Re: [PHP] Hello everybody - php newbie from switzerland

2010-04-20 Thread Dan Joseph
On Tue, Apr 20, 2010 at 6:08 PM, Nick Balestra n...@beyounic.com wrote: I am NIck, from Locarno (southern switzerland) i am getting into php development for my own start-up company, maybe there are other people near me that would be nice to know for networking and alike. I will post here all

[PHP] How to enable mail function with postfix supported.

2010-04-20 Thread ttplayer
Hello, The PHP mail function works well with sendmail installed, however, when I install the postfix instead of sendmail , the PHP mail function can't work normally. Why? How can I do with the problem? Should I change the group postfix or apache with the command chgrp? Thank you.

RE: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Alice Wei
Subject: Re: [PHP] Mail Function Using PEAR Issues From: a...@ashleysheridan.co.uk To: peter.e.l...@gmail.com CC: aj...@alumni.iu.edu; php-general@lists.php.net Date: Tue, 20 Apr 2010 21:16:03 +0100 On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote: On 20 April 2010 20:17, Alice

RE: [PHP] Mail Function Using PEAR Issues

2010-04-20 Thread Alice Wei
Subject: Re: [PHP] Mail Function Using PEAR Issues From: a...@ashleysheridan.co.uk To: peter.e.l...@gmail.com CC: aj...@alumni.iu.edu; php-general@lists.php.net Date: Tue, 20 Apr 2010 21:16:03 +0100 On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote: On 20 April 2010 20:17, Alice

Re: [PHP] How to enable mail function with postfix supported.

2010-04-20 Thread Paul M Foster
On Wed, Apr 21, 2010 at 10:16:50AM +0800, ttplayer wrote: Hello, The PHP mail function works well with sendmail installed, however, when I install the postfix instead of sendmail , the PHP mail function can't work normally. Why? How can I do with the problem? Should I change the group

Re: [PHP] How to do i18n better?

2010-04-20 Thread Per Jessen
Ashley Sheridan wrote: On Tue, 2010-04-20 at 20:27 +0200, Per Jessen wrote: Ashley Sheridan wrote: That's the check I did on the last site i worked on (vicestyle.com) The user agent string is checked for a language and the site uses that. If none is found (bearing in mind that there's

Re: [PHP] How to enable mail function with postfix supported.

2010-04-20 Thread Per Jessen
ttplayer wrote: Hello, The PHP mail function works well with sendmail installed, however, when I install the postfix instead of sendmail , the PHP mail function can't work normally. Why? How can I do with the problem? Start by describing the problem in detail. Postfix comes with its own