php-general Digest 19 Jul 2012 16:18:35 -0000 Issue 7893

2012-07-19 Thread php-general-digest-help

php-general Digest 19 Jul 2012 16:18:35 - Issue 7893

Topics (messages 318497 through 318504):

Re: Creating drop-down menus
318497 by: James Newman
318498 by: Paul M Foster
318500 by: Andrew Ballard
318501 by: Tim Streater

Re: SOAP and Php question about authentication
318499 by: Matijn Woudt

Re: Creating drop-down menus - use AJAX and jQuery
318502 by: Daevid Vincent
318503 by: Jay Blanchard

difference PEAR PECL
318504 by: Mihamina Rakotomandimby

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---
Just to put my 2cents in, you might want to try jQuery if you're going to
go down the AJAX road.

James.

On Wed, Jul 18, 2012 at 1:59 AM, Ramiro Barrantes 
ram...@precisionbioassay.com wrote:

 Thanks to everyone for their help, AJAX is the way to go.

 Daevid, it's interesting you welcome me to the year 2000, I actually
 graduated from CS in 1999 and haven't really done much more than simple
 web-programming since (have done scientific programming instead), so I am
 definitely behind the times!!!

 
 From: Jen Rasmussen [j...@cetaceasound.com]
 Sent: Monday, July 16, 2012 4:19 PM
 To: Ramiro Barrantes; php-gene...@lists.php.net
 Subject: RE: [PHP] Creating drop-down menus

 -Original Message-
 From: Ramiro Barrantes [mailto:ram...@precisionbioassay.com]
 Sent: Monday, July 16, 2012 3:17 PM
 To: php-gene...@lists.php.net
 Subject: [PHP] Creating drop-down menus

 Hello,

 I am making an application using PHP/Javascript/mysql and had a question.

 Sometimes I need to use javascript to fill a drop down box based on the
 value of a previous drop down box.  However, the information to fill the
 latter is stored in mysql and can be a lot, what I have been doing is that,
 using PHP, I create hidden fields with all the possible information that
 might be needed to fill the second drop down.

 For example, the user chooses a bank from a drop down, and then a list of
 clients is displayed on the following drop down.  I use PHP to read all
 clients from all the banks and put that as hidden fields on the html page.
 It is very cumbersome.

 I do not want to read the database (which changes dynamically) from
 javascript directly due to confidentiality and because a lot of care has
 been taken to create the appropriate  queries with checks and protect
 misuse
 of the information using PHP.

 My questions are:
 1) Do people just normally use hidden fields to store possible information
 to fill the drop downs?
 2) any suggestions?

 Thanks in advance,
 Ramiro

 **

 You could also store the information as a session variable.

 Jen




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


---End Message---
---BeginMessage---
On Wed, Jul 18, 2012 at 08:45:34AM +1200, James Newman wrote:

 Just to put my 2cents in, you might want to try jQuery if you're going to
 go down the AJAX road.

JQuery is a LOT of code to include if you're just going to do an AJAX
call or two. There are examples of doing straight AJAX with Javascript
on the 'Net. Once you work through them, you find that there's a
static part that you can include in all the files you want to make
AJAX calls. And then there's the part that deals directly with the data
you get back from whatever PHP or other script is feeding you data from
outside the website. That's the part that needs custom work. I *hate*
Javascript, but I managed to figure it out.

Another point: I'm not sure if it's the same for other people. I'm on a
crappy little computer running Linux. I've got a little CPU meter in my
taskbar. And nothing jacks that meter up like Javascript. I don't know
why, but Javascript just devours CPU on my computer. The more
javascript, the worse. And like I said, JQuery is a LOT of code. This is
one of the reasons I tend to code things in PHP instead of Javascript.

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com
---End Message---
---BeginMessage---
On Tue, Jul 17, 2012 at 4:58 PM, Paul M Foster pa...@quillandmouse.com wrote:
 On Wed, Jul 18, 2012 at 08:45:34AM +1200, James Newman wrote:

 Just to put my 2cents in, you might want to try jQuery if you're going to
 go down the AJAX road.

 JQuery is a LOT of code to include if you're just going to do an AJAX
 call or two. There are examples of doing straight AJAX with Javascript
 on the 'Net. Once you work through them, you find that there's a
 static part that you can include in all the files you want to make
 AJAX calls. And then there's the part that deals directly with the data
 you get back from whatever PHP or other script is 

[PHP] difference PEAR PECL

2012-07-19 Thread Mihamina Rakotomandimby

Hi all,
Wondering about the difference between PECL and PEAR, I found:
http://board.phpbuilder.com/showthread.php?10339238-Pecl-vs-Pear

Is it a suitable answer?

If so, several Linux ditribution have:
* php-pecl-xxx (PECL)
* php-pear-vvv (PEAR)
* php-yyy  (???)
packages (rpm and deb).

What about the last kind?

--
RMA.


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



Re: [PHP] difference PEAR PECL

2012-07-19 Thread Daniel Brown
On Thu, Jul 19, 2012 at 12:18 PM, Mihamina Rakotomandimby
miham...@rktmb.org wrote:
 Hi all,
 Wondering about the difference between PECL and PEAR, I found:
 http://board.phpbuilder.com/showthread.php?10339238-Pecl-vs-Pear

 Is it a suitable answer?

It's close.

PECL (sometimes pronounced pickle) stands for PHP Extension
Community Library, which is - as the name suggests - a library of PHP
extensions.  Things like APC, memcache, amqp, and sqlite are examples
of popular PECL extensions.  PECL is a repository of compiled
binaries.

By contrast, PEAR - the PHP Extension and Application Repository -
is actually not a library of extensions in the common definition,
despite what the name suggests.  Instead, it's a collection of
unrelated reusable components, written in PHP, to be used for
application development.  PEAR is technically considered a framework,
but is more commonly used as individual classes, as opposed to a full
framework deployment in the traditional sense, such as Yii, Zend,
CodeIgniter, 2x4, et al.  Popular PEAR packages include Mail,
PHP_Codesniffer, Date_Holidays, and various API service components
such as those used with Amazon Web Services (AWS).  PEAR components
are supposed to follow the PEAR Coding Standard as well.

If unsure which library to check for a given component, consider
the following: PEAR components are always First_Letter_Capitalized,
while PECL extensions are generally not.


 If so, several Linux ditribution have:
 * php-pecl-xxx (PECL)
 * php-pear-vvv (PEAR)
 * php-yyy  (???)
 packages (rpm and deb).

 What about the last kind?

php-pecl-xxx, php5-pecl, et cetera, are the PECL support libraries
and may also refer to PECL extensions.

php-pear-vvv, php5-pear, et cetera, are the PEAR support libraries
and may also refer to PEAR components.

php-yyy, php5-yyy, et cetera, are individual packages.  For
example, php_mysql or php5-cli.

If possible, however, when installing PECL or PEAR packages, use
the pecl or pear command line tool, respectively.  For example:

pecl install pdo_sqlite

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

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



Re: [PHP] Creating drop-down menus

2012-07-19 Thread Tedd Sperling
On Jul 16, 2012, at 4:16 PM, Ramiro Barrantes ram...@precisionbioassay.com 
wrote:

 Hello,
 
 I am making an application using PHP/Javascript/mysql and had a question.
 
 Sometimes I need to use javascript to fill a drop down box based on the value 
 of a previous drop down box.  However, the information to fill the latter is 
 stored in mysql and can be a lot, what I have been doing is that, using PHP, 
 I create hidden fields with all the possible information that might be needed 
 to fill the second drop down.
 
 For example, the user chooses a bank from a drop down, and then a list of 
 clients is displayed on the following drop down.  I use PHP to read all 
 clients from all the banks and put that as hidden fields on the html page.  
 It is very cumbersome.
 
 I do not want to read the database (which changes dynamically) from 
 javascript directly due to confidentiality and because a lot of care has been 
 taken to create the appropriate  queries with checks and protect misuse of 
 the information using PHP.
 
 My questions are:
 1) Do people just normally use hidden fields to store possible information to 
 fill the drop downs?
 2) any suggestions?
 
 Thanks in advance,
 Ramiro
 


Ramiro:

The subject line of Creating drop-down menus is misleading -- here is what a 
drop-down menu is:

http://sperling.com/examples/new-menuh/
http://sperling.com/examples/menuh/

And similarly, a fly-out menu:

http://sperling.com/examples/menuv/

What you are describing is simply a self-updating selection control, like this:

http://php1.net/a/zipcode-states/

The description and code is there.

To the PHP gang:

As for the discussion re jQuery and such, there's no need -- it was not used in 
this demo. IOW, no jQuery was harmed. I am not against jQuery, on the contrary 
I think it's great, but it's not always needed for client-side functionality. 
As I see it, there is no need for a sledgehammer to drive a thumb tack.

Please realize that all controls (input, textarea, options, selections, 
checkboxes, radio buttons, multi-options, etc.) can be handled this fashion. 
This is not your father's limited server-side php, but rather a coupling of 
both server-side and client-side languages to provide a more 
desktop-application-like user experience.

Cheers,

tedd


_
t...@sperling.com
http://sperling.com



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



[PHP] What do you call the end-user?

2012-07-19 Thread Tedd Sperling
Hi gang:

I can't wait for tomorrow -- so here's my off-topic post today.

First question:

What do you call the people who ultimately use your code?

I call them the end-user, but others have stated other terms, such as 
customer or user.

Second question:

Are you concerned with their (whomever) experience in using your code? 

This question transcends your code working correctly, accurately, and securely 
-- no need to comment on those aspects. But rather more specifically do you 
consider how easily your whomever can use your work efforts?

As you may have guessed - I just attended a UX conference and they provide an 
interesting perspective on UX. I was wondering how php developers typically 
address the subject.

Cheers,

tedd


t...@sperling.com
http://sperling.com


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



Re: [PHP] What do you call the end-user?

2012-07-19 Thread Daniel Brown
On Thu, Jul 19, 2012 at 1:26 PM, Tedd Sperling t...@sperling.com wrote:

 What do you call the people who ultimately use your code?

If they're using the *code*, then user or developer.  If
they're using the finished product (site, application, or results
thereof), then end-user, customer, visitor, or subscriber work
just fine.  Ultimately, the term end-user signifies a bookend-like
link in the chain, such as a subscriber; the opposite bookend would be
the producer or creator, with connecting links being the publisher,
provider, distributor, perscriptionist, reseller, and so forth.

 Are you concerned with their (whomever) experience in using your code?

 This question transcends your code working correctly, accurately, and 
 securely -- no need to comment on those aspects. But rather more specifically 
 do you consider how easily your whomever can use your work efforts?

 As you may have guessed - I just attended a UX conference and they provide an 
 interesting perspective on UX. I was wondering how php developers typically 
 address the subject.

Overall, no.  If it's going to be user-facing and not just systems
interpretation (automation, AI, et cetera), then I leave that up to
the UX folks.  I work on the functionality and logic, they work on the
flow and presentation.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

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



Re: [PHP] Creating drop-down menus

2012-07-19 Thread Daniel Brown
On Thu, Jul 19, 2012 at 1:25 PM, Tedd Sperling t...@sperling.com wrote:

 As for the discussion re jQuery and such, there's no need -- it was not used 
 in this demo. IOW, no jQuery was harmed. I am not against jQuery, on the 
 contrary I think it's great, but it's not always needed for client-side 
 functionality. As I see it, there is no need for a sledgehammer to drive a 
 thumb tack.

As an aside on the subject of jQuery, our very own Jay Blanchard
has written a comprehensive book on the topic entitled Applied
jQuery: Develop and Design:

http://links.parasane.net/92xb

It's one of the very rare (read: two) programming books found on
my shelf.  The other is Jamsa's C/C++ Programmer's Bible by Kris
Jamsa and Lars Klander.  I borrowed it from my brother for reference
when Internet connections wouldn't be available perhaps someday
he'll get it back, too.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

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



RE: [PHP] What do you call the end-user?

2012-07-19 Thread Jeff Burcher
Hi,

I have always held that the opinion of the end-user/customer is the most
important goal in any systems development project, small or large,
regardless of the programming language/environment. The database structure,
programming, and interfaces are your product. If folks don't like it or
can't figure out how to use it or can't wait until something better comes
along, your product won't survive long in the marketplace. This attitude
should also be held for developers creating in-house solutions as well.
While management may have an overall goal for the purpose of the
programming, the people who will eventually be the ones typing/clicking
their way through your programs are the ones to ultimately satisfy. This
means more pro-active design work with the front line users is always
advisable to create long lasting programs/systems. I use mostly PHP to
create web-based interface screens for AS400 programs in a manufacturing
environment. I can spend all the time I want programming the next greatest
program, but if the guys in the plant don't/won't use it, I have completely
wasted my time. My two cents.


Thanks,

Jeff Burcher - IT Dept
Allred Metal Stamping
PO Box 2566
High Point, NC 27261
(336)886-5221 x229
j...@allredmetal.com

 -Original Message-
 From: Tedd Sperling [mailto:t...@sperling.com]
 Sent: Thursday, July 19, 2012 1:27 PM
 To: php-general@lists.php.net General
 Subject: [PHP] What do you call the end-user?
 
 Hi gang:
 
 I can't wait for tomorrow -- so here's my off-topic post today.
 
 First question:
 
 What do you call the people who ultimately use your code?
 
 I call them the end-user, but others have stated other terms, such as
 customer or user.
 
 Second question:
 
 Are you concerned with their (whomever) experience in using your code?
 
 This question transcends your code working correctly, accurately, and
 securely -- no need to comment on those aspects. But rather more
 specifically do you consider how easily your whomever can use your work
 efforts?
 
 As you may have guessed - I just attended a UX conference and they provide
 an interesting perspective on UX. I was wondering how php developers
 typically address the subject.
 
 Cheers,
 
 tedd
 
 
 t...@sperling.com
 http://sperling.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] What do you call the end-user?

2012-07-19 Thread Lester Caine

Tedd Sperling wrote:

I can't wait for tomorrow -- so here's my off-topic post today.

First question:

What do you call the people who ultimately use your code?

I call them the end-user, but others have stated other terms, such as customer or 
user.


If they are paying they are customers, if they are freeloading they are users.


Second question:

Are you concerned with their (whomever) experience in using your code?

This question transcends your code working correctly, accurately, and securely -- no need 
to comment on those aspects. But rather more specifically do you consider how easily your 
whomever can use your work efforts?

As you may have guessed - I just attended a UX conference and they provide an 
interesting perspective on UX. I was wondering how php developers typically 
address the subject.


I have an application which has evolved over 20 years, but still does 
essentially what it did 20 years ago. It was ported to PHP to replace it's own 
alphnumeric terminals around 2000 but still uses the basic functionality that 
the original hardware provided.


The nice thing about PHP is that it while the original stuff was all hard coded 
programs and changes were difficult, with PHP we can adjust things easily. 
Probably a little too easily, but molding things to each sites personal 
preferences is something that could not be done originally. So we tailor the 
user side to reflect local workflow rather than forcing a one size fits all 
solution that we had before.


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk



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



RE: [PHP] What do you call the end-user?

2012-07-19 Thread admin


-Original Message-
From: Tedd Sperling [mailto:t...@sperling.com] 
Sent: Thursday, July 19, 2012 1:27 PM
To: php-general@lists.php.net General
Subject: [PHP] What do you call the end-user?

Hi gang:

I can't wait for tomorrow -- so here's my off-topic post today.

First question:

What do you call the people who ultimately use your code?

I call them the end-user, but others have stated other terms, such as
customer or user.

Second question:

Are you concerned with their (whomever) experience in using your code? 

This question transcends your code working correctly, accurately, and
securely -- no need to comment on those aspects. But rather more
specifically do you consider how easily your whomever can use your work
efforts?

As you may have guessed - I just attended a UX conference and they provide
an interesting perspective on UX. I was wondering how php developers
typically address the subject.

Cheers,

tedd


t...@sperling.com
http://sperling.com


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


I call them the GUI between the Chair and the Key board (behind the
scenes)!
To their face/documented I call them the End-user I do however break this
down into tier level access users depending on access desires.

From straw dog to functioning portal the (easy, flow, and navigation) is
always designed for the most novice of users is HIGH priority.
This area gets a little hairy with different levels of knowledge are
concerns. Some want a point to point (Walk Trough scenario) and others want
more complex features as options. 

Reports, in my mind the most complex portion of any development because of
the mash of conceptual ideas of what the end product should look like. These
areas are rarely novice compliant, because of the sheer complexity of
filtering options desired. I stick to a Canned Report approach when
dealing with novice end-users.

My goal in life has been to develop the ultimate portal that thinks for you
and less dependent on your interactions. I am close to finishing a learning
module that learns from your interactions and navigates according to your
past history. But that is for another time 


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



[PHP] The Cat Signal

2012-07-19 Thread Kris Craig
Hey guys,

I just became aware of this:

http://internetdefenseleague.org/


It's a site setup by Mozilla, Reddit, and others to defend internet freedom
in the wake of recent legislative events in the U.S. and elsewhere (full
members list here:  http://www.internetdefenseleague.org/members).

They've setup what they're calling the cat signal, an invisible bit of
embeddable code you can put in your website that will activate (and display
the afore-mentioned signal/link/etc) if/when the next SOPA/PIPA/etc comes
along that threatens the open internet.

I'd like to propose that we integrate this into the PHP website.  This
issue directly affects our community and we already staked a claim in this
fight when we participated in the last great blackout.

In addition, I'd also l ike to propose that we officially join this group
as a member.  I'm not sure if we'd do this by vote or something similar to
the RFC process  etc, but if you'll grant me permission, I'd be happy to
do the legwork on this myself (make the HTML edits, contact the
organization on PHP's behalf, etc).


Thoughts?

--Kris


Re: [PHP] What do you call the end-user?

2012-07-19 Thread Tedd Sperling
On Jul 19, 2012, at 1:54 PM, admin ad...@buskirkgraphics.com wrote:
 My goal in life has been to develop the ultimate portal that thinks for you
 and less dependent on your interactions. I am close to finishing a learning
 module that learns from your interactions and navigates according to your
 past history. But that is for another time 

If not now, when?

It sounds very interesting.

Cheers,

tedd

_
t...@sperling.com
http://sperling.com

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



Re: [PHP] The Cat Signal

2012-07-19 Thread Daniel Brown
Forwarding to php-webmas...@lists.php.net, as it's not a general
user issue where it pertains to php.net.

On Thu, Jul 19, 2012 at 2:02 PM, Kris Craig kris.cr...@gmail.com wrote:
 Hey guys,

 I just became aware of this:

 http://internetdefenseleague.org/


 It's a site setup by Mozilla, Reddit, and others to defend internet freedom
 in the wake of recent legislative events in the U.S. and elsewhere (full
 members list here:  http://www.internetdefenseleague.org/members).

 They've setup what they're calling the cat signal, an invisible bit of
 embeddable code you can put in your website that will activate (and display
 the afore-mentioned signal/link/etc) if/when the next SOPA/PIPA/etc comes
 along that threatens the open internet.

 I'd like to propose that we integrate this into the PHP website.  This
 issue directly affects our community and we already staked a claim in this
 fight when we participated in the last great blackout.

 In addition, I'd also l ike to propose that we officially join this group
 as a member.  I'm not sure if we'd do this by vote or something similar to
 the RFC process  etc, but if you'll grant me permission, I'd be happy to
 do the legwork on this myself (make the HTML edits, contact the
 organization on PHP's behalf, etc).


 Thoughts?

 --Kris



-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

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



Re: [PHP] difference PEAR PECL

2012-07-19 Thread Matijn Woudt
On Thu, Jul 19, 2012 at 6:58 PM, Daniel Brown danbr...@php.net wrote:
 On Thu, Jul 19, 2012 at 12:18 PM, Mihamina Rakotomandimby
 miham...@rktmb.org wrote:
 Hi all,
 Wondering about the difference between PECL and PEAR, I found:
 http://board.phpbuilder.com/showthread.php?10339238-Pecl-vs-Pear

 Is it a suitable answer?

 It's close.

 PECL (sometimes pronounced pickle) stands for PHP Extension
 Community Library, which is - as the name suggests - a library of PHP
 extensions.  Things like APC, memcache, amqp, and sqlite are examples
 of popular PECL extensions.  PECL is a repository of compiled
 binaries.

 By contrast, PEAR - the PHP Extension and Application Repository -
 is actually not a library of extensions in the common definition,
 despite what the name suggests.  Instead, it's a collection of
 unrelated reusable components, written in PHP, to be used for
 application development.  PEAR is technically considered a framework,
 but is more commonly used as individual classes, as opposed to a full
 framework deployment in the traditional sense, such as Yii, Zend,
 CodeIgniter, 2x4, et al.  Popular PEAR packages include Mail,
 PHP_Codesniffer, Date_Holidays, and various API service components
 such as those used with Amazon Web Services (AWS).  PEAR components
 are supposed to follow the PEAR Coding Standard as well.

 If unsure which library to check for a given component, consider
 the following: PEAR components are always First_Letter_Capitalized,
 while PECL extensions are generally not.


 If so, several Linux ditribution have:
 * php-pecl-xxx (PECL)
 * php-pear-vvv (PEAR)
 * php-yyy  (???)
 packages (rpm and deb).

 What about the last kind?

 php-pecl-xxx, php5-pecl, et cetera, are the PECL support libraries
 and may also refer to PECL extensions.

 php-pear-vvv, php5-pear, et cetera, are the PEAR support libraries
 and may also refer to PEAR components.

 php-yyy, php5-yyy, et cetera, are individual packages.  For
 example, php_mysql or php5-cli.

 If possible, however, when installing PECL or PEAR packages, use
 the pecl or pear command line tool, respectively.  For example:

 pecl install pdo_sqlite

Is this really the recommended way on distros' which package the pecl packages?
It seems to me it would be better to use the distros' version, so it
has the required patches (if any) for them to work correctly on the
distro, and they get upgraded automatically with the system updates.
What is the advantage of using the pecl tool?

- Matijn

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



Re: [PHP] difference PEAR PECL

2012-07-19 Thread Daniel Brown
On Thu, Jul 19, 2012 at 2:26 PM, Matijn Woudt tijn...@gmail.com wrote:

 Is this really the recommended way on distros' which package the pecl 
 packages?
 It seems to me it would be better to use the distros' version, so it
 has the required patches (if any) for them to work correctly on the
 distro, and they get upgraded automatically with the system updates.
 What is the advantage of using the pecl tool?

Using `pecl` will get you the most recently-published version.
Using a distro's repo requires your distro's package management teams
to actually be on top of things.  And, in the sad majority of cases,
it's simply not the way things are right now.  Using `pecl` will build
it from source using your installed API version and so forth.

-- 
/Daniel P. Brown
Network Infrastructure Manager
http://www.php.net/

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



[PHP] magic getter

2012-07-19 Thread Sebastian

Hi all,

is this a bug, or a feature?

class Foo
{
  private $data;

  public function __get($name)
  {
return $this-data[$name];
  }
}

$foo = new Foo();
$foo-color = 'red';

echo $foo-color;

I would expect an error, or a least a notice, but it prints out red ...


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



[PHP] magic getter

2012-07-19 Thread Sebastian

Hi all,

is this a bug, or a feature?

class Foo
{
  private $data;

  public function __get($name)
  {
return $this-data[$name];
  }
}

$foo = new Foo();
$foo-color = 'red';

echo $foo-color;

I would expect an error, or a least a notice, but it prints out red ...


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



Re: [PHP] magic getter

2012-07-19 Thread Matijn Woudt
On Thu, Jul 19, 2012 at 9:22 PM, Sebastian php-maill...@elygor.de wrote:
 Hi all,

 is this a bug, or a feature?

 class Foo
 {
   private $data;

   public function __get($name)
   {
 return $this-data[$name];
   }
 }

 $foo = new Foo();
 $foo-color = 'red';

 echo $foo-color;

 I would expect an error, or a least a notice, but it prints out red ...


I guess it's some hidden feature. Since you're not required to declare
your variables in PHP, it's pretty much impossible to detect if this
is what the user wants or an error. In this case, PHP will declare a
public variable color inside the class for you.

- Matijn

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



[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Ferenc Kovacs
2012.07.19. 20:21, Daniel Brown danbr...@php.net ezt írta:

 Forwarding to php-webmas...@lists.php.net, as it's not a general
 user issue where it pertains to php.net.

 On Thu, Jul 19, 2012 at 2:02 PM, Kris Craig kris.cr...@gmail.com wrote:
  Hey guys,
 
  I just became aware of this:
 
  http://internetdefenseleague.org/
 
 
  It's a site setup by Mozilla, Reddit, and others to defend internet
freedom
  in the wake of recent legislative events in the U.S. and elsewhere (full
  members list here:  http://www.internetdefenseleague.org/members).
 
  They've setup what they're calling the cat signal, an invisible bit of
  embeddable code you can put in your website that will activate (and
display
  the afore-mentioned signal/link/etc) if/when the next SOPA/PIPA/etc
comes
  along that threatens the open internet.
 
  I'd like to propose that we integrate this into the PHP website.  This
  issue directly affects our community and we already staked a claim in
this
  fight when we participated in the last great blackout.
 
  In addition, I'd also l ike to propose that we officially join this
group
  as a member.  I'm not sure if we'd do this by vote or something similar
to
  the RFC process  etc, but if you'll grant me permission, I'd be happy
to
  do the legwork on this myself (make the HTML edits, contact the
  organization on PHP's behalf, etc).
 
 
  Thoughts?
 
  --Kris



 --
 /Daniel P. Brown
 Network Infrastructure Manager
 http://www.php.net/

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


Btw. we were asked by the to join the league as we were a big traffic
source on the black out day.
I don't know if Rasmus is on the webmaster list or not, but we should cc
him, as he was the driving force behind us joining the anti SOPA movement.


Re: [PHP] magic getter

2012-07-19 Thread Jim Lucas

On 07/19/2012 12:22 PM, Sebastian wrote:

Hi all,

is this a bug, or a feature?

class Foo
{
private $data;

public function __get($name)
{
return $this-data[$name];
}
}

$foo = new Foo();
$foo-color = 'red';

echo $foo-color;

I would expect an error, or a least a notice, but it prints out red ...




Their is nothing magical about this.

When you do this:

$foo = new Foo();
$foo-color = 'red';

you create a variable within the $foo instance variable called color 
with a value of red.


Then, later on when you do this

echo $foo-color;

you are then simply echo'ing the variable/value you created.

with this example, you are never using the __get() magic function to 
retrieve the value of color.



--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

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



[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Kris Craig
On Thu, Jul 19, 2012 at 12:36 PM, Ferenc Kovacs tyr...@gmail.com wrote:


 2012.07.19. 20:21, Daniel Brown danbr...@php.net ezt írta:

 
  Forwarding to php-webmas...@lists.php.net, as it's not a general
  user issue where it pertains to php.net.
 
  On Thu, Jul 19, 2012 at 2:02 PM, Kris Craig kris.cr...@gmail.com
 wrote:
   Hey guys,
  
   I just became aware of this:
  
   http://internetdefenseleague.org/
  
  
   It's a site setup by Mozilla, Reddit, and others to defend internet
 freedom
   in the wake of recent legislative events in the U.S. and elsewhere
 (full
   members list here:  http://www.internetdefenseleague.org/members).
  
   They've setup what they're calling the cat signal, an invisible bit
 of
   embeddable code you can put in your website that will activate (and
 display
   the afore-mentioned signal/link/etc) if/when the next SOPA/PIPA/etc
 comes
   along that threatens the open internet.
  
   I'd like to propose that we integrate this into the PHP website.  This
   issue directly affects our community and we already staked a claim in
 this
   fight when we participated in the last great blackout.
  
   In addition, I'd also l ike to propose that we officially join this
 group
   as a member.  I'm not sure if we'd do this by vote or something
 similar to
   the RFC process  etc, but if you'll grant me permission, I'd be happy
 to
   do the legwork on this myself (make the HTML edits, contact the
   organization on PHP's behalf, etc).
  
  
   Thoughts?
  
   --Kris
 
 
 
  --
  /Daniel P. Brown
  Network Infrastructure Manager
  http://www.php.net/
 
  --
  PHP Webmaster List Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 

  Btw. we were asked by the to join the league as we were a big traffic
 source on the black out day.
 I don't know if Rasmus is on the webmaster list or not, but we should cc
 him, as he was the driving force behind us joining the anti SOPA movement.

I heard back from the webmaster saying that we're already participating
with the cat signal on our website.  Given this and no objections, I went
ahead and contacted them and asked that they list us on their participating
members page.

--Kris


[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Hannes Magnusson
On Thu, Jul 19, 2012 at 8:36 PM, Ferenc Kovacs tyr...@gmail.com wrote:
 2012.07.19. 20:21, Daniel Brown danbr...@php.net ezt írta:

 Forwarding to php-webmas...@lists.php.net, as it's not a general
 user issue where it pertains to php.net.

 On Thu, Jul 19, 2012 at 2:02 PM, Kris Craig kris.cr...@gmail.com wrote:
  Hey guys,
 
  I just became aware of this:
 
  http://internetdefenseleague.org/
 
 
  It's a site setup by Mozilla, Reddit, and others to defend internet
 freedom
  in the wake of recent legislative events in the U.S. and elsewhere (full
  members list here:  http://www.internetdefenseleague.org/members).
 
  They've setup what they're calling the cat signal, an invisible bit of
  embeddable code you can put in your website that will activate (and
 display
  the afore-mentioned signal/link/etc) if/when the next SOPA/PIPA/etc
 comes
  along that threatens the open internet.
 
  I'd like to propose that we integrate this into the PHP website.  This
  issue directly affects our community and we already staked a claim in
 this
  fight when we participated in the last great blackout.
 
  In addition, I'd also l ike to propose that we officially join this
 group
  as a member.  I'm not sure if we'd do this by vote or something similar
 to
  the RFC process  etc, but if you'll grant me permission, I'd be happy
 to
  do the legwork on this myself (make the HTML edits, contact the
  organization on PHP's behalf, etc).
 
 
  Thoughts?
 
  --Kris



 --
 /Daniel P. Brown
 Network Infrastructure Manager
 http://www.php.net/

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


 Btw. we were asked by the to join the league as we were a big traffic
 source on the black out day.
 I don't know if Rasmus is on the webmaster list or not, but we should cc
 him, as he was the driving force behind us joining the anti SOPA movement.

He is everywhere.

But I thought we were already 'members'?
See also http://php.markmail.org/message/7e4uqo73fmtlgjeo

-Hannes

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



RE: [PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Jeff Burcher
Hi,

I have been out of the loop and just did some quick skimming of SOPA/PIPA to
see what all the fuss was about. PIPA seems a little vague, but SOPA seems
pretty straight forward, stop piracy of copyrighted materials. I don't
understand what is wrong with that?

Thanks,

Jeff Burcher - IT Dept
Allred Metal Stamping
PO Box 2566
High Point, NC 27261
(336)886-5221 x229
j...@allredmetal.com


 -Original Message-
 From: Kris Craig [mailto:kris.cr...@gmail.com]
 Sent: Thursday, July 19, 2012 3:40 PM
 To: Ferenc Kovacs
 Cc: Daniel Brown; php-webmas...@lists.php.net; php-general@lists.php.net
 Subject: [PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal
 
 On Thu, Jul 19, 2012 at 12:36 PM, Ferenc Kovacs tyr...@gmail.com wrote:
 
 
  2012.07.19. 20:21, Daniel Brown danbr...@php.net ezt írta:
 
  
   Forwarding to php-webmas...@lists.php.net, as it's not a
   general user issue where it pertains to php.net.
  
   On Thu, Jul 19, 2012 at 2:02 PM, Kris Craig kris.cr...@gmail.com
  wrote:
Hey guys,
   
I just became aware of this:
   
http://internetdefenseleague.org/
   
   
It's a site setup by Mozilla, Reddit, and others to defend
internet
  freedom
in the wake of recent legislative events in the U.S. and elsewhere
  (full
members list here:
 http://www.internetdefenseleague.org/members).
   
They've setup what they're calling the cat signal, an invisible
bit
  of
embeddable code you can put in your website that will activate
(and
  display
the afore-mentioned signal/link/etc) if/when the next
SOPA/PIPA/etc
  comes
along that threatens the open internet.
   
I'd like to propose that we integrate this into the PHP website.
This issue directly affects our community and we already staked a
claim in
  this
fight when we participated in the last great blackout.
   
In addition, I'd also l ike to propose that we officially join
this
  group
as a member.  I'm not sure if we'd do this by vote or something
  similar to
the RFC process  etc, but if you'll grant me permission, I'd be
happy
  to
do the legwork on this myself (make the HTML edits, contact the
organization on PHP's behalf, etc).
   
   
Thoughts?
   
--Kris
  
  
  
   --
   /Daniel P. Brown
   Network Infrastructure Manager
   http://www.php.net/
  
   --
   PHP Webmaster List Mailing List (http://www.php.net/) To
   unsubscribe, visit: http://www.php.net/unsub.php
  
 
   Btw. we were asked by the to join the league as we were a big traffic
  source on the black out day.
  I don't know if Rasmus is on the webmaster list or not, but we should
  cc him, as he was the driving force behind us joining the anti SOPA
 movement.
 
 I heard back from the webmaster saying that we're already participating
with
 the cat signal on our website.  Given this and no objections, I went ahead
and
 contacted them and asked that they list us on their participating members
 page.
 
 --Kris



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



Re: [PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Lester Caine

Jeff Burcher wrote:

I have been out of the loop and just did some quick skimming of SOPA/PIPA to
see what all the fuss was about. PIPA seems a little vague, but SOPA seems
pretty straight forward, stop piracy of copyrighted materials. I don't
understand what is wrong with that?


It depends on how heavy handed the solution is ... Currently I can't get torrent 
downloads of Linux distribution DVD's because torrent is blocked. Just because 
some people abuse a technology is no reason to kill that technology for 
legitimate uses?


Action groups that just target one country are a little irritating to the rest 
of us ... a world wide solution is needed.


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk



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



RE: [PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Jeff Burcher
Hi,

I agree. My wife is from China and both copyright issues and government
enforcement of things have a whole new meaning there, so I understand the
concerns on both sides.

Thanks,

Jeff Burcher - IT Dept
Allred Metal Stamping
PO Box 2566
High Point, NC 27261
(336)886-5221 x229
j...@allredmetal.com


 -Original Message-
 From: Lester Caine [mailto:les...@lsces.co.uk]
 Sent: Thursday, July 19, 2012 4:10 PM
 To: php-general@lists.php.net
 Subject: Re: [PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal
 
 Jeff Burcher wrote:
  I have been out of the loop and just did some quick skimming of
  SOPA/PIPA to see what all the fuss was about. PIPA seems a little
  vague, but SOPA seems pretty straight forward, stop piracy of
  copyrighted materials. I don't understand what is wrong with that?
 
 It depends on how heavy handed the solution is ... Currently I can't get
 torrent downloads of Linux distribution DVD's because torrent is blocked.
 Just because some people abuse a technology is no reason to kill that
 technology for legitimate uses?
 
 Action groups that just target one country are a little irritating to the
rest of
 us ... a world wide solution is needed.
 
 --
 Lester Caine - G8HFL
 -
 Contact - http://lsces.co.uk/wiki/?page=contact
 L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve -
 http://enquirysolve.com/ Model Engineers Digital Workshop -
 http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
 
 
 
 --
 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



[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Ferenc Kovacs


  Btw. we were asked by the to join the league as we were a big traffic
  source on the black out day.
  I don't know if Rasmus is on the webmaster list or not, but we should cc
  him, as he was the driving force behind us joining the anti SOPA
 movement.

 He is everywhere.

 But I thought we were already 'members'?
 See also http://php.markmail.org/message/7e4uqo73fmtlgjeo

 -Hannes


Thanks, that was the mail that I was referring to.
I didn't see anybody reply on that thread, so except we replied in private
(why would we do that?) I guess we never officially accepted that
invitation.

-- 
Ferenc Kovács
@Tyr43l - http://tyrael.hu


[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Kris Craig
On Thu, Jul 19, 2012 at 1:52 PM, Ferenc Kovacs tyr...@gmail.com wrote:


  Btw. we were asked by the to join the league as we were a big traffic
  source on the black out day.
  I don't know if Rasmus is on the webmaster list or not, but we should cc
  him, as he was the driving force behind us joining the anti SOPA
 movement.

 He is everywhere.

 But I thought we were already 'members'?
 See also http://php.markmail.org/message/7e4uqo73fmtlgjeo

 -Hannes


 Thanks, that was the mail that I was referring to.
 I didn't see anybody reply on that thread, so except we replied in private
 (why would we do that?) I guess we never officially accepted that
 invitation.

 --
 Ferenc Kovács
 @Tyr43l - http://tyrael.hu


Can we officially accept it now?  It sounds like everyone is all for
this.  We're already technically a member anyway with the cat signal code
implemented, plus I've already reached out to them based on this thread and
the response I got from our webmaster.  Do we have any procedure or secret
handshake or whatever for this, or can we just say, Yep we're down with
this and be done with it?  =)

--Kris


[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Hannes Magnusson
On Thu, Jul 19, 2012 at 10:01 PM, Kris Craig kris.cr...@gmail.com wrote:


 On Thu, Jul 19, 2012 at 1:52 PM, Ferenc Kovacs tyr...@gmail.com wrote:


  Btw. we were asked by the to join the league as we were a big traffic
  source on the black out day.
  I don't know if Rasmus is on the webmaster list or not, but we should
  cc
  him, as he was the driving force behind us joining the anti SOPA
  movement.

 He is everywhere.

 But I thought we were already 'members'?
 See also http://php.markmail.org/message/7e4uqo73fmtlgjeo

 -Hannes


 Thanks, that was the mail that I was referring to.
 I didn't see anybody reply on that thread, so except we replied in private
 (why would we do that?) I guess we never officially accepted that
 invitation.

 --
 Ferenc Kovács
 @Tyr43l - http://tyrael.hu


 Can we officially accept it now?  It sounds like everyone is all for this.
 We're already technically a member anyway with the cat signal code
 implemented, plus I've already reached out to them based on this thread and
 the response I got from our webmaster.  Do we have any procedure or secret
 handshake or whatever for this, or can we just say, Yep we're down with
 this and be done with it?  =)

You need to write an RFC, run one round around a church, submit a call
for open discussion for the request for comment, run backwards around
a church, spit on the grave of your first born, then vote.

Or in other words; What exactly are you looking to do here?
If we are already pencilled down as members, great!
Is there anything else left then?

-Hannes

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



[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Kris Craig
On Thu, Jul 19, 2012 at 2:11 PM, Hannes Magnusson 
hannes.magnus...@gmail.com wrote:

 On Thu, Jul 19, 2012 at 10:01 PM, Kris Craig kris.cr...@gmail.com wrote:
 
 
  On Thu, Jul 19, 2012 at 1:52 PM, Ferenc Kovacs tyr...@gmail.com wrote:
 
 
   Btw. we were asked by the to join the league as we were a big traffic
   source on the black out day.
   I don't know if Rasmus is on the webmaster list or not, but we should
   cc
   him, as he was the driving force behind us joining the anti SOPA
   movement.
 
  He is everywhere.
 
  But I thought we were already 'members'?
  See also http://php.markmail.org/message/7e4uqo73fmtlgjeo
 
  -Hannes
 
 
  Thanks, that was the mail that I was referring to.
  I didn't see anybody reply on that thread, so except we replied in
 private
  (why would we do that?) I guess we never officially accepted that
  invitation.
 
  --
  Ferenc Kovács
  @Tyr43l - http://tyrael.hu
 
 
  Can we officially accept it now?  It sounds like everyone is all for
 this.
  We're already technically a member anyway with the cat signal code
  implemented, plus I've already reached out to them based on this thread
 and
  the response I got from our webmaster.  Do we have any procedure or
 secret
  handshake or whatever for this, or can we just say, Yep we're down with
  this and be done with it?  =)

 You need to write an RFC, run one round around a church, submit a call
 for open discussion for the request for comment, run backwards around
 a church, spit on the grave of your first born, then vote.

 Or in other words; What exactly are you looking to do here?
 If we are already pencilled down as members, great!
 Is there anything else left then?

 -Hannes


I don't think so, no.  I just wanted to double-check and make sure I'm
being kosher in asking them to list us and our logo on their top members
page.  =)

--Kris

P.S. I don't have any dead kids yet, so can I substitute someone else's
dead kid to spit on?


[PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Hannes Magnusson
On Thu, Jul 19, 2012 at 10:16 PM, Kris Craig kris.cr...@gmail.com wrote:


 On Thu, Jul 19, 2012 at 2:11 PM, Hannes Magnusson
 hannes.magnus...@gmail.com wrote:

 On Thu, Jul 19, 2012 at 10:01 PM, Kris Craig kris.cr...@gmail.com wrote:
 
 
  On Thu, Jul 19, 2012 at 1:52 PM, Ferenc Kovacs tyr...@gmail.com wrote:
 
 
   Btw. we were asked by the to join the league as we were a big
   traffic
   source on the black out day.
   I don't know if Rasmus is on the webmaster list or not, but we
   should
   cc
   him, as he was the driving force behind us joining the anti SOPA
   movement.
 
  He is everywhere.
 
  But I thought we were already 'members'?
  See also http://php.markmail.org/message/7e4uqo73fmtlgjeo
 
  -Hannes
 
 
  Thanks, that was the mail that I was referring to.
  I didn't see anybody reply on that thread, so except we replied in
  private
  (why would we do that?) I guess we never officially accepted that
  invitation.
 
  --
  Ferenc Kovács
  @Tyr43l - http://tyrael.hu
 
 
  Can we officially accept it now?  It sounds like everyone is all for
  this.
  We're already technically a member anyway with the cat signal code
  implemented, plus I've already reached out to them based on this thread
  and
  the response I got from our webmaster.  Do we have any procedure or
  secret
  handshake or whatever for this, or can we just say, Yep we're down with
  this and be done with it?  =)

 You need to write an RFC, run one round around a church, submit a call
 for open discussion for the request for comment, run backwards around
 a church, spit on the grave of your first born, then vote.

 Or in other words; What exactly are you looking to do here?
 If we are already pencilled down as members, great!
 Is there anything else left then?

 -Hannes


 I don't think so, no.  I just wanted to double-check and make sure I'm being
 kosher in asking them to list us and our logo on their top members page.  =)

Great. let us know how it goes.

-Hannes

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



Re: [PHP] magic getter

2012-07-19 Thread David Harkness
If you want to block setting of public properties on your class, implement
the magic setter.

class Foo {
private $data = array();

function __get($name) {
return $this-data[$name];
}

function __set($name, $value) {
if ($name != 'foo') {
$this-data[$name] = $value;
}
}
}

$f = new Foo;
$f-x = 5;
echo $f-x;   // 5
$f-foo = 'bar';
echo $f-foo;   // Notice: Undefined index: foo in php shell code on
line 1

Enjoy!
David


Re: [PHP] What do you call the end-user?

2012-07-19 Thread Paul M Foster
On Thu, Jul 19, 2012 at 01:26:50PM -0400, Tedd Sperling wrote:

 Hi gang:
 
 I can't wait for tomorrow -- so here's my off-topic post today.
 
 First question:
 
 What do you call the people who ultimately use your code?
 
 I call them the end-user, but others have stated other terms, such
 as customer or user.

User, because I'm writing the code for *my* customer. The person
actually exposed to my code may or may not be a customer of anyone. They
may simply be an internet surfer at my customer's site.

 
 Second question:
 
 Are you concerned with their (whomever) experience in using your
 code? 
 
 This question transcends your code working correctly, accurately, and
 securely -- no need to comment on those aspects. But rather more
 specifically do you consider how easily your whomever can use your
 work efforts?
 
 As you may have guessed - I just attended a UX conference and they
 provide an interesting perspective on UX. I was wondering how php
 developers typically address the subject.

I'm interested in user experience to a limited extent. My interest stops
when a user wants the code to wipe their nose for them. Can we make the
website automatically update our accounting system and then write a
check for the cost of goods to the vendor? Sure. How much money do you
have? (Their accounting system is some inscrutable pile of Windows COM
objects, like SAP, behind a firewall. And they don't even know which
vendor to write the check to. I guess mental telepathy is a part of the
PHP libraries not installed on my development system.) Or when someone
sends the form on the website for an appointment request, can you make a
reminder pop up on all the desktops in the office? No, I can't. Here's
an idea: assign someone to check the email for appointment requests
throughout the day, and contact the customer to confirm, based on you 
actually *looking* at your appointment calendar. Sheesh. Apparently,
computers (not mine) are capable of performing magic tricks.

I think my screens should be fairly self-explanatory, if possible. But
I'm averse to making them idiot-proof. If you're an idiot, get someone
else to operate your computer for you. You shouldn't be using one. But
there may be times when a computer screen or set of screens will
absolutely require some training, rather than someone completely
unfamiliar with the workings of the office just sitting down and being
able to guess how to operate the system. You didn't learn to drive by
just sitting in a car and guessing how it is done. Don't expect a
web-based application to be operable simply by guessing, necessarily.

By the way, I'm quite happy to write documentation for systems.
Unfortunately, more than half the people who read anything can't
actually *apply* what they read to whatever system they're working with.
Supposedly they can read. But somehow they still need someone to explain
it to them, no matter how good the docs are.

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

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



RE: [PHP] What do you call the end-user?

2012-07-19 Thread admin

-Original Message-
From: Paul M Foster [mailto:pa...@quillandmouse.com] 
Sent: Thursday, July 19, 2012 6:31 PM
To: php-general@lists.php.net
Subject: Re: [PHP] What do you call the end-user?

On Thu, Jul 19, 2012 at 01:26:50PM -0400, Tedd Sperling wrote:

 Hi gang:
 
 I can't wait for tomorrow -- so here's my off-topic post today.
 
 First question:
 
 What do you call the people who ultimately use your code?
 
 I call them the end-user, but others have stated other terms, such 
 as customer or user.

User, because I'm writing the code for *my* customer. The person actually
exposed to my code may or may not be a customer of anyone. They may simply
be an internet surfer at my customer's site.

 
 Second question:
 
 Are you concerned with their (whomever) experience in using your 
 code?
 
 This question transcends your code working correctly, accurately, and 
 securely -- no need to comment on those aspects. But rather more 
 specifically do you consider how easily your whomever can use your 
 work efforts?
 
 As you may have guessed - I just attended a UX conference and they 
 provide an interesting perspective on UX. I was wondering how php 
 developers typically address the subject.

I'm interested in user experience to a limited extent. My interest stops
when a user wants the code to wipe their nose for them. Can we make the
website automatically update our accounting system and then write a check
for the cost of goods to the vendor? Sure. How much money do you have?
(Their accounting system is some inscrutable pile of Windows COM objects,
like SAP, behind a firewall. And they don't even know which vendor to write
the check to. I guess mental telepathy is a part of the PHP libraries not
installed on my development system.) Or when someone sends the form on the
website for an appointment request, can you make a reminder pop up on all
the desktops in the office? No, I can't. Here's an idea: assign someone to
check the email for appointment requests throughout the day, and contact the
customer to confirm, based on you actually *looking* at your appointment
calendar. Sheesh. Apparently, computers (not mine) are capable of
performing magic tricks.

I think my screens should be fairly self-explanatory, if possible. But I'm
averse to making them idiot-proof. If you're an idiot, get someone else to
operate your computer for you. You shouldn't be using one. But there may be
times when a computer screen or set of screens will absolutely require some
training, rather than someone completely unfamiliar with the workings of the
office just sitting down and being able to guess how to operate the system.
You didn't learn to drive by just sitting in a car and guessing how it is
done. Don't expect a web-based application to be operable simply by
guessing, necessarily.

By the way, I'm quite happy to write documentation for systems.
Unfortunately, more than half the people who read anything can't actually
*apply* what they read to whatever system they're working with.
Supposedly they can read. But somehow they still need someone to explain it
to them, no matter how good the docs are.

Paul

--
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

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

---



LOL Paul,
You are so very spot on, I have a current customer who would like
the website to just load when he logs in. I wish I had not agreed to writing
him a startup script to load the interface for him because NOW he wants it
to auto login for him. They use a random key generator as a portion on their
login authentication. So let's see: The system sends you a report every hour
on the hour. You no longer have to navigate to the interface. It auto logs
into the system for you.

I pander to these kind of people like there is no tomorrow when they are the
ones who sign the check, because anything outside of scope cost BIG TIME. :)
I have gone so far to create training aids that are system mimics to explain
to them what they are doing wrong and what the next step is. I use to write
SCO compliant learning systems and let me tell you there is NO such thing as
idiot proof.



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



Re: [PHP] What do you call the end-user?

2012-07-19 Thread tamouse mailing lists
On Thu, Jul 19, 2012 at 12:26 PM, Tedd Sperling t...@sperling.com wrote:
 Hi gang:

 I can't wait for tomorrow -- so here's my off-topic post today.

 First question:

 What do you call the people who ultimately use your code?

It all depends on where and how my code is ultimately used. If it is
code that someone sitting at a browser making requests that end up
running code I wrote, they are a user, or where there needs to be
clarification, and end user.

 I call them the end-user, but others have stated other terms, such as 
 customer or user.

Again, it sort of depends on the disposition of the code I wrote. In
any case, customer to me implies some sort of delivery possibly for
remuneration. Customers tend to be singular for any given package (not
meaning exclusive) and some kind of contract is held between us.

I don't run any commercial sites for my own benefit, otherwise the
term customer might expand to people buying or trading things with me
via that site, in which case those customers become a subset of end
users as well.

Isn't this fun?

In the case where I'm developing a portion of a product that another
developer may pick up an use in application, they are using my code,
but are definitely quite distinct from an end-user or a customer.
Sometimes they might be called a partner, but not always.

 Second question:

 Are you concerned with their (whomever) experience in using your code?

All those various constituents have needs whom I may wish to address.
The end-user, obviously has need to be able to transact their business
in as easy a fashion as possible, and being able to trust the chain of
software and hardware that will carry out those wishes. The customer
needs to be able to trust in the product or service they are buying,
but equally, to be able to understand and navigate whatever process is
in place for our transaction. And the development partner, as well,
needs to be able to trust that the package I'm producing is documented
well enough, and it is clear and as easy as possible to integrate with
their own software.

 This question transcends your code working correctly, accurately, and 
 securely -- no need to comment on those aspects. But rather more specifically 
 do you consider how easily your whomever can use your work efforts?

 As you may have guessed - I just attended a UX conference and they provide an 
 interesting perspective on UX. I was wondering how php developers typically 
 address the subject.

This sort of thing is not only applicable to UX needs, but to many
other areas as well. It's also not limited to any particular
interface, but how that interface changes and evolves over time, and
it's responsiveness to the various constituents' needs.

 Cheers,

 tedd

 
 t...@sperling.com
 http://sperling.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] Creating drop-down menus

2012-07-19 Thread Tedd Sperling
On Jul 19, 2012, at 1:50 PM, Daniel Brown danbr...@php.net wrote:
 
As an aside on the subject of jQuery, our very own Jay Blanchard
 has written a comprehensive book on the topic entitled Applied
 jQuery: Develop and Design:
 
http://links.parasane.net/92xb
 

Just bought it -- thanks. I'll add it to my other three jQuery books

Always support the people on this list.

Cheers,

tedd

_
t...@sperling.com
http://sperling.com




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



Re: [PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-19 Thread Paul M Foster
On Thu, Jul 19, 2012 at 03:45:46PM -0400, Jeff Burcher wrote:

 Hi,
 
 I have been out of the loop and just did some quick skimming of SOPA/PIPA to
 see what all the fuss was about. PIPA seems a little vague, but SOPA seems
 pretty straight forward, stop piracy of copyrighted materials. I don't
 understand what is wrong with that?

Here's another one: There are currently discussions in the U.S. Congress
in favor of forcing internet vendors to charge sales tax on *all* sales,
regardless of whether the vendor has a presence in that state or not.
Imagine having to file state sales tax returns in 50 states. This effort
has rather significant bipartisan support. Now ask yourself what large
corporation with brick and mortar stores *wouldn't* sign on to support
this one? That's what you're up against. You've got Amazon.com on your
side. Yay. You might want to get busy on that one.

Governments and large corporations are about power and *control*. The
internet is the antithesis of this. So expect their efforts to control
some or all of the internet to continue until they succeed.

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

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



Re: [PHP] What do you call the end-user?

2012-07-19 Thread Paul M Foster
On Thu, Jul 19, 2012 at 06:57:53PM -0400, admin wrote:


[snip]

 
 LOL Paul,
   You are so very spot on, I have a current customer who would like
 the website to just load when he logs in. I wish I had not agreed to writing
 him a startup script to load the interface for him because NOW he wants it
 to auto login for him. They use a random key generator as a portion on their
 login authentication. So let's see: The system sends you a report every hour
 on the hour. You no longer have to navigate to the interface. It auto logs
 into the system for you.
 
 I pander to these kind of people like there is no tomorrow when they are the
 ones who sign the check, because anything outside of scope cost BIG TIME. :)
 I have gone so far to create training aids that are system mimics to explain
 to them what they are doing wrong and what the next step is. I use to write
 SCO compliant learning systems and let me tell you there is NO such thing as
 idiot proof.

My wife and I were discussing something tangential to this the other
day. When people are young, they engage in all sorts of silly things
that waste time. But when you get older, your time becomes progressively
more valuable to you. In this case, I wouldn't want to waste my time on
what you describe. I don't care how big the check is. I have too many
other more important things to do with my time.

Paul

-- 
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com

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