Re: [PHP] Trapping for PDF Type and file size in a UPLOAD form...
** 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/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't have control over file type. >> >> So you can't stop people from uploading anything to your site via the >> form, but you can look at the document once it's there and inspect it. >> Using a HEX Editor, I see that most pdf file have the first four bytes >> as "%PDF" so you might check that before moving the file to somewhere >> important. But that doesn't stop spoofing. >> >> The pdf files also ends with "startxref [some numbers] %%EOF" > Other than that, I can't see any way to do it. >> >> Cheers, >> >> tedd >> > > Second what tedd says, with a bit more: on a Linux backend system I run > uploaded files through the 'file' command with a decent magic file to detect > the file type. I also run every upload through a virus scanner (clamscan, > for example) before I accept it. > If your PHP backend is windows then you might need to do some research to > find a good file-type detection routine, although the virus scanning should > be possible. > > You certainly cannot trust the client side to do any checking. In any case, > JavaScript doesn't (shouldn't) have access to the file you are trying to > upload, so there's not much you can do there. You might achieve something > client-side with Flash, or a Java uploader applet, I suppose. > > Cheers > Pete > > -- > Peter Ford, Developer phone: 01580 89 fax: 01580 893399 > Justcroft International Ltd. > www.justcroft.com > Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom > Registered in England and Wales: 2297906 > Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine
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: > 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.php files. >> In >> Firefox when you get a blank page, if you click view source it will show >> all >> the code that should be there but, I can't tell if it's requesting the >> page >> again when you do that. It never fails 2 times in a row. A refresh will >> always fix it. When you look in firebug there is no html so it leads me >> to >> believe FF may be doing just that...going for a second request instead >> of >> viewing currently opened source? In IE8 I would get something like >> >> diagnose problem button >> >> more information drop down with >> >> this problem can be caused by a variety of issues..this is a completely >> typical M$ error with no valid help >> >> >> >> chrome same thing with >> >> web page cannot be displayed >> >> more information etc... >> >> >> >> >> >> On Thu, Jul 29, 2010 at 6:36 PM, David McGlone >> wrote: >> >> On Thu, 2010-07-29 at 18:11 -0600, Tristan wrote: >>> > I have the strangest issue with my host. They can't figure it out >>> and >>> I'm >>> > completely perplexed. We have other sites running on the server just >>> fine. >>> > However, this new site is acting very weird. Sometimes we get blank >>> pages, >>> > sometimes we get a blank page and then a dialog pops up asking if we >>> want >>> to >>> > download index.php, and then sometimes the site is working fine. Any >>> ideas >>> > on this? >>> > >>> > I'm at ends. Appreciate any advice. For authentication we are using >>> mysql >>> > auth module in apache/linux and proxy pass. We removed proxy pass to >>> see >>> if >>> > that was it but, it wasn't. its a members.domain.com subdomain if >>> that >>> > helps. >>> >>> Do you have php-mysql installed? >>> >>> >>> -- >>> Blessings, >>> David M. >>> >>> >>> > Does the page validate at http://jigsaw.w3.org/css-validator/? > > -= Bill =- > -- > > Don't find fault. Find a remedy. - Henry Ford > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Tristan, The good news is that you're not crazy. I've had this exact issue (at least in terms of symptoms) when working with one of my client's websites. The bad news is that this was long ago, I was using a shared host, and I'm not the one who cause or, more importantly, fixed the problem. That said, I've strained my memory to try and recall what might have been said in the follow-up from the host, and it seems like there was a mime-type handling issue (again, I could be completely wrong, this is just a faint memory.) Another faint memory: are you able to see a difference in behavior when you view an index file with the file included in the url ( http://yoursite.com/index.php) as opposed to when you view the page without it in the url (http://yoursite.com)? Sorry, I wish I still had my email exchange with the company to see what information they provided after the fix :( Adam >>> >>> Actually, you just saying that made me think of a similar problem I had >>> once with IIS serving up files. It was XML files rather than PHP, but >>> the Mime issue does ring a bell! >>> >>> Is the server you're using IIS Tristan? >>> >>> Thanks, >>> Ash >>> http://www.ashleysheridan.co.uk >>> >>> >>> > >>Forgot to hit reply all: I'm not sure if this helps, or even relates, but the one time I had a hosting account for a microsoft app named NopCommerce, when I would try to visit the page, it seemed to only allow one connection at a time, because of some MS DB user limitation or something, and I didn't attempt anymore with it. Might relate, might not. >> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine
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: >>> > >>> > 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.php files. >>> >> In >>> >> Firefox when you get a blank page, if you click view source it will show >>> >> all >>> >> the code that should be there but, I can't tell if it's requesting the >>> >> page >>> >> again when you do that. It never fails 2 times in a row. A refresh will >>> >> always fix it. When you look in firebug there is no html so it leads me >>> >> to >>> >> believe FF may be doing just that...going for a second request instead of >>> >> viewing currently opened source? In IE8 I would get something like >>> >> >>> >> diagnose problem button >>> >> >>> >> more information drop down with >>> >> >>> >> this problem can be caused by a variety of issues..this is a completely >>> >> typical M$ error with no valid help >>> >> >>> >> >>> >> >>> >> chrome same thing with >>> >> >>> >> web page cannot be displayed >>> >> >>> >> more information etc... >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> On Thu, Jul 29, 2010 at 6:36 PM, David McGlone >>> >> wrote: >>> >> >>> >> On Thu, 2010-07-29 at 18:11 -0600, Tristan wrote: >>> >>> > I have the strangest issue with my host. They can't figure it out and >>> >>> I'm >>> >>> > completely perplexed. We have other sites running on the server just >>> >>> fine. >>> >>> > However, this new site is acting very weird. Sometimes we get blank >>> >>> pages, >>> >>> > sometimes we get a blank page and then a dialog pops up asking if we >>> >>> want >>> >>> to >>> >>> > download index.php, and then sometimes the site is working fine. Any >>> >>> ideas >>> >>> > on this? >>> >>> > >>> >>> > I'm at ends. Appreciate any advice. For authentication we are using >>> >>> mysql >>> >>> > auth module in apache/linux and proxy pass. We removed proxy pass to >>> >>> see >>> >>> if >>> >>> > that was it but, it wasn't. its a members.domain.com subdomain if >>> >>> that >>> >>> > helps. >>> >>> >>> >>> Do you have php-mysql installed? >>> >>> >>> >>> >>> >>> -- >>> >>> Blessings, >>> >>> David M. >>> >>> >>> >>> >>> >>> >>> > Does the page validate at http://jigsaw.w3.org/css-validator/? >>> > >>> > -= Bill =- >>> > -- >>> > >>> > Don't find fault. Find a remedy. - Henry Ford >>> > >>> > >>> > >>> > -- >>> > PHP General Mailing List (http://www.php.net/) >>> > To unsubscribe, visit: http://www.php.net/unsub.php >>> > >>> > >>> Tristan, >>> >>> The good news is that you're not crazy. I've had this exact issue (at least >>> in terms of symptoms) when working with one of my client's websites. >>> >>> The bad news is that this was long ago, I was using a shared host, and I'm >>> not the one who cause or, more importantly, fixed the problem. That said, >>> I've strained my memory to try and recall what might have been said in the >>> follow-up from the host, and it seems like there was a mime-type handling >>> issue (again, I could be completely wrong, this is just a faint memory.) >>> >>> Another faint memory: are you able to see a difference in behavior when you >>> view an index file with the file included in the url ( >>> http://yoursite.com/index.php) as opposed to when you view the page without >>> it in the url (http://yoursite.com)? >>> >>> Sorry, I wish I still had my email exchange with the company to see what >>> information they provided after the fix :( >>> >>> Adam >>> >> >> Actually, you just saying that made me think of a similar problem I had >> once with IIS serving up files. It was XML files rather than PHP, but >> the Mime issue does ring a bell! >> >> Is the server you're using IIS Tristan? >> >> Thanks, >> Ash >> http://www.ashleysheridan.co.uk >> >> >> >Forgot to hit reply all: > I'm not sure if this helps, or even relates, but the one time I had a > hosting account for a microsoft app named NopCommerce, when I would > try to visit the page, it seemed to only allow one connection at a > time, because of some MS DB user limitation or something, and I didn't > attempt anymore with it. > > Might relate, might not. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Array help.
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 order > by status desc; Paul- Correct, so stuff with a status of 0 will still show up unless I'm missing something. Regards, -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Array help.
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 = 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); >> >> switch ($row[1]) { >> case 0: $cat[0] = $row[0]; break; >> case 1: $cat[1] = $row[0]; break; >> case 11: $cat[11] = $row[0]; break; >> case 12: $cat[12] = $row[0]; break; >> case 13: $cat[13] = $row[0]; break; >> case 14: $cat[14] = $row[0]; break; >> case 15: $cat[15] = $row[0]; break; >> case 16: $cat[16] = $row[0]; break; >> case 17: $cat[17] = $row[0]; break; >> case 19: $cat[19] = $row[0]; break; >> } >> >> print_r($cat); >> } >> >> Which gives me this: >> >> Array ( [0] => 15547 [1] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 >> [15] => 0 [16] => 0 [17] => 0 [19] => 0 ) >> Array ( [0] => 0 [1] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 [15]s >> => 30 [16] => 0 [17] => 0 [19] => 0 ) >> >> The query only return 2 rows: >> >> 15 | 30 >> 0 | 15547 >> >> What am I doing wrong? Is there a more elegant way to achieve what I want? >> >> Thanks. >> >> -- >> Paul Halliday >> Ideation | Individualization | Learner | Achiever | Analytical >> http://www.pintumbler.org >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > Paul- > > Why not say: > > $cat = array(); > if(isset($row[1]) > { > $cat[$row[1]] = $row[0]; > } > > print_r($cat); > > Regards, > > -Josh I need the results that don't have values assigned though. ex: c = 0 h = 9 t = 0 f = 21 Even if the query returned only: h = 9 f = 21 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine
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 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.php files. > >> In > >> Firefox when you get a blank page, if you click view source it will show > >> all > >> the code that should be there but, I can't tell if it's requesting the > >> page > >> again when you do that. It never fails 2 times in a row. A refresh will > >> always fix it. When you look in firebug there is no html so it leads me to > >> believe FF may be doing just that...going for a second request instead of > >> viewing currently opened source? In IE8 I would get something like > >> > >> diagnose problem button > >> > >> more information drop down with > >> > >> this problem can be caused by a variety of issues..this is a completely > >> typical M$ error with no valid help > >> > >> > >> > >> chrome same thing with > >> > >> web page cannot be displayed > >> > >> more information etc... > >> > >> > >> > >> > >> > >> On Thu, Jul 29, 2010 at 6:36 PM, David McGlone > >> wrote: > >> > >> On Thu, 2010-07-29 at 18:11 -0600, Tristan wrote: > >>> > I have the strangest issue with my host. They can't figure it out and > >>> I'm > >>> > completely perplexed. We have other sites running on the server just > >>> fine. > >>> > However, this new site is acting very weird. Sometimes we get blank > >>> pages, > >>> > sometimes we get a blank page and then a dialog pops up asking if we > >>> want > >>> to > >>> > download index.php, and then sometimes the site is working fine. Any > >>> ideas > >>> > on this? > >>> > > >>> > I'm at ends. Appreciate any advice. For authentication we are using > >>> mysql > >>> > auth module in apache/linux and proxy pass. We removed proxy pass to > >>> see > >>> if > >>> > that was it but, it wasn't. its a members.domain.com subdomain if > >>> that > >>> > helps. > >>> > >>> Do you have php-mysql installed? > >>> > >>> > >>> -- > >>> Blessings, > >>> David M. > >>> > >>> > >>> > > Does the page validate at http://jigsaw.w3.org/css-validator/? > > > > -= Bill =- > > -- > > > > Don't find fault. Find a remedy. - Henry Ford > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > Tristan, > > The good news is that you're not crazy. I've had this exact issue (at least > in terms of symptoms) when working with one of my client's websites. > > The bad news is that this was long ago, I was using a shared host, and I'm > not the one who cause or, more importantly, fixed the problem. That said, > I've strained my memory to try and recall what might have been said in the > follow-up from the host, and it seems like there was a mime-type handling > issue (again, I could be completely wrong, this is just a faint memory.) > > Another faint memory: are you able to see a difference in behavior when you > view an index file with the file included in the url ( > http://yoursite.com/index.php) as opposed to when you view the page without > it in the url (http://yoursite.com)? > > Sorry, I wish I still had my email exchange with the company to see what > information they provided after the fix :( > > Adam > Actually, you just saying that made me think of a similar problem I had once with IIS serving up files. It was XML files rather than PHP, but the Mime issue does ring a bell! Is the server you're using IIS Tristan? Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Array help.
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 = > array(0=>0,1=>0,11=>0,12=>0,13=>0,14=>0,15=>0,16=>0,17=>0,19=>0); > >switch ($row[1]) { >case 0: $cat[0] = $row[0]; break; >case 1: $cat[1] = $row[0]; break; >case 11: $cat[11] = $row[0]; break; >case 12: $cat[12] = $row[0]; break; >case 13: $cat[13] = $row[0]; break; >case 14: $cat[14] = $row[0]; break; >case 15: $cat[15] = $row[0]; break; >case 16: $cat[16] = $row[0]; break; >case 17: $cat[17] = $row[0]; break; >case 19: $cat[19] = $row[0]; break; >} > >print_r($cat); >} > > Which gives me this: > > Array ( [0] => 15547 [1] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 > [15] => 0 [16] => 0 [17] => 0 [19] => 0 ) > Array ( [0] => 0 [1] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 [15]s > => 30 [16] => 0 [17] => 0 [19] => 0 ) > > The query only return 2 rows: > > 15 | 30 > 0 | 15547 > > What am I doing wrong? Is there a more elegant way to achieve what I want? > > Thanks. > > -- > Paul Halliday > Ideation | Individualization | Learner | Achiever | Analytical > http://www.pintumbler.org > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > Paul- Why not say: $cat = array(); if(isset($row[1]) { $cat[$row[1]] = $row[0]; } print_r($cat); Regards, -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Array help.
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); switch ($row[1]) { case 0: $cat[0] = $row[0]; break; case 1: $cat[1] = $row[0]; break; case 11: $cat[11] = $row[0]; break; case 12: $cat[12] = $row[0]; break; case 13: $cat[13] = $row[0]; break; case 14: $cat[14] = $row[0]; break; case 15: $cat[15] = $row[0]; break; case 16: $cat[16] = $row[0]; break; case 17: $cat[17] = $row[0]; break; case 19: $cat[19] = $row[0]; break; } print_r($cat); } Which gives me this: Array ( [0] => 15547 [1] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 [15] => 0 [16] => 0 [17] => 0 [19] => 0 ) Array ( [0] => 0 [1] => 0 [11] => 0 [12] => 0 [13] => 0 [14] => 0 [15] => 30 [16] => 0 [17] => 0 [19] => 0 ) The query only return 2 rows: 15 | 30 0 | 15547 What am I doing wrong? Is there a more elegant way to achieve what I want? Thanks. -- Paul Halliday Ideation | Individualization | Learner | Achiever | Analytical http://www.pintumbler.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine
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. >> >> so the other 5% of the time is blank pages and download index.php files. >> In >> Firefox when you get a blank page, if you click view source it will show >> all >> the code that should be there but, I can't tell if it's requesting the >> page >> again when you do that. It never fails 2 times in a row. A refresh will >> always fix it. When you look in firebug there is no html so it leads me to >> believe FF may be doing just that...going for a second request instead of >> viewing currently opened source? In IE8 I would get something like >> >> diagnose problem button >> >> more information drop down with >> >> this problem can be caused by a variety of issues..this is a completely >> typical M$ error with no valid help >> >> >> >> chrome same thing with >> >> web page cannot be displayed >> >> more information etc... >> >> >> >> >> >> On Thu, Jul 29, 2010 at 6:36 PM, David McGlone >> wrote: >> >> On Thu, 2010-07-29 at 18:11 -0600, Tristan wrote: >>> > I have the strangest issue with my host. They can't figure it out and >>> I'm >>> > completely perplexed. We have other sites running on the server just >>> fine. >>> > However, this new site is acting very weird. Sometimes we get blank >>> pages, >>> > sometimes we get a blank page and then a dialog pops up asking if we >>> want >>> to >>> > download index.php, and then sometimes the site is working fine. Any >>> ideas >>> > on this? >>> > >>> > I'm at ends. Appreciate any advice. For authentication we are using >>> mysql >>> > auth module in apache/linux and proxy pass. We removed proxy pass to >>> see >>> if >>> > that was it but, it wasn't. its a members.domain.com subdomain if >>> that >>> > helps. >>> >>> Do you have php-mysql installed? >>> >>> >>> -- >>> Blessings, >>> David M. >>> >>> >>> > Does the page validate at http://jigsaw.w3.org/css-validator/? > > -= Bill =- > -- > > Don't find fault. Find a remedy. - Henry Ford > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Tristan, The good news is that you're not crazy. I've had this exact issue (at least in terms of symptoms) when working with one of my client's websites. The bad news is that this was long ago, I was using a shared host, and I'm not the one who cause or, more importantly, fixed the problem. That said, I've strained my memory to try and recall what might have been said in the follow-up from the host, and it seems like there was a mime-type handling issue (again, I could be completely wrong, this is just a faint memory.) Another faint memory: are you able to see a difference in behavior when you view an index file with the file included in the url ( http://yoursite.com/index.php) as opposed to when you view the page without it in the url (http://yoursite.com)? Sorry, I wish I still had my email exchange with the company to see what information they provided after the fix :( Adam -- Nephtali: PHP web framework that functions beautifully http://nephtaliproject.com
[PHP] Re: PHP 5.3 as a requirement for a library?
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 versions one or two behind the latest stable release. It was common to run on 1.2 when 1.4 was available and 1.3 when 1.5 was available for over a year. Managers are fearful of new versions. Is this same pattern repeated in PHP? 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? Most people are on 5.2 afaik, certainly most shared hosts are either 5.1.x and 5.2.x, and most os's still have the 5.2.x when you install from the packages. Best, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine
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.php files. In Firefox when you get a blank page, if you click view source it will show all the code that should be there but, I can't tell if it's requesting the page again when you do that. It never fails 2 times in a row. A refresh will always fix it. When you look in firebug there is no html so it leads me to believe FF may be doing just that...going for a second request instead of viewing currently opened source? In IE8 I would get something like diagnose problem button more information drop down with this problem can be caused by a variety of issues..this is a completely typical M$ error with no valid help chrome same thing with web page cannot be displayed more information etc... On Thu, Jul 29, 2010 at 6:36 PM, David McGlone wrote: On Thu, 2010-07-29 at 18:11 -0600, Tristan wrote: > I have the strangest issue with my host. They can't figure it out and I'm > completely perplexed. We have other sites running on the server just fine. > However, this new site is acting very weird. Sometimes we get blank pages, > sometimes we get a blank page and then a dialog pops up asking if we want to > download index.php, and then sometimes the site is working fine. Any ideas > on this? > > I'm at ends. Appreciate any advice. For authentication we are using mysql > auth module in apache/linux and proxy pass. We removed proxy pass to see if > that was it but, it wasn't. its a members.domain.com subdomain if that > helps. Do you have php-mysql installed? -- Blessings, David M. Does the page validate at http://jigsaw.w3.org/css-validator/? -= Bill =- -- Don't find fault. Find a remedy. - Henry Ford -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] the state of the PHP community
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 questions - feel free >>> to >>> answer none to all of them, on list or off, or add more of your own - >>> this >>> isn't for anything specific, just out of interest and sure I (and >>> everybody >>> who reads the replies) will learn something + doors/options/contacts may >>> come of it. The only thing I can guarantee is that I'm genuinely >>> interested >>> in every reply and will read every one of them + lookup every tech and >>> link >>> mentioned. >>> >>> 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 whether client or server side. >> >> Classic ASP (ugh!) > > I'll reply in full shortly when I get a chance, but for now - condolences, > sincerely - and thanks to the nice dates we currently have I can say: I give myself condolences every day! ;-) > > "wow i remember using classic asp as my primary language a decade ago" > or: > "omg I wrote my first news admin system in classic asp at the turn of the > century" > or even: > "omg I remember being stuck with classic asp in the last millenium"! > > In all seriousness though: > 1: how'd you manage to get stuck on classic asp still? maintaining old > systems that won't shift? We are stuck for a couple of reasons: - lack of management vision to move on (one choice might be c# because "its got the most examples in the msdn pages" is the direct quote) - long lifecycle of the app (we just got told that we'll need to support it for the next 3-5 years and they keep selling it! I am pushing big time to move to php with the CodeIgniter framework with jQuery. The real trouble is that if we move this way, the VP won't be in charge because he doesn't have the knowledge to program in php, not that he's got it in c#! > 2: has it changed much, if any? (last i used was chillisoft on cobalt > raq4's!) Hasn't changed at all in 10 years. MS declared it dead and tried to turn it off in W2K3 server, but so many legacy apps run on it that it can't be shut down. It not supported any more and it sucks big time!!! > > Best, > > Nathan > -- Bastien Cat, the other other white meat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: RE: [PHP] the state of the PHP community
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 obfuscation. Certainly not. All structured languages have abstraction and encapsulation. The minute you write a function or procedure, you are abstracting and encapsulating. C++ (Smalltalk, Eiffel et al) are just very focused on those to concepts. > I learned very early in my professional career to eschew obfuscation, > so they don't impress me at all. In addition, I really don't do > abstraction well. I have trouble when I have to deal with more than > two levels of indirection. Having written and debugged a _lot_ of > real-time applications and device drivers, in both assembler and C, I > am much more comfortable with the concrete, like managing I/O > registers, interrupt controllers and circular buffers. I used to write system software for StorageTek (HSC, VTCS, Librarystation), been there, done that. It doesn't mean I can't appreciate the qualities in encapsulation and abstraction. -- Per Jessen, Zürich (20.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] the state of the PHP community
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 later qbasic. Later still I studied computer science and >>> was exposed to many different languages C, C++, Smalltalk, Java, >>> Scheme, Prolog, Perl, JavaScript, HTML, VRML, SQL that I remember. When >>> I finished university I walked straight into a PHP job knowing not an >>> iota of PHP. I came up to speed the first week and fell in love with it. >>> That was around March 2000. The company there always used Java also, as >>> part of a desktop suite to manage the web content. Towards the end of >>> 2002 they began an effort to create a Java based web framework to >>> parallel their PHP framework and so I used Java more at that time. Then >>> the dot com crash caught up with them and layoffs ensued. >>> >> What High School did you go to? What year? As far as I remember when I >> was in HS, nothing about computers was offered. this was back in '88. > > I was attending the Nechako Valley Secondary School in Vanderhoof, > British Columbia, Canada in 1989 when I was learning Pascal. Now that I > think of it more deeply, it wasn't Qbasic in high schoool, it was Watcom > Basic while attending Timmins High & Vocational School in Timmins, > Ontario, Canada in 1990 or 1991. Qbasic was at home :) Actually, I'm not > sure about Timmins for the Watcom Basic, it might have been Lockerby > Composite in Sudbury, Ontario, Canada. I attended 4 different high > schools. Some if it is blurry now :) The use of Watcom tools would make sense since the Wat was an abbreviation of Waterloo, Ontario. That was also the source of the WatFor Fortran compiler I used in 1968. Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: RE: [PHP] the state of the PHP community
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 professional career to eschew obfuscation, so they don't impress me at all. In addition, I really don't do abstraction well. I have trouble when I have to deal with more than two levels of indirection. Having written and debugged a _lot_ of real-time applications and device drivers, in both assembler and C, I am much more comfortable with the concrete, like managing I/O registers, interrupt controllers and circular buffers. Unfortunately, there aren't many of those jobs left. That's one of the primary reasons I am looking forward to retiring. I still believe that OOP is as much of a fad as Structured Programming and Top-Down Programming were. They all can be used to solve certain classes of problems, but none of them are a silver bullet for software development. OOP will eventually learn its place in the overall scheme of programming, but it will never be universally applicable. Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] the state of the PHP community
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 school I learned > >> pascal and then later qbasic. Later still I studied computer science and > >> was exposed to many different languages C, C++, Smalltalk, Java, > >> Scheme, Prolog, Perl, JavaScript, HTML, VRML, SQL that I remember. When > >> I finished university I walked straight into a PHP job knowing not an > >> iota of PHP. I came up to speed the first week and fell in love with it. > >> That was around March 2000. The company there always used Java also, as > >> part of a desktop suite to manage the web content. Towards the end of > >> 2002 they began an effort to create a Java based web framework to > >> parallel their PHP framework and so I used Java more at that time. Then > >> the dot com crash caught up with them and layoffs ensued. > >> > > What High School did you go to? What year? As far as I remember when I > > was in HS, nothing about computers was offered. this was back in '88. > > I was attending the Nechako Valley Secondary School in Vanderhoof, > British Columbia, Canada in 1989 when I was learning Pascal. Now that I > think of it more deeply, it wasn't Qbasic in high schoool, it was Watcom > Basic while attending Timmins High & Vocational School in Timmins, > Ontario, Canada in 1990 or 1991. Qbasic was at home :) Actually, I'm not > sure about Timmins for the Watcom Basic, it might have been Lockerby > Composite in Sudbury, Ontario, Canada. I attended 4 different high > schools. Some if it is blurry now :) Sounds like Canada has a good grade school system. I wish programming languages were offered here when I was in HS. -- Blessings, David M. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP 5.3 as a requirement for a library?
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 custom compile 5.2.13 just to pass our PCI audits. Bob McConnell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5.3 as a requirement for a library?
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 deploy my applications on versions one or two behind the latest stable release. It was common to run on 1.2 when 1.4 was available and 1.3 when 1.5 was available for over a year. Managers are fearful of new versions. Is this same pattern repeated in PHP? 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? Peace, David David : I don't work for a shop, so I don't know what the average for a shop would be. But from my experience freelancing, what I work with depends upon who I am working for and what their host provides. For example, I have clients who allow me to work with whatever I want, which is usually the most current stable version provided by a knowable host. However, I also have clients who are dependant upon scripts that were written back in the stone-age, which holds them to an old version -- they will never upgrade for they are frozen in time. But for the most part, I work with various host who provide an assortment of versions with virtually no input from me. In fact, if I contact them about anything, it's even odds I wont receive an answer back let alone them listening to me recommending what versions they should use. Host do what they do and us lowly programmers don't have much a say about it. It's something you have to learn to live with. So, I have to work with all versions and all types of hosts -- there is no average I can see. 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] [site is acting strange] - blank pages, download index.php, or works fine
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 via: http://validator.w3.org/check?uri= You knows what weirdness can happen if your page doesn't validate -- it does make a difference. You could provide a url so we could look for ourselves. 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] the state of the PHP community
> -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 whether client or server side. XHTML 1.0 Transitional (looking to go Strict) CSS, mostly to 2.0 but use newer/other stuff where required and supported by enough browsers Javascript - again mostly to 1.3 (or whatever the equivalent ECMA standard is) with occasional forays into 1.5. Not currently using any public libs, but JQuery on the menu. Homegrown AJAX libs (based on published techniques). Oracle database (site licensed corporate standard). Some perl, a soupcon of Python, a touch of Java, and SirsiDynix page description language. > What's your previous language/tech trail? OMG! Well, started in secondary school (that's high school for you transatlantic folks) with BASIC back when access was a once-weekly courier to the local Polytechnic (coding sheets out one week, printout and punched cards back a week later!). At university, taught the lecturer on the BASIC module more than he taught me, but also learned and programmed in ALGOL-60, Algol-68, FORTRAN-IV (not -II, thank goodness!), COBOL, Pascal, LISP, BCPL, MACRO-10 (DECsystem-10 assembly language), SNOBOL (in SPITBOL variant), SETL (a language written as a PhD project and, as far as I know, confined to a (very small) handful of universities), MINIMAL (a machine-independent artificial assembly language used to write SPITBOL and SETL compilers), and probably one or two other oddities I've forgotten about. Oh, and of course the TECO editor macro language, in which I wrote a very primitive screen editor when the first VDUs arrived to upgrade our previously all-teletype labs. Was also taught about a number of other languages which we never got to use, such as PL/1, APL, Simula, etc. Since then, at work, more FORTRAN (up to the -77 version), B, more Pascal, BBC BASIC, 6502 assembler, Pr1me command (shell) language, WordPerfect macros, VisualBasic (Word and Excel macros), leading via Excel macros producing HTML to the current set as above! > Are you considering any new languages or techs, and if so which? > - names / links Not really at this stage, although everything is always under review! > Is PHP your hobby/interest, primary development language, just > learning or? Primary development language - it's the standard scripting language here. But it's also an interest, and if I had time would be a hobby too. And I never stop learning! > How many years have you been using PHP regularly? At least 9 -- the oldest script still on my hard drive is from July 2001, although I doubt even that is wholly original. > How many years have you been working with web technologies? That kind of depends what you mean by "Web technologies", but at least 15. In the early 80s, I was dialling in to the PLANET teleconferencing application at BBN in North America (via the ARPAnet!). I've been m.f...@leedsmet.ac.uk, @lmu.ac.uk or @leedspoly.ac.uk (depending on current name of this institution!) since 1988. More recently, my first Web pages were written - both coded by hand and produced from other sources using VB macros - in 1995. Indeed, evidence of my earliest work can still be seen at http://www.leedsmet.ac.uk/lss/newsletter/ (VB macros from Word source) and http://web.archive.org/web/1997072605/http://www.lmu.ac.uk/lss/cs/ (hand-coded). > Did you come from a non-web programming background? Non-Web, yes, but very definitely from traditional programming. > Is your primary role web developer or designer? Developer, but with a dash of designer thrown in when needed. > In your developer life, are you an employer, and employee, > contractor, > freelancer, part of a team of equal standing members? Employee, part of a team. [2 questions omitted as non-applicable] > Do you have any frustrations with the PHP community, do you find you > want to talk shop but can't, or find people to work with but can't, > have > projects in mind you want to do but can't find people to do them > with etc? My only real frustration is in not having enough time to get more involved! I'd love to contribute to the documentation, and get my hands dirty implementing fixes and feature-requests, but real-life just doesn't leave me enough spare time. > Do you network with other PHP'ers in real life - meetups etc, do you > tend to shy away, or do you find you circulate in other web related > but > non PHP focussed communities? I don't have time to do techy stuff outside work, so any relevant networking happens as a result of work projects and tends to be more project-related than technology-focussed. > Are you a member or any other web tech communities, opensource > efforts, > or standardization bodies - again, if so which? User groups and support communities
Re: [PHP] the state of the PHP community
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 revisions, and > minor revisions every few days/weeks and there certainly is something > to worry about. > > This said, perhaps the worry is primarily on a personal basis with > developers loosing time invested in PHP were they to move off to other > languages. > > Real worries in the PHP core for me, are the huge ignorance and lack > of native support for HTTP (which is somewhat ironic), lack of support > for NoSQL + RDF tooling, and also support + implementations of the new > sets of webapps APIs. None of that is very 'core' to me - it's the stuff for libraries. When there's a sufficient need, it'll appear. > Overall, the general sentiment of 'if it can be done in userland, let > it be done there' isn't always the best approach (although I > understand the arguments to the contrary) - ultimately though, PHP > does feel 'stale' comparatively. If you look at PHP as a language with a set of libraries, the language itself is as 'stale' as maybe C or Java or assembler - the language shouldn't change all that often, nor should the core libraries, but everything else is free to do whatever. -- 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] [site is acting strange] - blank pages, download index.php, or works fine
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 download index.php files. In > Firefox when you get a blank page, if you click view source it will show all > the code that should be there but, I can't tell if it's requesting the page > again when you do that. It never fails 2 times in a row. A refresh will > always fix it. When you look in firebug there is no html so it leads me to > believe FF may be doing just that...going for a second request instead of > viewing currently opened source? In IE8 I would get something like > > diagnose problem button > > more information drop down with > > this problem can be caused by a variety of issues..this is a completely > typical M$ error with no valid help > > > > chrome same thing with > > web page cannot be displayed > > more information etc... > > > > > > On Thu, Jul 29, 2010 at 6:36 PM, David McGlone wrote: > > > On Thu, 2010-07-29 at 18:11 -0600, Tristan wrote: > > > I have the strangest issue with my host. They can't figure it out and I'm > > > completely perplexed. We have other sites running on the server just > > fine. > > > However, this new site is acting very weird. Sometimes we get blank > > pages, > > > sometimes we get a blank page and then a dialog pops up asking if we want > > to > > > download index.php, and then sometimes the site is working fine. Any > > ideas > > > on this? > > > > > > I'm at ends. Appreciate any advice. For authentication we are using mysql > > > auth module in apache/linux and proxy pass. We removed proxy pass to see > > if > > > that was it but, it wasn't. its a members.domain.com subdomain if that > > > helps. > > > > Do you have php-mysql installed? > > > > > > -- > > Blessings, > > David M. > > > > The only reason I can think of for it not working 100% of the time is that the server conditions aren't the same 100% of the time. Is everything being served from the same server all the time, or are you using any sort of cloud or load balancing setup? Also, what do your error and access logs say? Are the access logs recording every hit, even the failed ones? Lastly, have a look at the output of a phpinfo() call to see if that shows anything obviously different from your development setup. Thanks, Ash http://www.ashleysheridan.co.uk
RE: [PHP] the state of the PHP community
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://www.php.net/unsub.php
Re: [PHP] the state of the PHP community
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 your previous language/tech trail? REXX, PL/I, Smalltalk. > Are you considering any new languages or techs, and if so which? Not really. > Is PHP your hobby/interest, primary development language, just > learning or? It's just one of many things I need to run my business. > How many years have you been using PHP regularly? 7-8. > How many years have you been working with web technologies? 7-8. > Did you come from a non-web programming background? Yes. > Is your primary role web developer or designer? Nope. > In your developer life, are you an employer, and employee, contractor, > freelancer, part of a team of equal standing members? An employer. > Do you tend to work on jobs for geo-local clients, clients in the same > country, or do you work internationally 'on the web'? I only work for me. > How do you get your projects? do they come to you, word of mouth, do > you hunt and bid for projects, code call, visit clients, target > clients individually you think you can help, or? See above. > Do you network with other PHP'ers in real life - meetups etc, do you > tend to shy away, or do you find you circulate in other web related > but non PHP focussed communities? No and no. > Are you a member or any other web tech communities, opensource > efforts, or standardization bodies - again, if so which? ACM, IEEE, openSUSE. -- Per Jessen, Zürich (16.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Trapping for PDF Type and file size in a UPLOAD form...
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't have control over file type. So you can't stop people from uploading anything to your site via the form, but you can look at the document once it's there and inspect it. Using a HEX Editor, I see that most pdf file have the first four bytes as "%PDF" so you might check that before moving the file to somewhere important. But that doesn't stop spoofing. Other than that, I can't see any way to do it. Cheers, tedd Second what tedd says, with a bit more: on a Linux backend system I run uploaded files through the 'file' command with a decent magic file to detect the file type. I also run every upload through a virus scanner (clamscan, for example) before I accept it. If your PHP backend is windows then you might need to do some research to find a good file-type detection routine, although the virus scanning should be possible. You certainly cannot trust the client side to do any checking. In any case, JavaScript doesn't (shouldn't) have access to the file you are trying to upload, so there's not much you can do there. You might achieve something client-side with Flash, or a Java uploader applet, I suppose. Cheers Pete -- Peter Ford, Developer phone: 01580 89 fax: 01580 893399 Justcroft International Ltd. www.justcroft.com Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom Registered in England and Wales: 2297906 Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XS -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] the state of the PHP community
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 so are stuck with IE6 until their IT departments realise that there is something outside M$ :( What's your previous language/tech trail? I started programming on a little 16k memory machine ... An ICL1901 which had it's own room at Guildford Tech. And I've been through various chip sets at the machine code level. Higher level stuff was in C/C++ for a long time, but on the whole all new deployments are in PHP Are you considering any new languages or techs, and if so which? - names / links Having to cope with python and other language hassle just to maintin the tools I use to support PHP is bad enough. I don't plan on chaning the distribution base any time soon. Is PHP your hobby/interest, primary development language, just learning or? Primary business base How many years have you been using PHP regularly? When did PHP5 hit production ;) I started on the release candidates rather than bothering with PHP4. How many years have you been working with web technologies? Probably as above, but I was looking for an alternative to BuilderC or a couple of years prior before making the move. Did you come from a non-web programming background? I'm still basically a hardware engineer. I came to core windows programming when I was working on a project that ran multiple TV screens from an IBM AT. I employed software guys to write the drivers and after months of no progress I kicked them out one Friday spent the whole weekend making the core drive work and gave them a working system the following Monday. Needless to say the development team was a little lighter the following month ;) Is your primary role web developer or designer? Developer first, but using things like PHP and developing facilities on top. In your developer life, are you an employer, and employee, contractor, freelancer, part of a team of equal standing members? Self employed but working with a few other like minded developers around the world. Do you tend to work on jobs for geo-local clients, clients in the same country, or do you work internationally 'on the web'? Local customer base. We can only really make money supporting the hardware, so they need to be within easy access. How do you get your projects? do they come to you, word of mouth, do you hunt and bid for projects, code call, visit clients, target clients individually you think you can help, or? - not looking for trade secrets, just to get enough for an overall picture. Loyal customer base who keep me in food. Do you have any frustrations with the PHP community, do you find you want to talk shop but can't, or find people to work with but can't, have projects in mind you want to do but can't find people to do them with etc? I've got a nice network of on-line contacts who usually kick me in the right direction, an we help others as much a we can. Do you network with other PHP'ers in real life - meetups etc, do you tend to shy away, or do you find you circulate in other web related but non PHP focussed communities? I have a parallel path which is also computer base, but model engineering is a sideline where I support others on the CNC and other electronics based projects for them. One of my PHP sites is dedicated to that area. Are you a member or any other web tech communities, opensource efforts, or standardization bodies - again, if so which? Not directly. I was treasurer for the Firebird Foundation for a while, and I'm still actively involved in that and other related OS projects. Are there any efforts, projects or initiatives which are floating your boat right now and that your watching eagerly (or getting involved with)? The bitweaver framework has been the base for my own work for many years and is slowly filling all my own local requirements. -- 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// Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php