php-general Digest 21 Apr 2010 12:03:02 -0000 Issue 6704

2010-04-21 Thread php-general-digest-help

php-general Digest 21 Apr 2010 12:03:02 - Issue 6704

Topics (messages 304273 through 304304):

Re: Hello everybody - php newbie from switzerland
304273 by: Dan Joseph
304284 by: David McGlone

How to enable mail function with postfix supported.
304274 by: ttplayer
304277 by: Paul M Foster
304279 by: Per Jessen

Re: Mail Function Using PEAR Issues
304275 by: Alice Wei
304276 by: Alice Wei
304281 by: Peter Lind
304282 by: Ken Guest

Re: How to do i18n better?
304278 by: Per Jessen

PHP imap_open login delay (Cyrus IMAP)
304280 by: Evgeniy Arbatov

replying to list
304283 by: David McGlone
304285 by: Michiel Sikma
304287 by: Daniel Egeberg
304288 by: Ashley Sheridan
304289 by: Karl DeSaulniers
304291 by: David McGlone
304292 by: David McGlone
304293 by: David McGlone
304295 by: Andre Polykanine
304296 by: Per Jessen
304298 by: Karl DeSaulniers
304300 by: Nick Balestra
304301 by: Ashley Sheridan
304303 by: Peter Lind
304304 by: David Robley

Re: Date Math
304286 by: Michiel Sikma

Want a answer about php-cgi
304290 by: Sharl.Jimh.Tsin
304297 by: shiplu
304299 by: Sharl.Jimh.Tsin
304302 by: Sharl.Jimh.Tsin

ViaFirma php Client
304294 by: Ruben Crespo

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---
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
 my questions if i don't find any answer already on this list.


Hi Nick,

Welcome to the community!

-- 
-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
---End Message---
---BeginMessage---
On Wed, 2010-04-21 at 00:08 +0200, Nick Balestra wrote:
 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 list.
 

Welcome to the list Nick. Words of Wisdom: Don't ask if PHP supports
threading. ;-)

-- 
Blessings,
David M.

---End Message---
---BeginMessage---
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.---End Message---
---BeginMessage---
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 
 postfix or apache with the command chgrp?
  Thank you.

Postfix is meant to function almost identically to sendmail, and usually
has its own sendmail command which calls postfix. However, if you
don't configure postfix properly, it won't work properly. That said,
what do you mean by, can't work normally?

Paul

-- 
Paul M. Foster
---End Message---
---BeginMessage---
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
sendmail equivalent, yuo should not have any problem using postfix. I
certainly don't.


-- 
Per Jessen, Zürich (8.2°C)

---End Message---
---BeginMessage---


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-gene...@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 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-gene...@lists.php.net

 Most, if not all, mail servers keep log files. You should look for the
 log files to see if the mail 

[PHP] PHP imap_open login delay (Cyrus IMAP)

2010-04-21 Thread Evgeniy Arbatov
Hello,

I would like to ask you a question about the PHP imap_open call.

I have an issue with imap_open producing an unreasonable delay when
logging into the Cyrus IMAP server. The delay is exactly 5 seconds and
it is constant across different connections.

  1   0.00  TCP 40496  imap [SYN] Seq=0 Win=5840 Len=0 MSS=1460
TSV=5166 TSER=0 WS=6

  2   0.588600  TCP imap  40496 [SYN, ACK] Seq=0 Ack=1 Win=5792 Len=0
MSS=1350 TSV=3543919597 TSER=5166 WS=6

  3   0.588659  TCP 40496  imap [ACK] Seq=1 Ack=1 Win=5888 Len=0
TSV=5225 TSER=3543919597

  4   0.597507  IMAP Response: * OK [CAPABILITY IMAP4 IMAP4rev1
LITERAL+ ID STARTTLS] Cyrus IMAP v2.3.14 server ready

  5   0.597527  TCP 40496  imap [ACK] Seq=1 Ack=127 Win=5888 Len=0
TSV=5226 TSER=3543919613

  6   5.643035  IMAP Request:  LOGIN username password

   
  7   5.750195  TCP imap  40496 [ACK] Seq=127 Ack=35 Win=5824 Len=0
TSV=3543924696 TSER=5731

  8   5.945506  IMAP Response:  OK ...

The Cyrus IMAP server is working fine and responds without delay to
non-PHP logins. On the other hand, when imap_open is called for
Courier IMAP server, there is no 5 seconds delay and PHP logins
proceed smoothly.

The code I am using for PHP imap_open is

 ?php
$host = {10.10.10.10:143/notls};
imap_open($host.mb_convert_encoding(INBOX,
'UTF7-IMAP','UTF-8'),username,password);
?

I am new to PHP and would be much grateful to receive pointers for
debugging this issue.

Thank you!

Evgeniy

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



Re: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Peter Lind
On 21 April 2010 04:25, Alice Wei aj...@alumni.iu.edu wrote:
 Well, from my experience with Ubuntu, looks like that it does not do that. 
 Unless, I am doing it wrong?

So did you try using the 'smtp' backend and passing all the connection
details rather than 'mail'?

--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
/hype

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



Re: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Ken Guest
The PEAR Mail package does not fall back from one mechanism to another
if the first fails.


On Tue, Apr 20, 2010 at 9:16 PM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
 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: 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 your mail properly or is
  experiencing problems (those may not feed back into PHP).
 
  Regards
  Peter
 
  --
  hype
  WWW: http://plphp.dk / http://plind.dk
  LinkedIn: http://www.linkedin.com/in/plind
  Flickr: http://www.flickr.com/photos/fake51
  BeWelcome: Fake51
  Couchsurfing: Fake51
  /hype
 
  You know where I can find that? I use Evolution Mail, a mail server? I 
  found
  it through Ubuntu yesterday. Here is the link:
  http://projects.gnome.org/evolution/ It asks me to put in the type of mail
  service I used, it grabbed Google, which is smtp.google.com. I still cannot
  send mail. I start to wonder what is going on.
 
  Alice
 

 Evolution is a mail client, not a mail server. Apart from that, you're
 using the 'mail' (PHPs mail function) as the backend mailer in your
 PEAR script - try using smtp instead and pass the SMTP config data you
 normally use. Have a look at
 http://pear.php.net/manual/en/package.mail.mail.factory.php - the smtp
 part.

 Regards
 Peter

 --
 hype
 WWW: http://plphp.dk / http://plind.dk
 LinkedIn: http://www.linkedin.com/in/plind
 Flickr: http://www.flickr.com/photos/fake51
 BeWelcome: Fake51
 Couchsurfing: Fake51
 /hype



 If you've got Pear on Ubuntu, can Pear not default to sendmail if no
 SMTP connection is set up?

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk






-- 
http://blogs.linux.ie/kenguest/

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



[PHP] replying to list

2010-04-21 Thread David McGlone

Why is the list set up to reply to the OP and not the list?

-- 
Blessings,
David M.


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



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

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 00:08 +0200, Nick Balestra wrote:
 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 list.
 

Welcome to the list Nick. Words of Wisdom: Don't ask if PHP supports
threading. ;-)

-- 
Blessings,
David M.


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



Re: [PHP] replying to list

2010-04-21 Thread Michiel Sikma
On 21 April 2010 11:23, David McGlone da...@dmcentral.net wrote:


 Why is the list set up to reply to the OP and not the list?

 --
 Blessings,
 David M.


Is it? I didn't notice. I just use reply to all which puts the list in the
CC, and that works just fine for me.

Michiel


Re: [PHP] Date Math

2010-04-21 Thread Michiel Sikma
On 20 April 2010 17:40, Floyd Resler fres...@adex-intl.com 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 or two line option.

 Thanks!
 Floyd


You're best off doing this in MySQL.
Something like select timestampdiff(month, '2010-01-01', '2010-05-22');
should work.

Michiel


Re: [PHP] replying to list

2010-04-21 Thread Daniel Egeberg
On Wed, Apr 21, 2010 at 11:23, David McGlone da...@dmcentral.net wrote:
 Why is the list set up to reply to the OP and not the list?

Try having a look at the headers. These are the headers on the mail you sent:

From: David McGlone da...@dmcentral.net
To: PHP php-general@lists.php.net

It is standard for an email client to reply to the email in the From
header (unless Reply-To is present). Reply all generally makes your
client send a CC to all the other recipients as well.

-- 
Daniel Egeberg

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



Re: [PHP] replying to list

2010-04-21 Thread Ashley Sheridan
On Wed, 2010-04-21 at 05:23 -0400, David McGlone wrote:

 Why is the list set up to reply to the OP and not the list?
 
 -- 
 Blessings,
 David M.
 
 


It's just standard list format I thought. A decent email client will
recognise the email is a mailing list one and give you the options to
reply to the list instead of using reply to all.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] replying to list

2010-04-21 Thread Karl DeSaulniers

Hi,
I think the problem or the bad form, if you will, is using reply-all.
All you need to do is hit reply and it should just send a message  
back to the list. Everyone gets the list messages.
If the reply-to is not set, type in the list email in the to and the  
reply-to in your message
and that should set the stage for a reply-to to be present in the  
thread.
I for one don't know how many email duplicates I have had to delete  
because someone hit reply-all.

Gets messy on big threads, but I manage.

Be nice if that wasn't so. :)

Best,

Karl


On Apr 21, 2010, at 4:36 AM, Ashley Sheridan wrote:


On Wed, 2010-04-21 at 05:23 -0400, David McGlone wrote:


Why is the list set up to reply to the OP and not the list?

--
Blessings,
David M.





It's just standard list format I thought. A decent email client will
recognise the email is a mailing list one and give you the options to
reply to the list instead of using reply to all.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Karl DeSaulniers
Design Drumm
http://designdrumm.com


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



[PHP] Want a answer about php-cgi

2010-04-21 Thread Sharl.Jimh.Tsin
hi,everyone

I installed php 5.3.2 from source.
this is my configurate string:
  $ ./configure --prefix=/usr/local/php --bindir=/usr/local/bin
--sbindir=/usr/local/sbin --sysconfdir=/etc/sysconfig
--localstatedir=/var --enable-fpm --enable-calendar
--enable-dba-shared --enable-exif --enable-ftp --enable-gd-native-ttf
--enable-intl --enable-mbstring --enable-soap --enable-sockets
--enable-wddx --enable-zip --enable-zend-multibyte
--with-libevent-dir=/usr/local/libevent --with-fpm-user=http
--with-fpm-group=web --with-config-file-path=/etc/sysconfig/php.ini
--with-openssl --with-kerberos --with-zlib --with-bz2 --with-gd
--with-mhash --with-imap --with-imap-ssl --with-ldap --with-mcrypt
--with-mysql=/usr/local/mysql --with-mysql-sock=/tmp
--with-mysqli=/usr/local/bin/mysql_config --with-xmlrpc

after make install.

i can not find php-cgi file in the bin/sbin directory. WHY?
(--disable-cgi is not used)

Best regards,
Sharl.Jimh.Tsin

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



Re: [PHP] replying to list

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 11:34 +0200, Michiel Sikma wrote:
 On 21 April 2010 11:23, David McGlone da...@dmcentral.net wrote:
 
 
  Why is the list set up to reply to the OP and not the list?
 
  --
  Blessings,
  David M.
 
 
 Is it? I didn't notice. I just use reply to all which puts the list in the
 CC, and that works just fine for me.

reply to all works, but then we end up with 2 messages, and if you have
your mail client set up to filter mail into folders, then each message
ends up in 2 different places.

I've replied to several posts on the list, and I forget that the reply
button only replies to the OP and my posts don't make it to the list
unless I send them again.
-- 
Blessings,
David M.


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



Re: [PHP] replying to list

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 10:36 +0100, Ashley Sheridan wrote:
 On Wed, 2010-04-21 at 05:23 -0400, David McGlone wrote:
 
  Why is the list set up to reply to the OP and not the list?
  
  -- 
  Blessings,
  David M.
  
  
 
 
 It's just standard list format I thought. A decent email client will
 recognise the email is a mailing list one and give you the options to
 reply to the list instead of using reply to all.

The reply to all sends 2 e-mails, one to the list, and one to the OP,
just like I did with this message. Now you are going to get 2 of these
messages but if the list was set up differently, then when hitting the
reply button, it would automatically send directly to the list and not
the OP.

I use Evolution, Kmail, and occasionally lookout and all of them are
decent e-mail clients. Also, of all the mailing lists I am on, this is
the only one that, when replying it goes to the OP and not the list.

I'm not trying to solicit a change, I'm just wondering why this list has
this behavior, which in my opinion is tedious.
-- 
Blessings,
David M.


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



Re: [PHP] replying to list

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 05:08 -0500, Karl DeSaulniers wrote:
 Hi,
 I think the problem or the bad form, if you will, is using reply-all.
 All you need to do is hit reply and it should just send a message  
 back to the list. Everyone gets the list messages.
 If the reply-to is not set, type in the list email in the to and the  
 reply-to in your message
 and that should set the stage for a reply-to to be present in the  
 thread.
 I for one don't know how many email duplicates I have had to delete  
 because someone hit reply-all.
 Gets messy on big threads, but I manage.

This is what I'm getting, but when hitting reply to this message of
yours, it does go to the list and not both the list and you personally.

Maybe it's not how the list is set up, but instead how people are
replying to the list.

dunno.

-- 
Blessings,
David M.


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



[PHP] ViaFirma php Client

2010-04-21 Thread Ruben Crespo
Has someone  implemented the php client of viafirma [
http://www.viafirma.com/]?

Thanks !!!

-- 
http://peachep.wordpress.com


Re[2]: [PHP] replying to list

2010-04-21 Thread Andre Polykanine
Hello David,

I agree with you, David. I'm subscribed to twenty mailing lists or so,
and it's the only one that is set in a such weird way. I have a
template that works if replying to the list, but here it obviously
doesn't work.
-- 
With best regards from Ukraine,
Andre
Skype: Francophile; WlmMSN: arthaelon @ yandex.ru; Jabber: arthaelon @ 
jabber.org
Yahoo! messenger: andre.polykanine; ICQ: 191749952
Twitter: m_elensule

- Original message -
From: David McGlone da...@dmcentral.net
To: Michiel Sikma mich...@thingmajig.org
Date: Wednesday, April 21, 2010, 1:33:34 PM
Subject: [PHP] replying to list

On Wed, 2010-04-21 at 11:34 +0200, Michiel Sikma wrote:
 On 21 April 2010 11:23, David McGlone da...@dmcentral.net wrote:
 
 
  Why is the list set up to reply to the OP and not the list?
 
  --
  Blessings,
  David M.
 
 
 Is it? I didn't notice. I just use reply to all which puts the list in the
 CC, and that works just fine for me.

reply to all works, but then we end up with 2 messages, and if you have
your mail client set up to filter mail into folders, then each message
ends up in 2 different places.

I've replied to several posts on the list, and I forget that the reply
button only replies to the OP and my posts don't make it to the list
unless I send them again.
-- 
Blessings,
David M.


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



Re: [PHP] replying to list

2010-04-21 Thread Per Jessen
David McGlone wrote:

 I use Evolution, Kmail, and occasionally lookout and all of them are
 decent e-mail clients. Also, of all the mailing lists I am on, this is
 the only one that, when replying it goes to the OP and not the list.

http://www.unicom.com/pw/reply-to-harmful.html

I haven't checked, but I think all the lists I am on behave like this
one. 


-- 
Per Jessen, Zürich (14.8°C)


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



Re: [PHP] Want a answer about php-cgi

2010-04-21 Thread shiplu
Did you try   --with-fastcgi or --enable-fastcgi





Shiplu Mokaddim
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)



On Wed, Apr 21, 2010 at 5:17 PM, Sharl.Jimh.Tsin amoiz.sh...@gmail.com wrote:
 i can not find php-cgi file in the bin/sbin directory. WHY?

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



Re: [PHP] replying to list

2010-04-21 Thread Karl DeSaulniers

Exactly.
:)

Karl

On Apr 21, 2010, at 5:38 AM, David McGlone wrote:


Maybe it's not how the list is set up, but instead how people are
replying to the list.


Karl DeSaulniers
Design Drumm
http://designdrumm.com


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



Re: [PHP] Want a answer about php-cgi

2010-04-21 Thread Sharl.Jimh.Tsin
Sorry,i don't add it.

and i can not find them in the ./configure --help context.

does this string really exist?

thankx a lot.

Best regards,
Sharl.Jimh.Tsin



2010/4/21 shiplu shiplu@gmail.com:
 Did you try   --with-fastcgi or --enable-fastcgi





 Shiplu Mokaddim
 My talks, http://talk.cmyweb.net
 Follow me, http://twitter.com/shiplu
 SUST Programmers, http://groups.google.com/group/p2psust
 Innovation distinguishes bet ... ... (ask Steve Jobs the rest)



 On Wed, Apr 21, 2010 at 5:17 PM, Sharl.Jimh.Tsin amoiz.sh...@gmail.com 
 wrote:
 i can not find php-cgi file in the bin/sbin directory. WHY?


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



Re: [PHP] replying to list

2010-04-21 Thread Nick Balestra
Not really i think, because by replying it just direct reply to the OP, while 
other systems like google groups for example by replying you just post to the 
list, and actually make more sense.

the easy way is to hit reply and change the to into php-general@lists.php.net 
or reply to all and replace to with the cc. I think the best practice is to 
take this 5 second to take care of this in order to avoid duplicate message to 
others.

cheers

Nick

On Apr 21, 2010, at 12:45 PM, Karl DeSaulniers wrote:

 Exactly.
 :)
 
 Karl
 
 On Apr 21, 2010, at 5:38 AM, David McGlone wrote:
 
 Maybe it's not how the list is set up, but instead how people are
 replying to the list.
 
 Karl DeSaulniers
 Design Drumm
 http://designdrumm.com
 
 
 -- 
 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



Re: [PHP] replying to list

2010-04-21 Thread Ashley Sheridan
On Wed, 2010-04-21 at 13:00 +0200, Nick Balestra wrote:

 Not really i think, because by replying it just direct reply to the OP, while 
 other systems like google groups for example by replying you just post to the 
 list, and actually make more sense.
 
 the easy way is to hit reply and change the to into 
 php-general@lists.php.net or reply to all and replace to with the cc. I 
 think the best practice is to take this 5 second to take care of this in 
 order to avoid duplicate message to others.
 
 cheers
 
 Nick
 
 On Apr 21, 2010, at 12:45 PM, Karl DeSaulniers wrote:
 
  Exactly.
  :)
  
  Karl
  
  On Apr 21, 2010, at 5:38 AM, David McGlone wrote:
  
  Maybe it's not how the list is set up, but instead how people are
  replying to the list.
  
  Karl DeSaulniers
  Design Drumm
  http://designdrumm.com
  
  
  -- 
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
 
 


I'm only on one other mailing list, but it behaves exactly the same as
the php-general one. It makes sense really to me, as the email is coming
from the person who wrote it, and it's behaving as if we're just bcc'd
in as a list. I think the fault is with the email clients that don't
understand mailing lists.

Incidentally, I saw someone mention the Evolution email client in this
thread. It's what I use, and it does have a reply to list option (but I
tend to be a bit lazy and hit reply to all as the option is in a menu
and not on the toolbar :-/ )

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] Want a answer about php-cgi

2010-04-21 Thread Sharl.Jimh.Tsin
added it,but still no found. 囧rz

Best regards,
Sharl.Jimh.Tsin



2010/4/21 Sharl.Jimh.Tsin amoiz.sh...@gmail.com:
 Sorry,i don't add it.

 and i can not find them in the ./configure --help context.

 does this string really exist?

 thankx a lot.

 Best regards,
 Sharl.Jimh.Tsin



 2010/4/21 shiplu shiplu@gmail.com:
 Did you try   --with-fastcgi or --enable-fastcgi





 Shiplu Mokaddim
 My talks, http://talk.cmyweb.net
 Follow me, http://twitter.com/shiplu
 SUST Programmers, http://groups.google.com/group/p2psust
 Innovation distinguishes bet ... ... (ask Steve Jobs the rest)



 On Wed, Apr 21, 2010 at 5:17 PM, Sharl.Jimh.Tsin amoiz.sh...@gmail.com 
 wrote:
 i can not find php-cgi file in the bin/sbin directory. WHY?



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



Re: [PHP] replying to list

2010-04-21 Thread Peter Lind
On 21 April 2010 12:38, David McGlone da...@dmcentral.net wrote:
 Maybe it's not how the list is set up, but instead how people are
 replying to the list.

One would think that in a tech world where most programmers/developers
try to minimize the workload and a good programmer is lazy is seen
as meaningful and/or true, more people would get annoyed with having
to spend 5 seconds manually copying an email address from one field to
another when there is in fact a solution to this problem (and has been
for a very long time): proper setup of the mailing list with a
'reply-to' field. (and no, I don't think the possibilities of a
misconfigured OoO/autoreply is worth the hassle to the amount of
people using this mailing list - there are mail filters for things
like that).

-- 
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
/hype

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



Re: [PHP] replying to list

2010-04-21 Thread David Robley
Ashley Sheridan wrote:

 On Wed, 2010-04-21 at 13:00 +0200, Nick Balestra wrote:
 
 Not really i think, because by replying it just direct reply to the OP,
 while other systems like google groups for example by replying you just
 post to the list, and actually make more sense.
 
 the easy way is to hit reply and change the to into
 php-general@lists.php.net or reply to all and replace to with the cc.
 I think the best practice is to take this 5 second to take care of this
 in order to avoid duplicate message to others.
 
 cheers
 
 Nick
 
 On Apr 21, 2010, at 12:45 PM, Karl DeSaulniers wrote:
 
  Exactly.
  :)
  
  Karl
  
  On Apr 21, 2010, at 5:38 AM, David McGlone wrote:
  
  Maybe it's not how the list is set up, but instead how people are
  replying to the list.
  
  Karl DeSaulniers
  Design Drumm
  http://designdrumm.com
  
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
  
 
 
 
 
 I'm only on one other mailing list, but it behaves exactly the same as
 the php-general one. It makes sense really to me, as the email is coming
 from the person who wrote it, and it's behaving as if we're just bcc'd
 in as a list. I think the fault is with the email clients that don't
 understand mailing lists.
 
 Incidentally, I saw someone mention the Evolution email client in this
 thread. It's what I use, and it does have a reply to list option (but I
 tend to be a bit lazy and hit reply to all as the option is in a menu
 and not on the toolbar :-/ )
 
 Thanks,
 Ash
 http://www.ashleysheridan.co.uk

This is an oldie but I think it is still a goodie in respect of this
discussion.

http://www.unicom.com/pw/reply-to-harmful.html


Cheers
-- 
David Robley

On an electrician's truck: Let Us Remove Your Shorts
Today is Sweetmorn, the 38th day of Discord in the YOLD 3176. 


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



[PHP] replying to list (I give up)

2010-04-21 Thread David McGlone
I give up. trying to reply to messages on this list is tedious. I can't
pinpoint whether it's because the list is set up to make replies go to
the OP or the OP has his reply-to in his mail client set, or most people
are hitting the reply-to button instead of simply reply.

It just doesn't make sense to me, why be on the mailing list if it
hinders having a group discussion without having to jump through
hurdles. It also defeats the purpose of being on a group list if
replying sends the reply to the OP.

Every message sent to this list, simply hitting reply should send back
to this list and not the OP.
-- 
Blessings,
David M.


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread shiplu
The reply-to header should be changed to php-gene...@lists.php.net.
I experience many dev list that are configured this way.
So, in my gmail i change my habit to press a instead of r.

Shiplu Mokaddim
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

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



Re: [PHP] Date Math

2010-04-21 Thread Floyd Resler

On Apr 21, 2010, at 5:39 AM, Michiel Sikma wrote:

 On 20 April 2010 17:40, Floyd Resler fres...@adex-intl.com 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 or two line option.
 
 Thanks!
 Floyd
 
 
 You're best off doing this in MySQL.
 Something like select timestampdiff(month, '2010-01-01', '2010-05-22');
 should work.
 
 Michiel

Perfect!  That's exactly what I was looking for!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Per Jessen
David McGlone wrote:

 I give up. trying to reply to messages on this list is tedious. I
 can't pinpoint whether it's because the list is set up to make replies
 go to the OP or the OP has his reply-to in his mail client set, or
 most people are hitting the reply-to button instead of simply reply.

Did you try Reply-All ?  That usually does it for me.

 It just doesn't make sense to me, why be on the mailing list if it
 hinders having a group discussion without having to jump through
 hurdles. It also defeats the purpose of being on a group list if
 replying sends the reply to the OP.

Reply-All. 



-- 
Per Jessen, Zürich (16.2°C)


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Daniel Egeberg
On Wed, Apr 21, 2010 at 14:27, David McGlone da...@dmcentral.net wrote:
 I give up. trying to reply to messages on this list is tedious. I can't
 pinpoint whether it's because the list is set up to make replies go to
 the OP or the OP has his reply-to in his mail client set, or most people
 are hitting the reply-to button instead of simply reply.

Then get a better email client if yours doesn't support reply to all
or reply to group. It's hardly the mailing list's fault that your
client doesn't support that.

-- 
Daniel Egeberg

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Hans Åhlin
Why change the way that has been around for years and adopted by
multiple e-mail lists?
It feels like it's more problem to change the way for thousands of
users just to satisfy a couple of few.

**
 Hans Åhlin
   Tel: +46761488019
   http://www.kronan-net.com/
   irc://irc.freenode.net:6667 - TheCoin
**



2010/4/21 David McGlone da...@dmcentral.net:
 I give up. trying to reply to messages on this list is tedious. I can't
 pinpoint whether it's because the list is set up to make replies go to
 the OP or the OP has his reply-to in his mail client set, or most people
 are hitting the reply-to button instead of simply reply.

 It just doesn't make sense to me, why be on the mailing list if it
 hinders having a group discussion without having to jump through
 hurdles. It also defeats the purpose of being on a group list if
 replying sends the reply to the OP.

 Every message sent to this list, simply hitting reply should send back
 to this list and not the OP.
 --
 Blessings,
 David M.


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Peter Lind
On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:
 Why change the way that has been around for years and adopted by
 multiple e-mail lists?
 It feels like it's more problem to change the way for thousands of
 users just to satisfy a couple of few.

David was venting based on a discussion in another thread. I'm pretty
sure he knows about the option to reply-all - that's part of the
reason for venting (it sends multiple emails instead of just the one
needed). The optimal scenario is to: 1) be able to quickly respond to
the list, as that's the normal action you want to do and 2) not spam
people with several emails for no reason (i.e. avoid replying to the
OP AND the list).

-- 
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
/hype

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 14:42 +0200, Daniel Egeberg wrote:
 On Wed, Apr 21, 2010 at 14:27, David McGlone da...@dmcentral.net wrote:
  I give up. trying to reply to messages on this list is tedious. I can't
  pinpoint whether it's because the list is set up to make replies go to
  the OP or the OP has his reply-to in his mail client set, or most people
  are hitting the reply-to button instead of simply reply.
 
 Then get a better email client if yours doesn't support reply to all
 or reply to group. It's hardly the mailing list's fault that your
 client doesn't support that.

My email client does support reply to all, but it's IMHO
inconsiderate.

Think about people that have to pay for every Mb they download. reply
to all causes these people to have to pay for duplicates.

Now if somebody on this list was paying for their downloads, then you
and I am costing them money by using reply to all and now there are 2
duplicate messages for them the download.

How would you feel if this was you?

-- 
Blessings,
David M.


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Ashley Sheridan
On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote:

 On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:
  Why change the way that has been around for years and adopted by
  multiple e-mail lists?
  It feels like it's more problem to change the way for thousands of
  users just to satisfy a couple of few.
 
 David was venting based on a discussion in another thread. I'm pretty
 sure he knows about the option to reply-all - that's part of the
 reason for venting (it sends multiple emails instead of just the one
 needed). The optimal scenario is to: 1) be able to quickly respond to
 the list, as that's the normal action you want to do and 2) not spam
 people with several emails for no reason (i.e. avoid replying to the
 OP AND the list).
 
 -- 
 hype
 WWW: http://plphp.dk / http://plind.dk
 LinkedIn: http://www.linkedin.com/in/plind
 Flickr: http://www.flickr.com/photos/fake51
 BeWelcome: Fake51
 Couchsurfing: Fake51
 /hype
 


As I mentioned earlier, the Evolution mail client has a reply to list
option which I've used to send this to the list. A decent email client
*will* have this option somewhere, but if anyone is using one that
doesn't, Evolution is available for the majority of operating systems
out there.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] replying to list (I give up)

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote:
 On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:
  Why change the way that has been around for years and adopted by
  multiple e-mail lists?
  It feels like it's more problem to change the way for thousands of
  users just to satisfy a couple of few.
 
 David was venting based on a discussion in another thread. I'm pretty
 sure he knows about the option to reply-all - that's part of the
 reason for venting (it sends multiple emails instead of just the one
 needed). The optimal scenario is to: 1) be able to quickly respond to
 the list, as that's the normal action you want to do and 2) not spam
 people with several emails for no reason (i.e. avoid replying to the
 OP AND the list).

Exactly. I also feel bad for those who have to pay to download per Mb,
GB, etc.

It's pitiful that once I send this E-Mail, Peter and Hans both will get
2 of the exact messages.

-- 
Blessings,
David M.


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Ashley Sheridan
On Wed, 2010-04-21 at 08:56 -0400, David McGlone wrote:

 On Wed, 2010-04-21 at 14:42 +0200, Daniel Egeberg wrote:
  On Wed, Apr 21, 2010 at 14:27, David McGlone da...@dmcentral.net wrote:
   I give up. trying to reply to messages on this list is tedious. I can't
   pinpoint whether it's because the list is set up to make replies go to
   the OP or the OP has his reply-to in his mail client set, or most people
   are hitting the reply-to button instead of simply reply.
  
  Then get a better email client if yours doesn't support reply to all
  or reply to group. It's hardly the mailing list's fault that your
  client doesn't support that.
 
 My email client does support reply to all, but it's IMHO
 inconsiderate.
 
 Think about people that have to pay for every Mb they download. reply
 to all causes these people to have to pay for duplicates.
 
 Now if somebody on this list was paying for their downloads, then you
 and I am costing them money by using reply to all and now there are 2
 duplicate messages for them the download.
 
 How would you feel if this was you?
 
 -- 
 Blessings,
 David M.
 
 


Did you read the link that David Robley sent on the original thread you
made?
http://www.unicom.com/pw/reply-to-harmful.html

What you're proposing would cause a lot of problems for the sake of a
few people. And I hardly think that a few emails are going to cause a
bandwidth issue for anybody. If bandwidth was such an issue, they'd be
using an email client that only downloaded the email headers first, and
from there you could easily discern the duplicate messages.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] replying to list

2010-04-21 Thread Robert Cummings


Karl DeSaulniers wrote:

Hi,
I think the problem or the bad form, if you will, is using reply-all.
All you need to do is hit reply and it should just send a message  
back to the list. Everyone gets the list messages.
If the reply-to is not set, type in the list email in the to and the  
reply-to in your message
and that should set the stage for a reply-to to be present in the  
thread.
I for one don't know how many email duplicates I have had to delete  
because someone hit reply-all.

Gets messy on big threads, but I manage.

Be nice if that wasn't so. :)


I like the reply-all option. When someone uses it for a thread in which 
I am active and for a message to which I've responded then I generally 
get their response before the list sends it... not that the list is slow 
by any measure from my end.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



RE: [PHP] replying to list

2010-04-21 Thread Bob McConnell
From: David Robley
 Ashley Sheridan wrote:
 On Wed, 2010-04-21 at 13:00 +0200, Nick Balestra wrote:
 
 Not really i think, because by replying it just direct reply to the
OP,
 while other systems like google groups for example by replying you
just
 post to the list, and actually make more sense.
 
 the easy way is to hit reply and change the to into
 php-general@lists.php.net or reply to all and replace to with the
cc.
 I think the best practice is to take this 5 second to take care of
this
 in order to avoid duplicate message to others.
 
 On Apr 21, 2010, at 12:45 PM, Karl DeSaulniers wrote:
 
  Exactly.
  :)
  
  Karl
  
  On Apr 21, 2010, at 5:38 AM, David McGlone wrote:
  
  Maybe it's not how the list is set up, but instead how people are
  replying to the list.
  
 
 I'm only on one other mailing list, but it behaves exactly the same
as
 the php-general one. It makes sense really to me, as the email is
coming
 from the person who wrote it, and it's behaving as if we're just
bcc'd
 in as a list. I think the fault is with the email clients that don't
 understand mailing lists.
 
 Incidentally, I saw someone mention the Evolution email client in
this
 thread. It's what I use, and it does have a reply to list option (but
I
 tend to be a bit lazy and hit reply to all as the option is in a menu
 and not on the toolbar :-/ )
 
 This is an oldie but I think it is still a goodie in respect of this
 discussion.
 
 http://www.unicom.com/pw/reply-to-harmful.html
 

I have a couple of problems with that article. First, he still
references RFC822 a year and a half after it was superseded by RFC2822.
So he is already out of step with reality. (RFC2822 was itself
superseded by RFC5322 on Oct 1, 2008.)

Second, I don't agree with his definition of a reasonable mailer. He
recommends several processes that do not sound at all reasonable to me.
But I have only been using email for 27 years, so what do I know.

Third, and most importantly, he obviously had never dealt with a PHB
that required him to use a specific OS, mail client and servers that by
design will never be reasonable by anybody's definition. Many of us
simply don't get a choice.

I just did a quick check of the half dozen mailing lists I subscribe to
here at work, and they are split 50/50 on whether Reply goes back to the
list or the OP. So I suspect a consensus is unlikely.

Bob McConnell

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Robert Cummings

David McGlone wrote:

On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote:

On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:

Why change the way that has been around for years and adopted by
multiple e-mail lists?
It feels like it's more problem to change the way for thousands of
users just to satisfy a couple of few.

David was venting based on a discussion in another thread. I'm pretty
sure he knows about the option to reply-all - that's part of the
reason for venting (it sends multiple emails instead of just the one
needed). The optimal scenario is to: 1) be able to quickly respond to
the list, as that's the normal action you want to do and 2) not spam
people with several emails for no reason (i.e. avoid replying to the
OP AND the list).


Exactly. I also feel bad for those who have to pay to download per Mb,
GB, etc.

It's pitiful that once I send this E-Mail, Peter and Hans both will get
2 of the exact messages.


I thought you just wanted to know why it is the way it is? Now you're 
passing judgement.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Ken Kixmoeller

Daniel Egeberg wrote:


Then get a better email client if yours doesn't support reply to all
or reply to group. It's hardly the mailing list's fault that your
client doesn't support that.


Nonsense. I have used lists like this for many, many years. PHP lists 
are the only ones I have ever used that behave this way. All the others 
I have used are configured that a simple Reply replies to the list.


Sure, you can always Reply All but then you get multiple replies from 
the same person to the same post. Plus, it is really easy to forget.


In my opinion, it is idiotic.

OTOH, what is important to me is the quality of the information that 
comes in from you incredibly generous people. Thank you to all posters. 
You are the best.


The list behavior is just an irritant, but it pales in comparison to the 
benefit.



Ken

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 13:56 +0100, Ashley Sheridan wrote:
 On Wed, 2010-04-21 at 08:56 -0400, David McGlone wrote:
 
  On Wed, 2010-04-21 at 14:42 +0200, Daniel Egeberg wrote:
   On Wed, Apr 21, 2010 at 14:27, David McGlone da...@dmcentral.net wrote:
I give up. trying to reply to messages on this list is tedious. I can't
pinpoint whether it's because the list is set up to make replies go to
the OP or the OP has his reply-to in his mail client set, or most people
are hitting the reply-to button instead of simply reply.
   
   Then get a better email client if yours doesn't support reply to all
   or reply to group. It's hardly the mailing list's fault that your
   client doesn't support that.
  
  My email client does support reply to all, but it's IMHO
  inconsiderate.
  
  Think about people that have to pay for every Mb they download. reply
  to all causes these people to have to pay for duplicates.
  
  Now if somebody on this list was paying for their downloads, then you
  and I am costing them money by using reply to all and now there are 2
  duplicate messages for them the download.
  
  How would you feel if this was you?
  
  -- 
  Blessings,
  David M.
  
  
 
 
 Did you read the link that David Robley sent on the original thread you
 made?
 http://www.unicom.com/pw/reply-to-harmful.html

Yes. but if it was so harmful, why does the 40, 50 or so lists that I've
been on, simply let you hit the reply and it goes back to the list?

I am not arguing or upset, I am just so puzzled as to why the list has
this behavior. It is tedious to have to remember which lists I am on
will accept simply hitting the reply and those that don't.

 
 What you're proposing would cause a lot of problems for the sake of a
 few people.

I'm not proposing anything. Don't get me wrong. It's just so mind
boggling why this behavior. I read and understand the idea behind that
link, but if it was so harmful why is the majority of mailing lists
allowing a simple reply?
 
  And I hardly think that a few emails are going to cause a
 bandwidth issue for anybody. If bandwidth was such an issue, they'd be
 using an email client that only downloaded the email headers first, and
 from there you could easily discern the duplicate messages.

Thats true, I agree. But what about those that are not computer savvy?
Take my wife for instance. LOL

Also, I do not want this discussion to turn into a flame war or anything
of such. I am simply just trying to have a discussion and learn why and
how there is different behavior here, but not anywhere else. And I am
also venting just a tad bit, because for the last 15 years up until I
joined this list 6 months or so ago, I have never seen this issue, and
changing habits after 15 years is quite hard, but I can't change my
habits if I don't figure out how and why.


PS. I used the reply to list on this e-mail. Do you know of any way I
can add an icon to my tool bar instead of clicking on the Message menu
or hitting ctrl+l?

-- 
Blessings,
David M.


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 09:19 -0400, Robert Cummings wrote:
 David McGlone wrote:
  On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote:
  On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:
  Why change the way that has been around for years and adopted by
  multiple e-mail lists?
  It feels like it's more problem to change the way for thousands of
  users just to satisfy a couple of few.
  David was venting based on a discussion in another thread. I'm pretty
  sure he knows about the option to reply-all - that's part of the
  reason for venting (it sends multiple emails instead of just the one
  needed). The optimal scenario is to: 1) be able to quickly respond to
  the list, as that's the normal action you want to do and 2) not spam
  people with several emails for no reason (i.e. avoid replying to the
  OP AND the list).
  
  Exactly. I also feel bad for those who have to pay to download per Mb,
  GB, etc.
  
  It's pitiful that once I send this E-Mail, Peter and Hans both will get
  2 of the exact messages.
 
 I thought you just wanted to know why it is the way it is? Now you're 
 passing judgement.

I'm not passing judgment, It just saddens me that I have to send
multiple messages and this isn't because of anyone, it's because of my
lack of knowledge on how to reply to lists that are set up in this way.
But I think the reply to list like ash suggested solves the multiples
problem.

And on a positive note, If I wouldn't have brought this discussion up, I
would have never known. Pretty sure I do now.


-- 
Blessings,
David M.


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Dan Joseph
On Wed, Apr 21, 2010 at 9:33 AM, David McGlone da...@dmcentral.net wrote:

 I'm not passing judgment, It just saddens me that I have to send
 multiple messages and this isn't because of anyone, it's because of my
 lack of knowledge on how to reply to lists that are set up in this way.
 But I think the reply to list like ash suggested solves the multiples
 problem.

 And on a positive note, If I wouldn't have brought this discussion up, I
 would have never known. Pretty sure I do now.




Every couple years this discussion comes up.  Cracks me up every time.

When you hit reply all, just take out all the other addresses and leave the
list one in there.  The list was setup like this years ago on purpose, and
they've stated in the past they don't want to change it..

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


[PHP] Getting Array to Display

2010-04-21 Thread Gary
I have a form that I have a (ever growing) list of checkboxes,  Here is a
sample of  the code for it.

 input name=keyword[] type=checkbox value=fox /

It seems to go in, when I say seems to, I get a result of Array in the
table, the code is listed below.  I have tried various solutions I found in
searching the issue, but have only been able to so far get Array.

  echo 'table border=1thId Number/ththDate
Entered/ththCaption/ththWhere
Taken/ththKeywords/ththDescription/ththImage/th';
  while ($row = mysqli_fetch_array($data)) {

echo 'trtd' . $row['image_id']. '/td';
   echo 'td' . $row['submitted']. '/td';
echo 'td' . $row['caption']. '/td';
echo 'td' . $row['where_taken'] . '/td';
echo 'td' . $row['keyword']. '/td';
   echo 'td' . $row['description'] . '/td';
  if (is_file($row['image_file'])) {
  echo 'tdimg src='.$row['image_file'].' width=100px
height=100px//td';
  }

As a bonus question, does anyone have any idea why the image would show up
in IE8, and not FF?

Thanks for your help.

Gary



__ Information from ESET Smart Security, version of virus signature 
database 5047 (20100421) __

The message was checked by ESET Smart Security.

http://www.eset.com





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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Peter Lind
On 21 April 2010 15:41, Dan Joseph dmjos...@gmail.com wrote:
 When you hit reply all, just take out all the other addresses and leave the
 list one in there.  The list was setup like this years ago on purpose, and
 they've stated in the past they don't want to change it..

And waste time every single time you post to the list ... why do
people become programmers/developers again? To end creating technical
solutions they can then avoid using by doing extra, pointless manual
work?

Anyway, if there's no chance of changing the minds of the people
administering the list, the discussion might as well end now.

-- 
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
/hype

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Daniel Brown
On Wed, Apr 21, 2010 at 09:41, Dan Joseph dmjos...@gmail.com wrote:

 When you hit reply all, just take out all the other addresses and leave the
 list one in there.  The list was setup like this years ago on purpose, and
 they've stated in the past they don't want to change it..

And we won't, but that doesn't take away from the fact that it
probably does irk a few folks, so this will continue to come up now
and again.  As annoying as some may find it, though, it's not
something we're going to change.

-- 
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Looking for hosting or dedicated servers?  Ask me how we can fit your budget!

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



[PHP] Re: replying to list (I give up)

2010-04-21 Thread Michelle Konzack
Hello David McGlone,

Am 2010-04-21 08:27:18, hacktest Du folgendes herunter:
 I give up. trying to reply to messages on this list is tedious. I can't
 pinpoint whether it's because the list is set up to make replies go to
 the OP or the OP has his reply-to in his mail client set, or most people
 are hitting the reply-to button instead of simply reply.

You are using Evolution and I am wondering,
why you do not use the List-Reply Button!

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France   itsyst...@tdnet UG (haftungsbeschränkt)
Gesch. Michelle Konzack  Gesch. Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz   Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil   Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: [PHP] replying to list

2010-04-21 Thread Robert Cummings

David McGlone wrote:

On Wed, 2010-04-21 at 11:34 +0200, Michiel Sikma wrote:

On 21 April 2010 11:23, David McGlone da...@dmcentral.net wrote:


Why is the list set up to reply to the OP and not the list?

--
Blessings,
David M.



Is it? I didn't notice. I just use reply to all which puts the list in the
CC, and that works just fine for me.


reply to all works, but then we end up with 2 messages, and if you have
your mail client set up to filter mail into folders, then each message
ends up in 2 different places.


Improve your filter. I match on the message subject line looking for 
[PHP] and route it to my PHP general folder.


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



[PHP] Re: replying to list

2010-04-21 Thread Michelle Konzack
Hello David McGlone,

Am 2010-04-21 05:23:07, hacktest Du folgendes herunter:
 
 Why is the list set up to reply to the OP and not the list?

Because a Reply-To-List Button exist in Evolution!  :-D

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France   itsyst...@tdnet UG (haftungsbeschränkt)
Gesch. Michelle Konzack  Gesch. Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz   Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil   Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: [PHP] replying to list (I give up)

2010-04-21 Thread Robert Cummings

Peter Lind wrote:

On 21 April 2010 15:41, Dan Joseph dmjos...@gmail.com wrote:

When you hit reply all, just take out all the other addresses and leave the
list one in there.  The list was setup like this years ago on purpose, and
they've stated in the past they don't want to change it..


And waste time every single time you post to the list ... why do
people become programmers/developers again? To end creating technical
solutions they can then avoid using by doing extra, pointless manual
work?


Well most of us have read this thread now... and it kinda burned up 
about 4 years worth of time to remove the extraneous addresses :B


Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP

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



Re: [PHP] Getting Array to Display

2010-04-21 Thread Ashley Sheridan
On Wed, 2010-04-21 at 09:47 -0400, Gary wrote:

 I have a form that I have a (ever growing) list of checkboxes,  Here is a
 sample of  the code for it.
 
  input name=keyword[] type=checkbox value=fox /
 
 It seems to go in, when I say seems to, I get a result of Array in the
 table, the code is listed below.  I have tried various solutions I found in
 searching the issue, but have only been able to so far get Array.
 
   echo 'table border=1thId Number/ththDate
 Entered/ththCaption/ththWhere
 Taken/ththKeywords/ththDescription/ththImage/th';
   while ($row = mysqli_fetch_array($data)) {
 
 echo 'trtd' . $row['image_id']. '/td';
echo 'td' . $row['submitted']. '/td';
 echo 'td' . $row['caption']. '/td';
 echo 'td' . $row['where_taken'] . '/td';
 echo 'td' . $row['keyword']. '/td';
echo 'td' . $row['description'] . '/td';
   if (is_file($row['image_file'])) {
   echo 'tdimg src='.$row['image_file'].' width=100px
 height=100px//td';
   }
 
 As a bonus question, does anyone have any idea why the image would show up
 in IE8, and not FF?
 
 Thanks for your help.
 
 Gary
 
 
 
 __ Information from ESET Smart Security, version of virus signature 
 database 5047 (20100421) __
 
 The message was checked by ESET Smart Security.
 
 http://www.eset.com
 
 
 
 
 


You say you're getting an entry of Array in your table. Is this after
performing an insert query from the form? If so, we're gonna need to see
the code for that! If it's that you're retrieving from the DB and
getting Array as the output, then it could be that you're using string
functions on an array. However, as you said images are displaying, I
don't think that's the case. Maybe some of the fields in the DB have a
string literal of 'Array' as their value?

As for the images not displaying correctly, have you tried to just open
those images up in a browser using their uri? Just copy and paste it
from the img tag. It might give more input on exactly what is
happening with the image.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] replying to list (I give up)

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 09:41 -0400, Dan Joseph wrote:
 On Wed, Apr 21, 2010 at 9:33 AM, David McGlone da...@dmcentral.net wrote:
 
  I'm not passing judgment, It just saddens me that I have to send
  multiple messages and this isn't because of anyone, it's because of my
  lack of knowledge on how to reply to lists that are set up in this way.
  But I think the reply to list like ash suggested solves the multiples
  problem.
 
  And on a positive note, If I wouldn't have brought this discussion up, I
  would have never known. Pretty sure I do now.
 
 
 
 
 Every couple years this discussion comes up.  Cracks me up every time.
 
 When you hit reply all, just take out all the other addresses and leave the
 list one in there.  The list was setup like this years ago on purpose, and
 they've stated in the past they don't want to change it..
 

I'm the type of person that figures out how and why and then weighs my
options. Figuring out how to reply properly to this list was the first
step, now the next step is figuring out if I can deal with it or not.

I've decided to stay for a couple reasons, for one, everybody on this
list didn't once get mean or hateful during this whole discussion. That
flabbergasted me, because on a lot of lists I am on, quite a few people
on those lists would have instantly jumped down my throat. Secondly,
Everyone on this list that I have seen ask questions and give advise are
darn good programmers, so in order to be in the company of people like
this, then changing my habits shouldn't be hard.

The reason for the subject change was because I feared I was going to
start a flame war, so I was going to back down and just forget I
mentioned it.


-- 
Blessings,
David M.


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Hans Åhlin
2010/4/21 David McGlone da...@dmcentral.net:
 On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote:
 On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:
  Why change the way that has been around for years and adopted by
  multiple e-mail lists?
  It feels like it's more problem to change the way for thousands of
  users just to satisfy a couple of few.

 David was venting based on a discussion in another thread. I'm pretty
 sure he knows about the option to reply-all - that's part of the
 reason for venting (it sends multiple emails instead of just the one
 needed). The optimal scenario is to: 1) be able to quickly respond to
 the list, as that's the normal action you want to do and 2) not spam
 people with several emails for no reason (i.e. avoid replying to the
 OP AND the list).

 Exactly. I also feel bad for those who have to pay to download per Mb,
 GB, etc.

 It's pitiful that once I send this E-Mail, Peter and Hans both will get
 2 of the exact messages.


Strange I only got one, but it ma be a mail server filter

 --
 Blessings,
 David M.



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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Hans Åhlin
2010/4/21 David McGlone da...@dmcentral.net:
 On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote:
 On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:
  Why change the way that has been around for years and adopted by
  multiple e-mail lists?
  It feels like it's more problem to change the way for thousands of
  users just to satisfy a couple of few.

 David was venting based on a discussion in another thread. I'm pretty
 sure he knows about the option to reply-all - that's part of the
 reason for venting (it sends multiple emails instead of just the one
 needed). The optimal scenario is to: 1) be able to quickly respond to
 the list, as that's the normal action you want to do and 2) not spam
 people with several emails for no reason (i.e. avoid replying to the
 OP AND the list).

 Exactly. I also feel bad for those who have to pay to download per Mb,
 GB, etc.

 It's pitiful that once I send this E-Mail, Peter and Hans both will get
 2 of the exact messages.


Strange I only got one, but it ma be a mail server filter

 --
 Blessings,
 David M.



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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Peter Lind
On 21 April 2010 14:56, Ashley Sheridan a...@ashleysheridan.co.uk wrote:
 On Wed, 2010-04-21 at 08:56 -0400, David McGlone wrote:

 On Wed, 2010-04-21 at 14:42 +0200, Daniel Egeberg wrote:
  On Wed, Apr 21, 2010 at 14:27, David McGlone da...@dmcentral.net wrote:
   I give up. trying to reply to messages on this list is tedious. I can't
   pinpoint whether it's because the list is set up to make replies go to
   the OP or the OP has his reply-to in his mail client set, or most people
   are hitting the reply-to button instead of simply reply.
 
  Then get a better email client if yours doesn't support reply to all
  or reply to group. It's hardly the mailing list's fault that your
  client doesn't support that.

 My email client does support reply to all, but it's IMHO
 inconsiderate.

 Think about people that have to pay for every Mb they download. reply
 to all causes these people to have to pay for duplicates.

 Now if somebody on this list was paying for their downloads, then you
 and I am costing them money by using reply to all and now there are 2
 duplicate messages for them the download.

 How would you feel if this was you?

 --
 Blessings,
 David M.




 Did you read the link that David Robley sent on the original thread you
 made?
 http://www.unicom.com/pw/reply-to-harmful.html

 What you're proposing would cause a lot of problems for the sake of a
 few people. And I hardly think that a few emails are going to cause a
 bandwidth issue for anybody. If bandwidth was such an issue, they'd be
 using an email client that only downloaded the email headers first, and
 from there you could easily discern the duplicate messages.

Except it wouldn't cause a lot of problems, now would it? As you've
heard from quite a few others, many mailing lists work using the
'reply-to' ... and have happy users. Most of the points in the doc you
posted a link to are viewpoints from someone that's used to one thing
and hates the idea of things changing - whether or not it makes life
easier (the It makes things break for instance ... calling replying
to the list instead of the OP a break is rather farfetched unless
you've stared at something you hate for so long you've become blinded
byt it. Then there's the Freedom of choice: well, where's my freedom
of choice? I can't use 'reply' as I want to, so it's effectively
reduced *my* freedom).

Quick guess is by now, the majority of people clicking reply *mean*
to reply to the list but in effect reply to the OP. Using reply-to
would help these people. Anyone using reply-all would see no
difference. So when you're advocating that many subscribers should
ditch their email client and install Evolution instead of having *one*
email list have it's settings changed a bit ... I start to wonder if
you've considered things from both sides.

Regards
Peter

-- 
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
/hype

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 16:12 +0200, Hans Åhlin wrote:
 2010/4/21 David McGlone da...@dmcentral.net:
  On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote:
  On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:
   Why change the way that has been around for years and adopted by
   multiple e-mail lists?
   It feels like it's more problem to change the way for thousands of
   users just to satisfy a couple of few.
 
  David was venting based on a discussion in another thread. I'm pretty
  sure he knows about the option to reply-all - that's part of the
  reason for venting (it sends multiple emails instead of just the one
  needed). The optimal scenario is to: 1) be able to quickly respond to
  the list, as that's the normal action you want to do and 2) not spam
  people with several emails for no reason (i.e. avoid replying to the
  OP AND the list).
 
  Exactly. I also feel bad for those who have to pay to download per Mb,
  GB, etc.
 
  It's pitiful that once I send this E-Mail, Peter and Hans both will get
  2 of the exact messages.
 
 
 Strange I only got one, but it ma be a mail server filter

I just received 3 copies of this message. One went to my PHP folder and
2 went to my Inbox.

-- 
Blessings,
David M.


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



RE: [PHP] replying to list (I give up)

2010-04-21 Thread Tommy Pham
I'm sure that the reason why the this list and a few others are setup this way 
so that if anyone want to reply just to the OP can do so without having to 
figure out or remembering the e-mail address of the sender.


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Michiel Sikma
On 21 April 2010 15:41, Dan Joseph dmjos...@gmail.com wrote:

 When you hit reply all, just take out all the other addresses and leave the
 list one in there.  The list was setup like this years ago on purpose, and
 they've stated in the past they don't want to change it..

 --
 -Dan Joseph


I'd like to refrain from actually passing judgement on this issue--since I
use reply-all by default I could live with both of these settings--but I'm
still curious as to why the list is set up the way it is.

What is the advantage of sending to the OP by default rather than the list?

Michiel


Re: [PHP] replying to list (I give up)

2010-04-21 Thread Daniel Egeberg
On Wed, Apr 21, 2010 at 16:12, Hans Åhlin ahlin.h...@kronan-net.com wrote:
 2010/4/21 David McGlone da...@dmcentral.net:
 On Wed, 2010-04-21 at 14:49 +0200, Peter Lind wrote:
 On 21 April 2010 14:38, Hans Åhlin ahlin.h...@kronan-net.com wrote:
  Why change the way that has been around for years and adopted by
  multiple e-mail lists?
  It feels like it's more problem to change the way for thousands of
  users just to satisfy a couple of few.

 David was venting based on a discussion in another thread. I'm pretty
 sure he knows about the option to reply-all - that's part of the
 reason for venting (it sends multiple emails instead of just the one
 needed). The optimal scenario is to: 1) be able to quickly respond to
 the list, as that's the normal action you want to do and 2) not spam
 people with several emails for no reason (i.e. avoid replying to the
 OP AND the list).

 Exactly. I also feel bad for those who have to pay to download per Mb,
 GB, etc.

 It's pitiful that once I send this E-Mail, Peter and Hans both will get
 2 of the exact messages.


 Strange I only got one, but it ma be a mail server filter

I'll have to say that I've never received duplicate messages on any of
the nine PHP.net mailing lists I'm subscribed to either.

-- 
Daniel Egeberg

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Daniel Egeberg
On Wed, Apr 21, 2010 at 16:32, Tommy Pham tommy...@gmail.com wrote:
 I'm sure that the reason why the this list and a few others are setup this 
 way so that if anyone want to reply just to the OP can do so without having 
 to figure out or remembering the e-mail address of the sender.

Yes, plus many of the people who send to lists such as php-webmaster@
generally do not actually subscribe. Sending a reply privately to
someone can also come in handy if you wish to comment privately on a
commit. Logs/diffs are sent to mailing lists and the From header will
always contain usern...@php.net.

-- 
Daniel Egeberg

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Daniel Brown
On Wed, Apr 21, 2010 at 10:20, David McGlone da...@dmcentral.net wrote:

 I just received 3 copies of this message. One went to my PHP folder and
 2 went to my Inbox.

It was sent multiple times.  Probably an intentional demonstration
of irony.  ;-P

-- 
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Looking for hosting or dedicated servers?  Ask me how we can fit your budget!

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



RE: [PHP] replying to list (I give up)

2010-04-21 Thread Tommy Pham
 -Original Message-
 From: daniel.egeb...@gmail.com [mailto:daniel.egeb...@gmail.com] On
 Behalf Of Daniel Egeberg
 Sent: Wednesday, April 21, 2010 7:40 AM
 To: Tommy Pham
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] replying to list (I give up)
 

snip

I'm using gmail's label which isn't the same as 'move to' filter.  I'm pretty 
sure that I didn't receive duplicate.  So it might that gmail's server has some 
detection method in place.


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



Re: [PHP] Getting Array to Display

2010-04-21 Thread Gary

Ashley

Thank you for your reply.

I was trying to get the structure of the DB into a text form, cant seem to 
find that (phpmyadmin).


This is the insert code

?php
$caption=($_POST['caption']);
$keyword=($_POST['keyword']);
$description=($_POST['description']);
$image_file=($_POST['image_file']);
$where_taken=($_POST['where_taken']);

$dbc=mysqli_connect('', '', '', 'images');

$query=INSERT INTO images(caption, where_taken, keyword, description, 
image_file) VALUES 
('$caption','$where_taken','$keyword','$description','$image_file');

if (isset($_POST['submit'])) {

$how_many = count($keyword);
echo 'keywords chosen: '.$how_many.'br /';
if ($how_many0) {
echo 'You chose the following keywords:br /';
}
for ($i=0; $i$how_many; $i++) {
echo ($i+1) . '- ' . $keyword[$i] . 'br /';
  }
 echo br /;
}
$result = mysqli_query($dbc, $query)
or die('Error querying database.');

if($result == true) {
  echo Successfully Inserted $image_file into database;
  } else {
  echo Some Error Occured While Inserting Records;
  }

mysqli_close($dbc);
?

I hope that helps, and again thank you for your reply.

gary


Ashley Sheridan a...@ashleysheridan.co.uk wrote in message 
news:1271858245.20937.10.ca...@localhost...

On Wed, 2010-04-21 at 09:47 -0400, Gary wrote:


I have a form that I have a (ever growing) list of checkboxes,  Here is a
sample of  the code for it.

 input name=keyword[] type=checkbox value=fox /

It seems to go in, when I say seems to, I get a result of Array in the
table, the code is listed below.  I have tried various solutions I found 
in

searching the issue, but have only been able to so far get Array.

  echo 'table border=1thId Number/ththDate
Entered/ththCaption/ththWhere
Taken/ththKeywords/ththDescription/ththImage/th';
  while ($row = mysqli_fetch_array($data)) {

echo 'trtd' . $row['image_id']. '/td';
   echo 'td' . $row['submitted']. '/td';
echo 'td' . $row['caption']. '/td';
echo 'td' . $row['where_taken'] . '/td';
echo 'td' . $row['keyword']. '/td';
   echo 'td' . $row['description'] . '/td';
  if (is_file($row['image_file'])) {
  echo 'tdimg src='.$row['image_file'].' width=100px
height=100px//td';
  }

As a bonus question, does anyone have any idea why the image would show 
up

in IE8, and not FF?

Thanks for your help.

Gary



__ Information from ESET Smart Security, version of virus 
signature database 5047 (20100421) __


The message was checked by ESET Smart Security.

http://www.eset.com








You say you're getting an entry of Array in your table. Is this after
performing an insert query from the form? If so, we're gonna need to see
the code for that! If it's that you're retrieving from the DB and
getting Array as the output, then it could be that you're using string
functions on an array. However, as you said images are displaying, I
don't think that's the case. Maybe some of the fields in the DB have a
string literal of 'Array' as their value?

As for the images not displaying correctly, have you tried to just open
those images up in a browser using their uri? Just copy and paste it
from the img tag. It might give more input on exactly what is
happening with the image.

Thanks,
Ash
http://www.ashleysheridan.co.uk





__ Information from ESET NOD32 Antivirus, version of virus 
signature database 5047 (20100421) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__ Information from ESET NOD32 Antivirus, version of virus signature 
database 5047 (20100421) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Per Jessen
David McGlone wrote:

 Also, I do not want this discussion to turn into a flame war or
 anything of such. I am simply just trying to have a discussion and
 learn why and how there is different behavior here, but not anywhere
 else. 

David, the PHP list behaves like hundreds or thousands of others in this
respect.  Of course there are also lists that work the other way, but
the PHP list is far from alone. 



-- 
Per Jessen, Zürich (17.0°C)


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



Re: [PHP] Getting Array to Display

2010-04-21 Thread Ashley Sheridan
On Wed, 2010-04-21 at 11:01 -0400, Gary wrote:

 Ashley
 
 Thank you for your reply.
 
 I was trying to get the structure of the DB into a text form, cant seem to 
 find that (phpmyadmin).
 
 This is the insert code
 
 ?php
 $caption=($_POST['caption']);
 $keyword=($_POST['keyword']);
 $description=($_POST['description']);
 $image_file=($_POST['image_file']);
 $where_taken=($_POST['where_taken']);
 
 $dbc=mysqli_connect('', '', '', 'images');
 
 $query=INSERT INTO images(caption, where_taken, keyword, description, 
 image_file) VALUES 
 ('$caption','$where_taken','$keyword','$description','$image_file');
  if (isset($_POST['submit'])) {
 
  $how_many = count($keyword);
  echo 'keywords chosen: '.$how_many.'br /';
  if ($how_many0) {
  echo 'You chose the following keywords:br /';
  }
  for ($i=0; $i$how_many; $i++) {
  echo ($i+1) . '- ' . $keyword[$i] . 'br /';
}
   echo br /;
  }
 $result = mysqli_query($dbc, $query)
 or die('Error querying database.');
 
 if($result == true) {
echo Successfully Inserted $image_file into database;
} else {
echo Some Error Occured While Inserting Records;
}
 
 mysqli_close($dbc);
 ?
 
 I hope that helps, and again thank you for your reply.
 
 gary
 
 
 Ashley Sheridan a...@ashleysheridan.co.uk wrote in message 
 news:1271858245.20937.10.ca...@localhost...
  On Wed, 2010-04-21 at 09:47 -0400, Gary wrote:
 
  I have a form that I have a (ever growing) list of checkboxes,  Here is a
  sample of  the code for it.
 
   input name=keyword[] type=checkbox value=fox /
 
  It seems to go in, when I say seems to, I get a result of Array in the
  table, the code is listed below.  I have tried various solutions I found 
  in
  searching the issue, but have only been able to so far get Array.
 
echo 'table border=1thId Number/ththDate
  Entered/ththCaption/ththWhere
  Taken/ththKeywords/ththDescription/ththImage/th';
while ($row = mysqli_fetch_array($data)) {
 
  echo 'trtd' . $row['image_id']. '/td';
 echo 'td' . $row['submitted']. '/td';
  echo 'td' . $row['caption']. '/td';
  echo 'td' . $row['where_taken'] . '/td';
  echo 'td' . $row['keyword']. '/td';
 echo 'td' . $row['description'] . '/td';
if (is_file($row['image_file'])) {
echo 'tdimg src='.$row['image_file'].' width=100px
  height=100px//td';
}
 
  As a bonus question, does anyone have any idea why the image would show 
  up
  in IE8, and not FF?
 
  Thanks for your help.
 
  Gary
 
 
 
  __ Information from ESET Smart Security, version of virus 
  signature database 5047 (20100421) __
 
  The message was checked by ESET Smart Security.
 
  http://www.eset.com
 
 
 
 
 
 
 
  You say you're getting an entry of Array in your table. Is this after
  performing an insert query from the form? If so, we're gonna need to see
  the code for that! If it's that you're retrieving from the DB and
  getting Array as the output, then it could be that you're using string
  functions on an array. However, as you said images are displaying, I
  don't think that's the case. Maybe some of the fields in the DB have a
  string literal of 'Array' as their value?
 
  As for the images not displaying correctly, have you tried to just open
  those images up in a browser using their uri? Just copy and paste it
  from the img tag. It might give more input on exactly what is
  happening with the image.
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 
 
 
 
  __ Information from ESET NOD32 Antivirus, version of virus 
  signature database 5047 (20100421) __
 
  The message was checked by ESET NOD32 Antivirus.
 
  http://www.eset.com
 
  
 
 
 __ Information from ESET NOD32 Antivirus, version of virus signature 
 database 5047 (20100421) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 
 
 
 


You're inserting the string 'Array' into the DB. The form you have is
sending an actual array, but the insert statement can only insert a
single string. The string of the array is, as you've found out, 'Array'.

Consider normalising the DB and having a keywords table with 3 fields:
id, image_id, keyword.

Then each entry in the keywords table would be a keyword, linked by
image_id. You'll also need to change your images table to include an id
by which you can reference each image individually and index by.

Lastly, be very careful of your insert statements. The way things stand,
it would be easy for someone to maliciously enter their own statements.
Use something like mysql_real_escape_string() to protect against MySQL
attacks.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] Getting Array to Display

2010-04-21 Thread Richard Quadling
On 21 April 2010 16:01, Gary g...@paulgdesigns.com wrote:
 Ashley

 Thank you for your reply.

 I was trying to get the structure of the DB into a text form, cant seem to
 find that (phpmyadmin).

 This is the insert code

 ?php
 $caption=($_POST['caption']);
 $keyword=($_POST['keyword']);
 $description=($_POST['description']);
 $image_file=($_POST['image_file']);
 $where_taken=($_POST['where_taken']);

 $dbc=mysqli_connect('', '', '', 'images');

 $query=INSERT INTO images(caption, where_taken, keyword, description,
 image_file) VALUES
 ('$caption','$where_taken','$keyword','$description','$image_file');
 if (isset($_POST['submit'])) {

    $how_many = count($keyword);
    echo 'keywords chosen: '.$how_many.'br /';
    if ($how_many0) {
        echo 'You chose the following keywords:br /';
    }
    for ($i=0; $i$how_many; $i++) {
    echo ($i+1) . '- ' . $keyword[$i] . 'br /';
  }
     echo br /;
 }
 $result = mysqli_query($dbc, $query)
 or die('Error querying database.');

 if($result == true) {
      echo Successfully Inserted $image_file into database;
  } else {
      echo Some Error Occured While Inserting Records;
  }

 mysqli_close($dbc);
 ?

 I hope that helps, and again thank you for your reply.

 gary


 Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
 news:1271858245.20937.10.ca...@localhost...

 On Wed, 2010-04-21 at 09:47 -0400, Gary wrote:

 I have a form that I have a (ever growing) list of checkboxes,  Here is a
 sample of  the code for it.

  input name=keyword[] type=checkbox value=fox /

 It seems to go in, when I say seems to, I get a result of Array in the
 table, the code is listed below.  I have tried various solutions I found
 in
 searching the issue, but have only been able to so far get Array.

  echo 'table border=1thId Number/ththDate
 Entered/ththCaption/ththWhere
 Taken/ththKeywords/ththDescription/ththImage/th';
  while ($row = mysqli_fetch_array($data)) {

    echo 'trtd' . $row['image_id']. '/td';
   echo 'td' . $row['submitted']. '/td';
    echo 'td' . $row['caption']. '/td';
    echo 'td' . $row['where_taken'] . '/td';
    echo 'td' . $row['keyword']. '/td';
       echo 'td' . $row['description'] . '/td';
      if (is_file($row['image_file'])) {
      echo 'tdimg src='.$row['image_file'].' width=100px
 height=100px//td';
      }

 As a bonus question, does anyone have any idea why the image would show
 up
 in IE8, and not FF?

 Thanks for your help.

 Gary



 __ Information from ESET Smart Security, version of virus
 signature database 5047 (20100421) __

 The message was checked by ESET Smart Security.

 http://www.eset.com







 You say you're getting an entry of Array in your table. Is this after
 performing an insert query from the form? If so, we're gonna need to see
 the code for that! If it's that you're retrieving from the DB and
 getting Array as the output, then it could be that you're using string
 functions on an array. However, as you said images are displaying, I
 don't think that's the case. Maybe some of the fields in the DB have a
 string literal of 'Array' as their value?

 As for the images not displaying correctly, have you tried to just open
 those images up in a browser using their uri? Just copy and paste it
 from the img tag. It might give more input on exactly what is
 happening with the image.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk





 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 5047 (20100421) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com




 __ Information from ESET NOD32 Antivirus, version of virus signature
 database 5047 (20100421) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com




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



As you are using input type=checkbox name=keyword[] value=fox
/, then you are creating an array called $_POST['keyword'].

So far so good.

When you construct your SQL statement, you are trying to put the array
into a string ...

Unfortunately, an handling an array like that will result in the array
becoming the text ...

Array

e.g.

?php
$a = array(1,2,3);
$b = $a $a $a;
echo $b;
?

outputs ...

Array Array Array


So, either you need to store the keywords in a separate table and link
it to the main table by some sort of ID, or convert the array to a
string.

You could use something like ...

$keywords = implode(\t, $_POST['keyword']);

to produce a tab separated list of keywords.

You could use a comma (',') as the separator, but if any keyword
contains a comma (unlikely, but thinking ahead, keywords COULD be
keyphrases), then the comma becomes a separator on the way out.

Or you could serialize the array if you weren't interested in
processing it in the DB.

$keywords = serialize($_POST['keyword']);


On the way out of the DB, you would use ...

$keywords = explode('\t', $row['keywords

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

2010-04-21 Thread tedd

At 12:08 AM +0200 4/21/10, Nick Balestra wrote:

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


Cheers from Switzerland



Welcome Nick.

Do you own a bank?  :-)

Cheers,

tedd

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

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 17:07 +0200, Per Jessen wrote:
 David McGlone wrote:
 
  Also, I do not want this discussion to turn into a flame war or
  anything of such. I am simply just trying to have a discussion and
  learn why and how there is different behavior here, but not anywhere
  else. 
 
 David, the PHP list behaves like hundreds or thousands of others in this
 respect.  Of course there are also lists that work the other way, but
 the PHP list is far from alone. 

It could be just me, but it seems to me this behavior is mostly PHP list
specific. The only other php list I am on is php-db. It doesn't have
this behavior so I guess I'm just not experienced enough to know
otherwise.

-- 
Blessings,
David M.


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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread tedd

At 8:27 AM -0400 4/21/10, David McGlone wrote:

I give up. trying to reply to messages on this list is tedious. I can't
pinpoint whether it's because the list is set up to make replies go to
the OP or the OP has his reply-to in his mail client set, or most people
are hitting the reply-to button instead of simply reply.

It just doesn't make sense to me, why be on the mailing list if it
hinders having a group discussion without having to jump through
hurdles. It also defeats the purpose of being on a group list if
replying sends the reply to the OP.

Every message sent to this list, simply hitting reply should send back
to this list and not the OP.
--
Blessings,
David M.


David:

Whenever I want to reply to the OP privately, I use their email address.

Whenever I want to reply to all, I use PHP php-general@lists.php.net

I do NOT (usually) use any quick Reply or Reply to All options in 
my email program that sends stuff to everyone. Instead I think about 
what I am sending and consider if anyone wants to receive my email. 
Sure it's another step, but no more troublesome than trimming my 
email to the point or other such considerations to make my replies 
on topic and more readable.


I'm sorry that you feel that doing so is *so tedious* that you are 
going to give up, but consider the effort that is put forth by 
those answering you you should reconsider how much effort you are 
willing spend to make this list work. Sometimes things cannot be as 
simple as Click.


Cheers,

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

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



Re: [PHP] replying to list (I give up)

2010-04-21 Thread Per Jessen
David McGlone wrote:

 On Wed, 2010-04-21 at 17:07 +0200, Per Jessen wrote:
 David McGlone wrote:
 
  Also, I do not want this discussion to turn into a flame war or
  anything of such. I am simply just trying to have a discussion and
  learn why and how there is different behavior here, but not
  anywhere else.
 
 David, the PHP list behaves like hundreds or thousands of others in
 this
 respect.  Of course there are also lists that work the other way, but
 the PHP list is far from alone.
 
 It could be just me, but it seems to me this behavior is mostly PHP
 list specific. 

Some examples of other lists that behave the same:

ntp-general
linux-kernel
spamassassin-general
rrdtool-users
opensuse-*
nasm-users
isdn4linux
asterisk-users
postfix-users
dovecot-general



-- 
Per Jessen, Zürich (17.5°C)


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



RE: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Alice Wei

 From: peter.e.l...@gmail.com
 Date: Wed, 21 Apr 2010 09:29:19 +0200
 Subject: Re: [PHP] Mail Function Using PEAR Issues
 To: aj...@alumni.iu.edu
 CC: a...@ashleysheridan.co.uk; php-general@lists.php.net
 
 On 21 April 2010 04:25, Alice Wei aj...@alumni.iu.edu wrote:
  Well, from my experience with Ubuntu, looks like that it does not do that. 
  Unless, I am doing it wrong?
 
 So did you try using the 'smtp' backend and passing all the connection
 details rather than 'mail'?
 
I have mentioned several posts earlier that I have done nothing about my 
php.ini file. From what you said, since I use U-Verse, am I supposed to do 
something as described here: 
http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
 
I thought with PEAR, you don't need to do that anymore. Or, am I wrong?
 
Alice
 
 
 
 
  
_
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5

Re: [PHP] Getting Array to Display

2010-04-21 Thread Gary

Richard

I'm sorry, it looks like I sent a reply direct to you instead of the board, 
a mistake on my part.  Here is the message.


Richard

Thank you for your reply.

Something good is happening.  When I look into the actual DB, I see in the
keyword column

a:9:{i:0;s:3:fox;i:1;s:6:wolves;i:2;s:8:wildl(this is
truncated),which seems to be the values within the array.

I used your serialized suggestion for this.

However when I bring the table to the screeen of a browser, I still get
Array.

Here is the updated coed of the insert.php

?php
$caption=($_POST['caption']);
$keyword=($_POST['keyword']);
$description=($_POST['description']);
$image_file=($_POST['image_file']);
$where_taken=($_POST['where_taken']);



$dbc=mysqli_connect('localhost', 'root', '', 'images');

$query=INSERT INTO images(caption, where_taken, keyword, description,
image_file) VALUES
('$caption','$where_taken','$keyword','$description','$image_file');
if (isset($_POST['submit'])) {

$how_many = count($keyword);
echo 'keywords chosen: '.$how_many.'br /';
if ($how_many0) {
echo 'You chose the following keywords:br /';
}
for ($i=0; $i$how_many; $i++) {
echo ($i+1) . '- ' . $keyword[$i] . 'br /';
  }
 echo br /;
}
$result = mysqli_query($dbc, $query)
or die('Error querying database.');

if($result == true) {
  echo Successfully Inserted $image_file into database;
  } else {
  echo Some Error Occured While Inserting Records;
  }
$keyword = serialize($_POST['keyword']);
mysqli_close($dbc);

and the updated display code

$query=SELECT * FROM  images;


 $data = mysqli_query($dbc, $query);

 // Loop through the array of score data, formatting it as HTML
 echo 'bImage display information from Database/b';
 echo 'table border=1thId Number/ththDate
Entered/ththCaption/ththWhere
Taken/ththKeywords/ththDescription/ththImage/th';
 while ($row = mysqli_fetch_array($data)) {
   // Display the  data
   echo 'trtd' . $row['image_id']. '/td';
  echo 'td' . $row['submitted']. '/td';
   echo 'td' . $row['caption']. '/td';
   echo 'td' . $row['where_taken'] . '/td';
   echo 'td' . $keyword = unserialize($row['keyword']). '/td';
  echo 'td' . $row['description'] . '/td';
 if (is_file($row['image_file'])) {
 echo 'tdimg src='.$row['image_file'].' width=100px
height=100px//td';
 }


Thank you again for your help.

gary

Richard Quadling rquadl...@googlemail.com wrote in message 
news:g2u10845a341004210827nc50b743cia5f0a44f644b4...@mail.gmail.com...

On 21 April 2010 16:01, Gary g...@paulgdesigns.com wrote:

Ashley

Thank you for your reply.

I was trying to get the structure of the DB into a text form, cant seem to
find that (phpmyadmin).

This is the insert code

?php
$caption=($_POST['caption']);
$keyword=($_POST['keyword']);
$description=($_POST['description']);
$image_file=($_POST['image_file']);
$where_taken=($_POST['where_taken']);

$dbc=mysqli_connect('', '', '', 'images');

$query=INSERT INTO images(caption, where_taken, keyword, description,
image_file) VALUES
('$caption','$where_taken','$keyword','$description','$image_file');
if (isset($_POST['submit'])) {

$how_many = count($keyword);
echo 'keywords chosen: '.$how_many.'br /';
if ($how_many0) {
echo 'You chose the following keywords:br /';
}
for ($i=0; $i$how_many; $i++) {
echo ($i+1) . '- ' . $keyword[$i] . 'br /';
}
echo br /;
}
$result = mysqli_query($dbc, $query)
or die('Error querying database.');

if($result == true) {
echo Successfully Inserted $image_file into database;
} else {
echo Some Error Occured While Inserting Records;
}

mysqli_close($dbc);
?

I hope that helps, and again thank you for your reply.

gary


Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1271858245.20937.10.ca...@localhost...


On Wed, 2010-04-21 at 09:47 -0400, Gary wrote:


I have a form that I have a (ever growing) list of checkboxes, Here is a
sample of the code for it.

input name=keyword[] type=checkbox value=fox /

It seems to go in, when I say seems to, I get a result of Array in the
table, the code is listed below. I have tried various solutions I found
in
searching the issue, but have only been able to so far get Array.

echo 'table border=1thId Number/ththDate
Entered/ththCaption/ththWhere
Taken/ththKeywords/ththDescription/ththImage/th';
while ($row = mysqli_fetch_array($data)) {

echo 'trtd' . $row['image_id']. '/td';
echo 'td' . $row['submitted']. '/td';
echo 'td' . $row['caption']. '/td';
echo 'td' . $row['where_taken'] . '/td';
echo 'td' . $row['keyword']. '/td';
echo 'td' . $row['description'] . '/td';
if (is_file($row['image_file'])) {
echo 'tdimg src='.$row['image_file'].' width=100px
height=100px//td';
}

As a bonus question, does anyone have any idea why the image would show
up
in IE8, and not FF?

Thanks for your help.

Gary



__ Information from ESET Smart Security, version of virus
signature database 5047 (20100421) __

The message was checked by ESET Smart Security.

http://www.eset.com

[PHP] Re: replying to list (I give up)

2010-04-21 Thread Michelle Konzack
Hello Peter Lind,

Am 2010-04-21 15:47:54, hacktest Du folgendes herunter:
 And waste time every single time you post to the list ... why do
 people become programmers/developers again? To end creating technical
 solutions they can then avoid using by doing extra, pointless manual
 work?

Hmmm, being a Programmer/Developer since 1982 and have ever used  decent
tools to accomplish a task...  including the right  MUA  which  simplify
the Programmers/Developers daily mailing tasks.

 Anyway, if there's no chance of changing the minds of the people
 administering the list, the discussion might as well end now.

Why should Programmers/Developers bother with non-reliable  MUAs  which
do not support Programmers/Developers daily mailing tasks?

If YOU are a Programmer/Developer why do you bother with a  non-suitable
MUA?

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France   itsyst...@tdnet UG (haftungsbeschränkt)
Gesch. Michelle Konzack  Gesch. Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz   Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil   Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


[PHP] Re: replying to list (I give up)

2010-04-21 Thread Michelle Konzack
Hello Michiel Sikma,

Am 2010-04-21 16:35:50, hacktest Du folgendes herunter:
 I'd like to refrain from actually passing judgement on this issue--since I
 use reply-all by default I could live with both of these settings--but I'm
 still curious as to why the list is set up the way it is.
 
 What is the advantage of sending to the OP by default rather than the list?

Because DECENT MUA's have three options:

R)  Reply to OP
G)  Reply to Group
L)  Reply to List

If you set Reply-To: to the list, you can not more send PM to the Poster
and you have to edit the message.  This is WHY Reply-To-List exist.

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France   itsyst...@tdnet UG (haftungsbeschränkt)
Gesch. Michelle Konzack  Gesch. Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz   Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil   Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


[PHP] Re: Getting Array to Display

2010-04-21 Thread Gary
As an addition to the issue, when I do a SELECT FROM and call for a specific 
keyword, it does not return any records..



Gary


Gary gwp...@ptd.net wrote in message 
news:70.50.63467.0020f...@pb1.pair.com...

I have a form that I have a (ever growing) list of checkboxes,  Here is a
sample of  the code for it.

input name=keyword[] type=checkbox value=fox /

It seems to go in, when I say seems to, I get a result of Array in the
table, the code is listed below.  I have tried various solutions I found 
in

searching the issue, but have only been able to so far get Array.

 echo 'table border=1thId Number/ththDate
Entered/ththCaption/ththWhere
Taken/ththKeywords/ththDescription/ththImage/th';
 while ($row = mysqli_fetch_array($data)) {

   echo 'trtd' . $row['image_id']. '/td';
  echo 'td' . $row['submitted']. '/td';
   echo 'td' . $row['caption']. '/td';
   echo 'td' . $row['where_taken'] . '/td';
   echo 'td' . $row['keyword']. '/td';
  echo 'td' . $row['description'] . '/td';
 if (is_file($row['image_file'])) {
 echo 'tdimg src='.$row['image_file'].' width=100px
height=100px//td';
 }

As a bonus question, does anyone have any idea why the image would show up
in IE8, and not FF?

Thanks for your help.

Gary



__ Information from ESET Smart Security, version of virus 
signature database 5047 (20100421) __


The message was checked by ESET Smart Security.

http://www.eset.com





__ Information from ESET NOD32 Antivirus, version of virus 
signature database 5048 (20100421) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






__ Information from ESET NOD32 Antivirus, version of virus signature 
database 5048 (20100421) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




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



[PHP] Re: replying to list (I give up)

2010-04-21 Thread Michelle Konzack
Hello Hans Åhlin,

Am 2010-04-21 16:12:06, hacktest Du folgendes herunter:
 Strange I only got one, but it ma be a mail server filter

For me it is only worse, because if someone respond to a message with ME
in the Cc:, the Cc'ed message arrive first and will be trashed because I
have setup a filter which does

# Prevent duplicated messages
:0Whc
|formail -D 8000 .msg_id_cache
:0a
/dev/null

# Kill unwanted CC messages on my cell-phone
:0
* to_linux4miche...@tamay-dogan.net
* ^List-Id:.*php-.*\.lists\.php\.net
/dev/null

:0
* ^List-Post:.*mailto:php-[-a-zA-Z0-9]+@
* ^List-Post:.*mailto:php-\/[-a-zA-Z0-9]+
.ML_php.${MATCH}/



Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France   itsyst...@tdnet UG (haftungsbeschränkt)
Gesch. Michelle Konzack  Gesch. Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz   Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil   Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: [PHP] Getting Array to Display

2010-04-21 Thread Gary

Ashley

If I were to create a child table, would the Type be a Bool?

Gary


Ashley Sheridan a...@ashleysheridan.co.uk wrote in message 
news:1271862971.20937.19.ca...@localhost...

On Wed, 2010-04-21 at 11:01 -0400, Gary wrote:


Ashley

Thank you for your reply.

I was trying to get the structure of the DB into a text form, cant seem 
to

find that (phpmyadmin).

This is the insert code

?php
$caption=($_POST['caption']);
$keyword=($_POST['keyword']);
$description=($_POST['description']);
$image_file=($_POST['image_file']);
$where_taken=($_POST['where_taken']);

$dbc=mysqli_connect('', '', '', 'images');

$query=INSERT INTO images(caption, where_taken, keyword, description,
image_file) VALUES
('$caption','$where_taken','$keyword','$description','$image_file');
 if (isset($_POST['submit'])) {

 $how_many = count($keyword);
 echo 'keywords chosen: '.$how_many.'br /';
 if ($how_many0) {
 echo 'You chose the following keywords:br /';
 }
 for ($i=0; $i$how_many; $i++) {
 echo ($i+1) . '- ' . $keyword[$i] . 'br /';
   }
  echo br /;
 }
$result = mysqli_query($dbc, $query)
or die('Error querying database.');

if($result == true) {
   echo Successfully Inserted $image_file into database;
   } else {
   echo Some Error Occured While Inserting Records;
   }

mysqli_close($dbc);
?

I hope that helps, and again thank you for your reply.

gary


Ashley Sheridan a...@ashleysheridan.co.uk wrote in message
news:1271858245.20937.10.ca...@localhost...
 On Wed, 2010-04-21 at 09:47 -0400, Gary wrote:

 I have a form that I have a (ever growing) list of checkboxes,  Here 
 is a

 sample of  the code for it.

  input name=keyword[] type=checkbox value=fox /

 It seems to go in, when I say seems to, I get a result of Array in the
 table, the code is listed below.  I have tried various solutions I 
 found

 in
 searching the issue, but have only been able to so far get Array.

   echo 'table border=1thId Number/ththDate
 Entered/ththCaption/ththWhere
 Taken/ththKeywords/ththDescription/ththImage/th';
   while ($row = mysqli_fetch_array($data)) {

 echo 'trtd' . $row['image_id']. '/td';
echo 'td' . $row['submitted']. '/td';
 echo 'td' . $row['caption']. '/td';
 echo 'td' . $row['where_taken'] . '/td';
 echo 'td' . $row['keyword']. '/td';
echo 'td' . $row['description'] . '/td';
   if (is_file($row['image_file'])) {
   echo 'tdimg src='.$row['image_file'].' width=100px
 height=100px//td';
   }

 As a bonus question, does anyone have any idea why the image would 
 show

 up
 in IE8, and not FF?

 Thanks for your help.

 Gary



 __ Information from ESET Smart Security, version of virus
 signature database 5047 (20100421) __

 The message was checked by ESET Smart Security.

 http://www.eset.com







 You say you're getting an entry of Array in your table. Is this after
 performing an insert query from the form? If so, we're gonna need to 
 see

 the code for that! If it's that you're retrieving from the DB and
 getting Array as the output, then it could be that you're using string
 functions on an array. However, as you said images are displaying, I
 don't think that's the case. Maybe some of the fields in the DB have a
 string literal of 'Array' as their value?

 As for the images not displaying correctly, have you tried to just open
 those images up in a browser using their uri? Just copy and paste it
 from the img tag. It might give more input on exactly what is
 happening with the image.

 Thanks,
 Ash
 http://www.ashleysheridan.co.uk





 __ Information from ESET NOD32 Antivirus, version of virus
 signature database 5047 (20100421) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com




__ Information from ESET NOD32 Antivirus, version of virus 
signature database 5047 (20100421) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com







You're inserting the string 'Array' into the DB. The form you have is
sending an actual array, but the insert statement can only insert a
single string. The string of the array is, as you've found out, 'Array'.

Consider normalising the DB and having a keywords table with 3 fields:
id, image_id, keyword.

Then each entry in the keywords table would be a keyword, linked by
image_id. You'll also need to change your images table to include an id
by which you can reference each image individually and index by.

Lastly, be very careful of your insert statements. The way things stand,
it would be easy for someone to maliciously enter their own statements.
Use something like mysql_real_escape_string() to protect against MySQL
attacks.

Thanks,
Ash
http://www.ashleysheridan.co.uk





__ Information from ESET NOD32 Antivirus, version of virus 
signature database 5047 (20100421) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__ Information from ESET NOD32 Antivirus

[PHP] Re: replying to list (I give up)

2010-04-21 Thread Michelle Konzack
Hello David McGlone,

Am 2010-04-21 09:37:48, hacktest Du folgendes herunter:
 Yes. but if it was so harmful, why does the 40, 50 or so lists that I've
 been on, simply let you hit the reply and it goes back to the list?

Can you tell me which list these are?  I assume that on  most  of  those
lists are handicaped Windows-Users which can not do better du  to  there
cuted down ad restricting software which does not allow Users-Freedom...

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France   itsyst...@tdnet UG (haftungsbeschränkt)
Gesch. Michelle Konzack  Gesch. Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz   Kinzigstraße 17
67100 Strasbourg/France 77694 Kehl/Germany
Tel: +33-6-61925193 mobil   Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

http://www.itsystems.tamay-dogan.net/  http://www.flexray4linux.org/
http://www.debian.tamay-dogan.net/ http://www.can4linux.org/

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: [PHP] Re: replying to list (I give up)

2010-04-21 Thread Peter Lind
On 21 April 2010 20:09, Michelle Konzack linux4miche...@tamay-dogan.net wrote:
 Hello Peter Lind,

Hi Michelle

 Am 2010-04-21 15:47:54, hacktest Du folgendes herunter:
 And waste time every single time you post to the list ... why do
 people become programmers/developers again? To end creating technical
 solutions they can then avoid using by doing extra, pointless manual
 work?

 Hmmm, being a Programmer/Developer since 1982 and have ever used  decent
 tools to accomplish a task...  including the right  MUA  which  simplify
 the Programmers/Developers daily mailing tasks.

Making it the problem of the MUA is a hack, not a solution. If you
really want to go down the I have experience route I'd expect you to
choose the fix the problem at the root-solution not the lets hack
it by leaving the problem as is and requiring everyone to choose a
proper tool-hack.

 Anyway, if there's no chance of changing the minds of the people
 administering the list, the discussion might as well end now.

 Why should Programmers/Developers bother with non-reliable  MUAs  which
 do not support Programmers/Developers daily mailing tasks?

 If YOU are a Programmer/Developer why do you bother with a  non-suitable
 MUA?

Please don't make assumptions about me and my tools - you have no
basis for them. Apart from that, I see no reason to call MUAs
'suitable' based on whether or not they fix a problem that should be
fixed elsewhere.
 If I'm not mistaken, we're faced with a quite simple cost/benefit
scenario: how many people want to reply just to the list when
responding and how many people want to reply just to the OP when
responding. If the first number is higher than the second, then we're
imposing extra work on people (either by asking them to manually fix
email addresses or by bullying them into changing email clients) if we
stick to the solution that fit the second group.

But it's still a moot point, as the admins of the list won't be
changing settings.

Regards
Peter

-- 
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
/hype

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



Re: [PHP] Getting Array to Display

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 13:56 -0400, Gary wrote:
 Richard
 
 I'm sorry, it looks like I sent a reply direct to you instead of the board, 
 a mistake on my part.  Here is the message.

LOL Must have hit the wrong reply button.

-- 
Blessings,
David M.


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



Re: [PHP] Re: replying to list (I give up)

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 20:38 +0200, Michelle Konzack wrote:
 Hello David McGlone,
 
 Am 2010-04-21 09:37:48, hacktest Du folgendes herunter:
  Yes. but if it was so harmful, why does the 40, 50 or so lists that I've
  been on, simply let you hit the reply and it goes back to the list?
 
 Can you tell me which list these are?  I assume that on  most  of  those
 lists are handicaped Windows-Users which can not do better du  to  there
 cuted down ad restricting software which does not allow Users-Freedom...

To name a few:

Linux 4 Christians
Christian Source Free Open Source LUG (CS-FSLUG)
KDE *
Gnome *
Central Ohio Linux Users Group


-- 
Blessings,
David M.


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



Re: [PHP] Getting Array to Display

2010-04-21 Thread Gary

Yea...not my day for technological domination.


Gary


David McGlone da...@dmcentral.net wrote in message 
news:1271880892.24626.11.ca...@buddy...

On Wed, 2010-04-21 at 13:56 -0400, Gary wrote:

Richard

I'm sorry, it looks like I sent a reply direct to you instead of the 
board,

a mistake on my part.  Here is the message.


LOL Must have hit the wrong reply button.

--
Blessings,
David M.


__ Information from ESET NOD32 Antivirus, version of virus 
signature database 5048 (20100421) __


The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






__ Information from ESET NOD32 Antivirus, version of virus signature 
database 5048 (20100421) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




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



Re: [PHP] Getting Array to Display

2010-04-21 Thread Karl DeSaulniers

lol
Yeah, not your fault Gary.

On Apr 21, 2010, at 3:51 PM, Gary wrote:

I'm sorry, it looks like I sent a reply direct to you instead of  
the board,

a mistake on my part.


Karl DeSaulniers
Design Drumm
http://designdrumm.com


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



Re: [PHP] Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-21 Thread Karl DeSaulniers

On Apr 21, 2010, at 1:51 PM, Jay Blanchard wrote:


Then write an interface (using PHP of course) that
only responds to the list when you generate a reply.


LOL
WT??

WHY would we want to do that? Much unnecessary work when an admin  
could set a reply-to and all would be solved.
With all due respect, if I was going to go through all that trouble  
just so I could hit reply instead of reply-all or reply-list or reply- 
group,
I would write an email list program that discussed PHP (in PHP) and I  
would set the reply-to to go to my list email.

:)

Not to mention, the admin can set all of them to go to the list email.

reply-to
reply-list
reply-group

They just have to set the headers to point there. Much easier than  
what was suggested.


That aside, I think David was just wondering why it was set up that  
way in the first part.
More a question for a admin, then the list, but it is on the list  
none the less.

I would have sent that one to the Admin directly.

It is curious though, why the admin of the PHP lists depend on  
special case scenarios such as reply-list or reply-group.
To me, thats kind of like saying you can only click buttons on our  
website if you use Internet Explorer.

Everyone else has to view the source and copy the urls to navigate.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com


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



RE: [PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-21 Thread Williams, Dewey
 Oh, I have checked my mailinglist subsribtions and only 11  of  113
 are using this stupid Reply-To:  stuff...  But as I already mentioned,
 those lists have manly Windows-Noobs which do not know better...
 speak,  they can not use there brain and let Microsoft and Co thinking
 for them..
 
 Thanks, Greetings and nice Day/Evening
 Michelle Konzack
 Systemadministrator
 [Dewey Williams] 

No need to get nasty.  Some people MUST use Windows and OUTLOOK! (which
does not have reply to list) where they work.

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



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

2010-04-21 Thread Michiel Sikma
On 21 April 2010 18:02, tedd tedd.sperl...@gmail.com wrote:


 Welcome Nick.

 Do you own a bank?  :-)


 Cheers,

 tedd


C'mon, this is the PHP list, not COBOL :)

But yes, welcome to the list. Frequenting a list is one of the best things
you can do when learning a language. Don't be afraid to ask should anything
confuse you.

Michiel


Re: [PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-21 Thread Daniel Egeberg
On Wed, Apr 21, 2010 at 22:56, Williams, Dewey willi...@uncc.edu wrote:
 Oh, I have checked my mailinglist subsribtions and only 11  of  113
 are using this stupid Reply-To:  stuff...  But as I already mentioned,
 those lists have manly Windows-Noobs which do not know better...
 speak,  they can not use there brain and let Microsoft and Co thinking
 for them..

 Thanks, Greetings and nice Day/Evening
     Michelle Konzack
     Systemadministrator
  [Dewey Williams]

 No need to get nasty.  Some people MUST use Windows and OUTLOOK! (which
 does not have reply to list) where they work.

And some people choose Windows of their own free will. Linux is not
for everyone, and anyone who is bigoted enough to think so need to get
over themselves. Trying to impose one's choice of operating system (or
anything else for that matter) onto someone else is plain ridiculous.

-- 
Daniel Egeberg

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



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

2010-04-21 Thread Brandon Rampersad
What's wrong with asking if PHP supports threading?

On Wed, Apr 21, 2010 at 5:33 PM, Michiel Sikma mich...@thingmajig.orgwrote:

 On 21 April 2010 18:02, tedd tedd.sperl...@gmail.com wrote:

 
  Welcome Nick.
 
  Do you own a bank?  :-)
 
 
  Cheers,
 
  tedd
 
 
 C'mon, this is the PHP list, not COBOL :)

 But yes, welcome to the list. Frequenting a list is one of the best things
 you can do when learning a language. Don't be afraid to ask should anything
 confuse you.

 Michiel




-- 
A Brandon_R Production


RE: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Alice Wei

 Date: Wed, 21 Apr 2010 22:01:03 +0200
 Subject: Re: [PHP] Mail Function Using PEAR Issues
 To: aj...@alumni.iu.edu
 CC: a...@ashleysheridan.co.uk; php-general@lists.php.net
 
 On 21 April 2010 21:58, Alice Wei aj...@alumni.iu.edu wrote:
  From: peter.e.l...@gmail.com
  Date: Wed, 21 Apr 2010 21:51:31 +0200
  Subject: Re: [PHP] Mail Function Using PEAR Issues
  To: aj...@alumni.iu.edu
  CC: a...@ashleysheridan.co.uk; php-general@lists.php.net
 
  On 21 April 2010 18:44, Alice Wei aj...@alumni.iu.edu wrote:
   I have mentioned several posts earlier that I have done nothing about my
   php.ini file. From what you said, since I use U-Verse, am I supposed to
   do
   something as described here:
   http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
  
  
  
   I thought with PEAR, you don't need to do that anymore. Or, am I wrong?
  
 
  Read the PEAR documentation:
  http://pear.php.net/manual/en/package.mail.mail.factory.php
  You can use other backends than just 'mail' - try using the smtp and
  fill in your smtp settings as needed.
 
  Regards
  Peter
 
  I saw something like that on
  http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm,
  and this is probably what you are talking about?
 
   $smtp = Mail::factory('smtp',
 array ('host' = $host,
   'auth' = true,
   'username' = $username,
   'password' = $password));
 
  Do I still need to install a mail server? I have Evolution Mail on my Linux
  box, and looks like that is a client and not a server.
  Or, can I use any of the mail smtp setup, like Google? Or, do use some
  authentication information from
  http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf, since I use
  U-Verse at home?
 
 Yes, the example you provide is the right direction - you can put in
 the smtp details you use to connect from Evolution to GMail, you don't
 need to setup a separate smtp server on your system.
 
 Regards
 Peter
 

Well, hold it. I have edited my code to hold the information as we have 
discussed earlier, and this is the error I have now:

Warning:  include_once(Net/SMTP.php) [function.include-once]: failed to open 
stream: No such file or directory in /usr/share/php/Mail/smtp.php on line 348



Warning:  include_once() [function.include]: Failed opening 'Net/SMTP.php' for 
inclusion (include_path='.:/usr/share/php') in /usr/share/php/Mail/smtp.php on 
line 348



Fatal error:  Class 'Net_SMTP' not found in /usr/share/php/Mail/smtp.php on 
line 349

I am not sure what this means. If I have installed pear correctly, what else do 
I have to do here? I can see that I have some significant error messages than 
not getting anything at all. 

Thanks for your help.

Alice
  
_
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1

Re: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Ken Guest
you have to install the net_smtp package, simply with this command:
$ pear install net_smtp-1.4.2  (which will explicitly install version
1.4.2 of Net_SMTP)

If that doesn't work. for whatever reason, you could download the
package manually from http://pear.php.net/package/Net_SMTP/download
and install it by hand; though for reasons I've outlined in a previous
post to this list I'd suggest you use the pear installer.

On Thu, Apr 22, 2010 at 12:12 AM, Alice Wei aj...@alumni.iu.edu wrote:

 Date: Wed, 21 Apr 2010 22:01:03 +0200
 Subject: Re: [PHP] Mail Function Using PEAR Issues
 To: aj...@alumni.iu.edu
 CC: a...@ashleysheridan.co.uk; php-general@lists.php.net

 On 21 April 2010 21:58, Alice Wei aj...@alumni.iu.edu wrote:
  From: peter.e.l...@gmail.com
  Date: Wed, 21 Apr 2010 21:51:31 +0200
  Subject: Re: [PHP] Mail Function Using PEAR Issues
  To: aj...@alumni.iu.edu
  CC: a...@ashleysheridan.co.uk; php-general@lists.php.net
 
  On 21 April 2010 18:44, Alice Wei aj...@alumni.iu.edu wrote:
   I have mentioned several posts earlier that I have done nothing about my
   php.ini file. From what you said, since I use U-Verse, am I supposed to
   do
   something as described here:
   http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
  
  
  
   I thought with PEAR, you don't need to do that anymore. Or, am I wrong?
  
 
  Read the PEAR documentation:
  http://pear.php.net/manual/en/package.mail.mail.factory.php
  You can use other backends than just 'mail' - try using the smtp and
  fill in your smtp settings as needed.
 
  Regards
  Peter
 
  I saw something like that on
  http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm,
  and this is probably what you are talking about?
 
   $smtp = Mail::factory('smtp',
     array ('host' = $host,
       'auth' = true,
       'username' = $username,
       'password' = $password));
 
  Do I still need to install a mail server? I have Evolution Mail on my Linux
  box, and looks like that is a client and not a server.
  Or, can I use any of the mail smtp setup, like Google? Or, do use some
  authentication information from
  http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf, since I use
  U-Verse at home?

 Yes, the example you provide is the right direction - you can put in
 the smtp details you use to connect from Evolution to GMail, you don't
 need to setup a separate smtp server on your system.

 Regards
 Peter


 Well, hold it. I have edited my code to hold the information as we have 
 discussed earlier, and this is the error I have now:

 Warning:  include_once(Net/SMTP.php) [function.include-once]: failed to open 
 stream: No such file or directory in /usr/share/php/Mail/smtp.php on line 348



 Warning:  include_once() [function.include]: Failed opening 'Net/SMTP.php' 
 for inclusion (include_path='.:/usr/share/php') in 
 /usr/share/php/Mail/smtp.php on line 348



 Fatal error:  Class 'Net_SMTP' not found in /usr/share/php/Mail/smtp.php on 
 line 349

 I am not sure what this means. If I have installed pear correctly, what else 
 do I have to do here? I can see that I have some significant error messages 
 than not getting anything at all.

 Thanks for your help.

 Alice

 _
 Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
 http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1



-- 
http://blogs.linux.ie/kenguest/

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



RE: [PHP] Mail Function Using PEAR Issues

2010-04-21 Thread Alice Wei


 Date: Thu, 22 Apr 2010 00:31:04 +0100
 Subject: Re: [PHP] Mail Function Using PEAR Issues
 From: k...@linux.ie
 To: aj...@alumni.iu.edu
 CC: peter.e.l...@gmail.com; a...@ashleysheridan.co.uk; 
 php-general@lists.php.net
 
 you have to install the net_smtp package, simply with this command:
 $ pear install net_smtp-1.4.2  (which will explicitly install version
 1.4.2 of Net_SMTP)
 
 If that doesn't work. for whatever reason, you could download the
 package manually from http://pear.php.net/package/Net_SMTP/download
 and install it by hand; though for reasons I've outlined in a previous
 post to this list I'd suggest you use the pear installer.
 
 On Thu, Apr 22, 2010 at 12:12 AM, Alice Wei aj...@alumni.iu.edu wrote:
 
  Date: Wed, 21 Apr 2010 22:01:03 +0200
  Subject: Re: [PHP] Mail Function Using PEAR Issues
  To: aj...@alumni.iu.edu
  CC: a...@ashleysheridan.co.uk; php-general@lists.php.net
 
  On 21 April 2010 21:58, Alice Wei aj...@alumni.iu.edu wrote:
   From: peter.e.l...@gmail.com
   Date: Wed, 21 Apr 2010 21:51:31 +0200
   Subject: Re: [PHP] Mail Function Using PEAR Issues
   To: aj...@alumni.iu.edu
   CC: a...@ashleysheridan.co.uk; php-general@lists.php.net
  
   On 21 April 2010 18:44, Alice Wei aj...@alumni.iu.edu wrote:
I have mentioned several posts earlier that I have done nothing about 
my
php.ini file. From what you said, since I use U-Verse, am I supposed 
to
do
something as described here:
http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
   
   
   
I thought with PEAR, you don't need to do that anymore. Or, am I 
wrong?
   
  
   Read the PEAR documentation:
   http://pear.php.net/manual/en/package.mail.mail.factory.php
   You can use other backends than just 'mail' - try using the smtp and
   fill in your smtp settings as needed.
  
   Regards
   Peter
  
   I saw something like that on
   http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm,
   and this is probably what you are talking about?
  
$smtp = Mail::factory('smtp',
  array ('host' = $host,
'auth' = true,
'username' = $username,
'password' = $password));
  
   Do I still need to install a mail server? I have Evolution Mail on my 
   Linux
   box, and looks like that is a client and not a server.
   Or, can I use any of the mail smtp setup, like Google? Or, do use some
   authentication information from
   http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf, since I use
   U-Verse at home?
 
  Yes, the example you provide is the right direction - you can put in
  the smtp details you use to connect from Evolution to GMail, you don't
  need to setup a separate smtp server on your system.
 
  Regards
  Peter
 
 
  Well, hold it. I have edited my code to hold the information as we have 
  discussed earlier, and this is the error I have now:
 
  Warning:  include_once(Net/SMTP.php) [function.include-once]: failed to 
  open stream: No such file or directory in /usr/share/php/Mail/smtp.php on 
  line 348
 
 
 
  Warning:  include_once() [function.include]: Failed opening 'Net/SMTP.php' 
  for inclusion (include_path='.:/usr/share/php') in 
  /usr/share/php/Mail/smtp.php on line 348
 
 
 
  Fatal error:  Class 'Net_SMTP' not found in /usr/share/php/Mail/smtp.php on 
  line 349
 
  I am not sure what this means. If I have installed pear correctly, what 
  else do I have to do here? I can see that I have some significant error 
  messages than not getting anything at all.
 
  Thanks for your help.
 
  Alice
 
  _
  Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
  http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
 
 
 
 -- 
 http://blogs.linux.ie/kenguest/

As the time of writing this, I have installed the missing Net_SMTP pear package 
unto my Linux box. I have just tested it, and I have received two email 
messages to the desired mailbox, without having to install a mail server. 
Thanks for your help.

I really appreciate this. 

Alice
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2

Re: [PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]

2010-04-21 Thread Dan Joseph
My goodness, are you people still going on about all this?  LOL... let it
go... it is what it is.

-- 
-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] Hello everybody - php newbie from switzerland

2010-04-21 Thread Dan Joseph
On Wed, Apr 21, 2010 at 6:21 PM, Brandon Rampersad brandon.add...@gmail.com
 wrote:

 What's wrong with asking if PHP supports threading?


Nothing?  PHP itself does not.  You can check out fork though.  I've never
personally used it with PHP, but I did for a Perl project years ago.  I
guess it worked ok.

http://us3.php.net/manual/en/function.pcntl-fork.php

-- 
-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] Hello everybody - php newbie from switzerland

2010-04-21 Thread Tommy Pham
 -Original Message-
 From: Dan Joseph [mailto:dmjos...@gmail.com]
 Sent: Wednesday, April 21, 2010 4:49 PM
 To: php-general@lists.php.net
 Subject: Re: [PHP] Hello everybody - php newbie from switzerland
 
 On Wed, Apr 21, 2010 at 6:21 PM, Brandon Rampersad
 brandon.add...@gmail.com
  wrote:
 
  What's wrong with asking if PHP supports threading?
 
 
 Nothing?  PHP itself does not.  You can check out fork though.  I've
 never
 personally used it with PHP, but I did for a Perl project years ago.  I
 guess it worked ok.
 
 http://us3.php.net/manual/en/function.pcntl-fork.php
 
 --
 -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

Keep in mind that's only applicable on Linux  Unix OSes, including Mac/Apple 
since Apple OS is based on BSD and other Unix implementations.


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



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

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 18:21 -0400, Brandon Rampersad wrote:
 What's wrong with asking if PHP supports threading?

Nothing really, I was just kidding.



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



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

2010-04-21 Thread Dan Joseph
On Wed, Apr 21, 2010 at 8:09 PM, David McGlone da...@dmcentral.net wrote:

 On Wed, 2010-04-21 at 18:21 -0400, Brandon Rampersad wrote:
  What's wrong with asking if PHP supports threading?

 Nothing really, I was just kidding.



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


lol..  I didn't see your email where you said not to ask

-- 
-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] CD, DVD, and Blu-Ray (Not PHP)

2010-04-21 Thread Tommy Pham
 -Original Message-
 From: Dan Joseph [mailto:dmjos...@gmail.com]
 Sent: Wednesday, April 21, 2010 10:19 AM
 To: PHP
 Subject: Re: [PHP] CD, DVD, and Blu-Ray (Not PHP)
 
 On Wed, Apr 21, 2010 at 1:16 PM, tedd t...@sperling.com wrote:
 
  I'm no expert on media, but the only difference between CD, DVD, Blu-
 Ray is
  the amount of data they can hold, right? IOW, you can still record
 video,
  audio, pictures, files, all digital data on all media - it's just
 that
  Blu-Ray can hold more than DVD and DVD holds more than CD, isn't that
 right?
 
 
 Speaking purely data, yessir.  That's your difference.
 
 --
 -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

More data brings the ultimate experience of HD 3D in both video and audio.


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



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

2010-04-21 Thread David McGlone
On Wed, 2010-04-21 at 20:12 -0400, Dan Joseph wrote:
 On Wed, Apr 21, 2010 at 8:09 PM, David McGlone da...@dmcentral.net wrote:
 
  On Wed, 2010-04-21 at 18:21 -0400, Brandon Rampersad wrote:
   What's wrong with asking if PHP supports threading?
 
  Nothing really, I was just kidding.
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 lol..  I didn't see your email where you said not to ask
 

Are we gonna have to have a discussion on the use of threading? LOL


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



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

2010-04-21 Thread Dan Joseph
On Wed, Apr 21, 2010 at 8:38 PM, David McGlone da...@dmcentral.net wrote:


 Are we gonna have to have a discussion on the use of threading? LOL



We just might.  Personally, I use it to sow holes in the toe of my socks.

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


  1   2   >