Re: [PHP] Trapping for PDF Type and file size in a UPLOAD form...

2010-07-30 Thread Hans Åhlin
** Hans Åhlin Tel: +46761488019 icq: 275232967 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin ** 2010/7/30 Pete Ford > On 29/07/10 19:10, tedd wrote: > >> At 9:50 AM -0700 7/29

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread David Hutto
On Fri, Jul 30, 2010 at 8:50 PM, David Hutto wrote: > On Fri, Jul 30, 2010 at 8:49 PM, David Hutto wrote: >> On Fri, Jul 30, 2010 at 2:50 PM, Ashley Sheridan >> wrote: >>> On Fri, 2010-07-30 at 13:38 -0400, Adam Richardson wrote: >>> On Fri, Jul 30, 2010 at 11:35 AM, Bill Guion wrote:

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread David Hutto
On Fri, Jul 30, 2010 at 8:49 PM, David Hutto wrote: > On Fri, Jul 30, 2010 at 2:50 PM, Ashley Sheridan > wrote: >> On Fri, 2010-07-30 at 13:38 -0400, Adam Richardson wrote: >> >>> On Fri, Jul 30, 2010 at 11:35 AM, Bill Guion wrote: >>> >>> > At 6:45 PM -0600 7/29/10, Tristan wrote: >>> > >>> >  

Re: [PHP] Array help.

2010-07-30 Thread Joshua Kehn
On Jul 30, 2010, at 3:03 PM, Paul Halliday wrote: >> >> Paul- >> >> Why are those values not defaulted to 0 in the database? >> >> Regards, >> >> -Josh >> >> > > They are defaulted, the query is grouping: > > select count(status) as count, status from table group by status

Re: [PHP] Array help.

2010-07-30 Thread Paul Halliday
On Fri, Jul 30, 2010 at 3:44 PM, Joshua Kehn wrote: > > On Jul 30, 2010, at 2:36 PM, Paul Halliday wrote: > >> I have a query that may not always return a result for a value, I need >> to reflect this with a "0". I am trying to overcome this by doing this >> (the keys are ID's): >> >> while ($row

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread Ashley Sheridan
On Fri, 2010-07-30 at 13:38 -0400, Adam Richardson wrote: > On Fri, Jul 30, 2010 at 11:35 AM, Bill Guion wrote: > > > At 6:45 PM -0600 7/29/10, Tristan wrote: > > > > Yeah like i said site works 95% of the time when navigating. PHP5.2, Mysql > >> 5. The site is completely dynamic so it wouldn't

Re: [PHP] Array help.

2010-07-30 Thread Joshua Kehn
On Jul 30, 2010, at 2:36 PM, Paul Halliday wrote: > I have a query that may not always return a result for a value, I need > to reflect this with a "0". I am trying to overcome this by doing this > (the keys are ID's): > > while ($row = mysql_fetch_row($statusQuery)) { > >$cat = > arra

[PHP] Array help.

2010-07-30 Thread Paul Halliday
I have a query that may not always return a result for a value, I need to reflect this with a "0". I am trying to overcome this by doing this (the keys are ID's): while ($row = mysql_fetch_row($statusQuery)) { $cat = array(0=>0,1=>0,11=>0,12=>0,13=>0,14=>0,15=>0,16=>0,17=>0,19=>0);

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread Adam Richardson
On Fri, Jul 30, 2010 at 11:35 AM, Bill Guion wrote: > At 6:45 PM -0600 7/29/10, Tristan wrote: > > Yeah like i said site works 95% of the time when navigating. PHP5.2, Mysql >> 5. The site is completely dynamic so it wouldn't work at all if that was >> the >> case of it not being installed right

[PHP] Re: PHP 5.3 as a requirement for a library?

2010-07-30 Thread Nathan Rixham
David Harkness wrote: I'm working on the Hamcrest matching library and have been considering the switch to using namespaces (\Hamcrest\Type\IsInteger) instead of class-names-as-namespaces (Hamcrest_Type_IsInteger). Coming from the Java world I'm used to being forced to deploy my applications on v

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread Bill Guion
At 6:45 PM -0600 7/29/10, Tristan wrote: Yeah like i said site works 95% of the time when navigating. PHP5.2, Mysql 5. The site is completely dynamic so it wouldn't work at all if that was the case of it not being installed right. so the other 5% of the time is blank pages and download index.ph

Re: [PHP] the state of the PHP community

2010-07-30 Thread Bastien Koert
On Thu, Jul 29, 2010 at 5:19 PM, Nathan Rixham wrote: > Bastien Koert wrote: >> >> On Thu, Jul 29, 2010 at 1:36 AM, Nathan Rixham wrote: >>> >>> Hi All, >>> >>> I find myself wondering about the state of the PHP community (and related >>> community with a PHP focus), so, here's a bunch of questio

RE: RE: [PHP] the state of the PHP community

2010-07-30 Thread Per Jessen
Bob McConnell wrote: > From: Per Jessen > >> Bob McConnell wrote: >> >>> In chronological order - >>> >>> Languages: [snip] C++ (Still don't >>> understand the purpose of objects or classes). >> >> Two words - encapsulation and abstraction. > > Both of which are euphemisms that simply mean o

RE: [PHP] the state of the PHP community

2010-07-30 Thread Bob McConnell
From: Robert Cummings > On 10-07-29 10:18 PM, David McGlone wrote: >> On Thu, 2010-07-29 at 22:14 -0400, Robert Cummings wrote: >>> Early high school I used to program in basic on a TRS-80. Oh how I loved >>> saving my programs to audio cassette. Later in high school I learned >>> pascal and then

RE: RE: [PHP] the state of the PHP community

2010-07-30 Thread Bob McConnell
From: Per Jessen > Bob McConnell wrote: > >> In chronological order - >> >> Languages: [snip] C++ (Still don't >> understand the purpose of objects or classes). > > Two words - encapsulation and abstraction. Both of which are euphemisms that simply mean obfuscation. I learned very early in my

Re: [PHP] the state of the PHP community

2010-07-30 Thread David McGlone
On Thu, 2010-07-29 at 22:28 -0400, Robert Cummings wrote: > On 10-07-29 10:18 PM, David McGlone wrote: > > On Thu, 2010-07-29 at 22:14 -0400, Robert Cummings wrote: > >> Early high school I used to program in basic on a TRS-80. Oh how I loved > >> saving my programs to audio cassette. Later in high

RE: [PHP] PHP 5.3 as a requirement for a library?

2010-07-30 Thread Bob McConnell
From: David Harkness > My current company just switched to 5.3 after > running 5.2 for some time. Are > we average in that regard or the exception to the rule? >From where I sit, you are will ahead of the curve. RedHat and CentOS 5 still have 5.2.4 in their production repositories. We have to cus

Re: [PHP] PHP 5.3 as a requirement for a library?

2010-07-30 Thread tedd
At 2:57 PM -0700 7/29/10, David Harkness wrote: I'm working on the Hamcrest matching library and have been considering the switch to using namespaces (\Hamcrest\Type\IsInteger) instead of class-names-as-namespaces (Hamcrest_Type_IsInteger). Coming from the Java world I'm used to being forced to d

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread tedd
At 6:45 PM -0600 7/29/10, Tristan wrote: Yeah like i said site works 95% of the time when navigating. PHP5.2, Mysql 5. The site is completely dynamic so it wouldn't work at all if that was the case of it not being installed right. Off-Topic Friday. I would start with checking page validation

RE: [PHP] the state of the PHP community

2010-07-30 Thread Ford, Mike
> -Original Message- > From: Nathan Rixham [mailto:nrix...@gmail.com] > Sent: 29 July 2010 06:36 > in no particular order: > > What other languages and web techs do you currently use other than > PHP? > - if you include html or css please include version, if js then > preferred libs, and

Re: [PHP] the state of the PHP community

2010-07-30 Thread Per Jessen
Nathan Rixham wrote: > (shared) hosts and in developer+projects - but I also worry that it > doesn't change with the times quick enough, + the core doesn't have > the same hacker + iterative development focus anymore, contrast other > languages which get major functionality added at minor revision

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-30 Thread Ashley Sheridan
On Thu, 2010-07-29 at 18:45 -0600, Tristan wrote: > Yeah like i said site works 95% of the time when navigating. PHP5.2, Mysql > 5. The site is completely dynamic so it wouldn't work at all if that was the > case of it not being installed right. > > so the other 5% of the time is blank pages and

RE: [PHP] the state of the PHP community

2010-07-30 Thread Per Jessen
Bob McConnell wrote: > In chronological order - > > Languages: [snip] C++ (Still don't > understand the purpose of objects or classes). Two words - encapsulation and abstraction. -- Per Jessen, Zürich (17.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

Re: [PHP] the state of the PHP community

2010-07-30 Thread Per Jessen
Nathan Rixham wrote: > What other languages and web techs do you currently use other than > PHP? - if you include html or css please include version, if js then > preferred libs, and whether client or server side. C, C++, assembler, xhtml, css2, xslt1, javascript(client), shell-script. > What's

Re: [PHP] Trapping for PDF Type and file size in a UPLOAD form...

2010-07-30 Thread Pete Ford
On 29/07/10 19:10, tedd wrote: At 9:50 AM -0700 7/29/10, Don Wieland wrote: I am trying to create an UPLOAD form and need to figure a way to only allow PDF files to be selected. The short answer is you can't -- not from php. You can create a standard form and upload it from there, but you don'

Re: [PHP] the state of the PHP community

2010-07-30 Thread Lester Caine
Nathan Rixham wrote: What other languages and web techs do you currently use other than PHP? - if you include html or css please include version, if js then preferred libs, and whether client or server side. I'm trying to bring customers up to modern standards, but many STILL have W2k running