Re: [PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Robert Cummings
Tommy Pham wrote: On Thu, Mar 25, 2010 at 8:15 PM, Robert Cummings wrote: Daevid Vincent wrote: -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Thursday, March 25, 2010 7:16 PM Daevid Vincent wrote: If I have to wait 3 seconds for a page to render

Re: [PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Robert Cummings
Daevid Vincent wrote: -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Thursday, March 25, 2010 7:16 PM Daevid Vincent wrote: If I have to wait 3 seconds for a page to render, that wait is noticeable. Dumb users will click refresh, and since

Re: [PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Robert Cummings
Daevid Vincent wrote: If I have to wait 3 seconds for a page to render, that wait is noticeable. Dumb users will click refresh, and since (unbelievably in this day and age) PHP and mySQL don't know the user clicked 'stop' or 'refresh', and therefore mySQL will execute the same query a second tim

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-25 Thread Robert Cummings
Per Jessen wrote: Tommy Pham wrote: (I remember a list member, not mentioning his name, does optimization of PHP coding for just microseconds. Do you think how much more he'd benefit from this?) Anyone who optimizes PHP for microseconds has lost touch with reality - or at least forgotten tha

Re: [PHP] Top vs. Bottom Posting.

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: +1 for top-posting.. proper nettiquette is to put replies beneath the quotes you're replying to, and deleting the rest. ultimately this 'rule' of bottomposting is laziness of the ones who like that style of quoting. they want everyone to conform to their favorite method, so

Re: [PHP] Top vs. Bottom Posting.

2010-03-24 Thread Robert Cummings
I'm sorry, but I've never had problem reading backwards in time through information. One merely understands that a piece of information is dependent on the next. Seriously, hasn't anyone else ever read history starting with now and then working their way backwards? It's just reverse chronologic

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Matt Giddings wrote: unsubscribe *lol* -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Tommy Pham wrote: On Wed, Mar 24, 2010 at 3:34 PM, Robert Cummings wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 1:24 PM, Robert Cummings wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 4:28 AM, Per Jessen wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 3:44 AM, Per Jessen

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Tommy Pham wrote: On Wed, Mar 24, 2010 at 1:24 PM, Robert Cummings wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 4:28 AM, Per Jessen wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 3:44 AM, Per Jessen wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 3:20 AM, Per Jessen wrote

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 10:24 PM, Robert Cummings wrote: Are you suggesting that you need to be a guru in C to write threaded C code? I think the word you're looking for is competent. plz dont make me repeat myself, i've already indicated my reasons as to why

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 10:21 PM, Robert Cummings wrote: Rene Veerman wrote: On Wed, Mar 24, 2010 at 9:45 PM, Robert Cummings wrote: Rene Veerman wrote: On Wed, Mar 24, 2010 at 9:31 PM, Robert Cummings wrote: Rene Veerman wrote: On Wed, Mar 24, 2010 at 3:25 PM

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Tommy Pham wrote: On Wed, Mar 24, 2010 at 4:28 AM, Per Jessen wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 3:44 AM, Per Jessen wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 3:20 AM, Per Jessen wrote: Tommy Pham wrote: What I find funny is that one of opponents of PHP threads

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 9:45 PM, la...@garfieldtech.com wrote: On 3/24/10 2:33 PM, Rene Veerman wrote: It's a debate. The dev team consider proposals and weigh in on the merits. I was a proponent for goto support during the development of PHP 5. We now have it. If you ar

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 9:45 PM, Robert Cummings wrote: Rene Veerman wrote: On Wed, Mar 24, 2010 at 9:31 PM, Robert Cummings wrote: Rene Veerman wrote: On Wed, Mar 24, 2010 at 3:25 PM, Robert Cummings wrote: Rene Veerman wrote: php is not a hammer, its a

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 9:41 PM, Robert Cummings wrote: Rene Veerman wrote: On Wed, Mar 24, 2010 at 9:30 PM, Robert Cummings wrote: Rene Veerman wrote: On Wed, Mar 24, 2010 at 3:13 PM, Robert Cummings wrote: Rene Veerman wrote: talk to me about this some other time

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 9:31 PM, Robert Cummings wrote: Rene Veerman wrote: On Wed, Mar 24, 2010 at 3:25 PM, Robert Cummings wrote: Rene Veerman wrote: php is not a hammer, its a programming language. It's hard to discuss anything with someone who doesn't co

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 9:30 PM, Robert Cummings wrote: Rene Veerman wrote: On Wed, Mar 24, 2010 at 3:13 PM, Robert Cummings wrote: Rene Veerman wrote: talk to me about this some other time. atm i'm having an argument with per and his kind about their very

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 3:29 PM, Robert Cummings wrote: Rene Veerman wrote: unless the actual php development team would like to weigh in on this matter of course. Wrong list. Subscribe to internals. yes, i do consider it that important. these nay-sayers usually also

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 3:25 PM, Robert Cummings wrote: Rene Veerman wrote: php is not a hammer, its a programming language. It's hard to discuss anything with someone who doesn't comprehend a metaphor. haha. "comprehend". you mean "accept&quo

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 3:13 PM, Robert Cummings wrote: Rene Veerman wrote: talk to me about this some other time. atm i'm having an argument with per and his kind about their very very annoying behaviour of determining my toolset for me. keeping a thread on top

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
Peter Lind wrote: On 24 March 2010 16:48, Robert Cummings wrote: But now Dalmation_construct1 isn't related Dog_construct1. This seems problematic from a design perspective unless I'm missing something in your proposal. As for abusing class semantics ... I don't see it.

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
Richard Quadling wrote: On 24 March 2010 15:27, Robert Cummings wrote: Are you asking a question? I'm not sure what you want here :) Does the technique I sent provide you with a solution to this problem or not? I can certainly see how your suggestion works. And in my own code, I

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
Peter Lind wrote: The ,... is a supported syntax. Then I'd add the appropriate docblock for the alternate constructors. It might be but in effect the documentation you're left with is vague and has double the amount of documentation lookups, to find out which parameters you can pass. Using a sep

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
Richard Quadling wrote: The following code (which cannot currently work as PHP does not allow for method overloading) would be perfect for me. __construct(registry::RetrieveViaKey(__CLASS__, $Key)); } /** * Constructor : Partial * * This constructor wi

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
Peter Lind wrote: On 24 March 2010 16:09, Robert Cummings wrote: Peter Lind wrote: On 24 March 2010 15:33, Robert Cummings wrote: Peter Lind wrote: One of the main points of the OP was that you can document the code properly. Your example doesn't allow for nice docblocks in any wa

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
Peter Lind wrote: On 24 March 2010 15:33, Robert Cummings wrote: Peter Lind wrote: One of the main points of the OP was that you can document the code properly. Your example doesn't allow for nice docblocks in any way, as you'll either have to param points or a whole lot of noise

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
() function ... Yeah, I know... I threw caution to the wind in this quick example. But for the sake of archives and newbies reading them, I shouldn't have :) Cheers, Rob. On 24 March 2010 15:22, Robert Cummings wrote: Robert Cummings wrote: Richard Quadling wrote: Hi. I have

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
Robert Cummings wrote: Robert Cummings wrote: Richard Quadling wrote: Hi. I have a scenario where I would _like_ to have multiple constructors for a class. Each constructor has a greater number of parameters than the previous one. e.g. Factory method is probably the cleanest and simplest

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
Robert Cummings wrote: Richard Quadling wrote: Hi. I have a scenario where I would _like_ to have multiple constructors for a class. Each constructor has a greater number of parameters than the previous one. e.g. Factory method is probably the cleanest and simplest solution. Just pass an

Re: [PHP] Properly handling multiple constructors.

2010-03-24 Thread Robert Cummings
Richard Quadling wrote: Hi. I have a scenario where I would _like_ to have multiple constructors for a class. Each constructor has a greater number of parameters than the previous one. e.g. Factory method is probably the cleanest and simplest solution. Just pass an ID as the first paramete

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: popular : facebook youtube etc I doubt very much you're popular like facebook. Nothing is as popular as facebook. http://www.fastcompany.com/1584920/facebook-now-more-popular-than-google-let-the-ad-wars-begin Unless you're actually a facebook developer... which I doubt.

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: well i have this very strong gut feeling that at least some php apps stand to gain so much efficiency per box with threading and shared memory that they'll save not only their operators a lot of headaches, but also significant money and energy. that in turn benefits those outs

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Tommy Pham wrote: On Wed, Mar 24, 2010 at 3:52 AM, Lester Caine wrote: Tommy Pham wrote: How exactly will threading in PHP help with the size of the database? That makes no sense to me, please help me understand how you think threading will help in this scenario. Looking at my example, not ju

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Per Jessen wrote: Tommy Pham wrote: On Wed, Mar 24, 2010 at 2:58 AM, Stuart Dallas wrote: Give us a real example of why you think it should be supported and I guarantee we can come up with a way to get you what you want without requiring massive changes to the core of your chosen tool. And if

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: I subscribe to this list to share tips on software designs. Getting and keeping your respect i'm not even interested in. I'm interested in the quality of your tips on problems i post, as tips can lead faster to products, leads to money, leads to my personal freedom and optio

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Tommy Pham wrote: What I find funny is that one of opponents of PHP threads earlier mentioned that how silly it would be to be using C in a web app. Now I hear people mentioning C when they need "productivity" or "speed"... PHP has excellent support for extensions. I've written several C exte

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Arno Kuhl wrote: -Original Message- From: Rene Veerman [mailto:rene7...@gmail.com] Sent: 24 March 2010 11:31 AM Subject: Re: [PHP] Will PHP ever "grow up" and have threading? thanks for opening my eyes and telling to abandon ship in time. === Bye, enjoy th

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: unless the actual php development team would like to weigh in on this matter of course. Wrong list. Subscribe to internals. yes, i do consider it that important. these nay-sayers usually also lobby the dev-team to such extent that these features would actually not make

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: php is not a hammer, its a programming language. It's hard to discuss anything with someone who doesn't comprehend a metaphor. one that i feel needs to stay ahead of the computing trend if it is to be considered a language for large scale applications. Personification

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 11:13 AM, Per Jessen wrote: Rene Veerman wrote: again: a) you're determining the contents of my toolset, without it affecting you at all. the way you want it php will degrade into a toy language. Rene, it seems to me that you and I are advocating t

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Per Jessen wrote: Rene Veerman wrote: again: a) you're determining the contents of my toolset, without it affecting you at all. the way you want it php will degrade into a toy language. Rene, it seems to me that you and I are advocating two opposite positions on the topic of threading in PHP,

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: exactly. the knock-on problems you mentioned are well solved and well documented. realtime programmers using threads have to get their heads around it on their first realtime project. i don't like doing my code in c(++), or worse; having to interface between c(++) and php. i

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 10:47 AM, Per Jessen wrote: Rene Veerman wrote: popular : facebook youtube etc Rene, I must be missing something here. That sort of size implies millions in advertising revenue, so why are we discussing how much performance we can squeeze out of

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: On Wed, Mar 24, 2010 at 10:36 AM, Per Jessen wrote: By advocating that thread support does not belong in PHP, I am in no way determining what you (or anyone else) may or may not do. You are a free individual and free to choose the programming language and paradigm that is

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Rene Veerman wrote: talk to me about this some other time. atm i'm having an argument with per and his kind about their very very annoying behaviour of determining my toolset for me. keeping a thread on topic is also ettiquette from the mailinglist rules eh? you might wanna consider just how mu

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread Robert Cummings
Per Jessen wrote: Rene Veerman wrote: stop bashing the people who DO have a use for threading and other advanced concepts eh. I'm not bashing anyone. just because you don't have a use for it, it shouldn't be included?! kinda arrogant. Feel free to think so - I never said I don't have a u

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Robert Cummings
Paul M Foster wrote: On Tue, Mar 23, 2010 at 06:17:56PM -0700, Tommy Pham wrote: Let's go back to my 1st e-commerce example. The manufacturers list is about 3,700. The categories is about about 2,400. The products list is right now at 500,000 and expected to be around 750,000. The site is

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Robert Cummings
Tommy Pham wrote: Let's go back to my 1st e-commerce example. The manufacturers list is about 3,700. The categories is about about 2,400. The products list is right now at 500,000 and expected to be around 750,000. The site is only in English. The store owner wants to expand and be I18n: Chi

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Robert Cummings
David McGlone wrote: On Monday 22 March 2010 20:59:21 Daevid Vincent wrote: That's okay Larry, YOU don't have to answer. Sorry my post offended you Larry (and anyone else equally offended). ...and yes. I AM angry that they refuse to add functionality to the PHP language that MANY people have

Re: [PHP] Wordpress/PHP question

2010-03-22 Thread Robert Cummings
John Tamm-Buckle wrote: Hi all, I'm storing generated data as a post in wordpress using the wp_insert_post function, which works great. Users click a "submit" button and the things are saved, hurrah! However, on clicking the submit button I want to automatically navigate to the post. This has

Re: [PHP] blog design issue...

2010-03-20 Thread Robert Cummings
Jason Pruim wrote: I know you are all probably thinking "What does this have to do with PHP?" and in reality... It's probably stretching it a little bit... BUT I am in the process of writing a blog software (Yes I'm aware of all the open source, and paid stuff out there... I'm doing this to

Re: [PHP] Need routine to tell me number of dimensions in array.

2010-03-16 Thread Robert Cummings
Rene Veerman wrote: maybe you should be foreach()ing with references? php.net : search "foreach" : As of PHP 5, you can easily modify array's elements by preceding $value with &. This will assign reference instead of copying the value. This is possible only if iterated array can be referenced

Re: [PHP] Need routine to tell me number of dimensions in array.

2010-03-16 Thread Robert Cummings
Peter Lind wrote: Hmm, will probably have to look inside PHP for this ... the foreach loop will copy each element as it loops over it (without actually copying, obviously), however there's no change happening to the element at any point and so there's nothing to suggest to the copy-on-write to cr

Re: [PHP] Need routine to tell me number of dimensions in array.

2010-03-16 Thread Robert Cummings
Peter Lind wrote: This is one example where references actually decrease memory usage. The main reason is the recursive nature of the function. Try BTW, it's not the recursive nature of the function causing the problem. It's the movement of the internal pointer within the array. When it moves

Re: [PHP] Need routine to tell me number of dimensions in array.

2010-03-16 Thread Robert Cummings
Peter Lind wrote: This is one example where references actually decrease memory usage. The main reason is the recursive nature of the function. Try Doh, forgot about that :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (htt

Re: [PHP] Need routine to tell me number of dimensions in array.

2010-03-16 Thread Robert Cummings
Richard Quadling wrote: On 15 March 2010 23:45, Daevid Vincent wrote: Anyone have a function that will return an integer of the number of dimensions an array has? /** * Get the maximum depth of an array * * @param array &$Data A reference to the data array * @return int The maximum numb

Re: [PHP] Need routine to tell me number of dimensions in array.

2010-03-15 Thread Robert Cummings
Jim Lucas wrote: Daevid Vincent wrote: Anyone have a function that will return an integer of the number of dimensions an array has? I did some quick searches and came up with nothing. The closest was here of someone asking the same thing, but his solution isn't right: http://www.bigresource.c

Re: [PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread Robert Cummings
MEM wrote: Hello all, If possible, I would like to ask and have your help about the methods and procedures that should exist to accomplish the following task: I need to grab some data from one mySQL database with some specific table and field names, to another mySQL database with specific table

Re: [PHP] Execution order of PHP

2010-03-10 Thread Robert Cummings
Auke van Slooten wrote: Bob McConnell wrote: From: Auke van Slooten In a hobby project I'm relying on the order in which the following piece of PHP code is executed: $client->system->multiCall( $client->methodOne(), $client->methodTwo() ); Think about it from the parser's point of v

Re: [PHP] basic authentication and redirection

2010-03-03 Thread Robert Cummings
Jay Blanchard wrote: [snip] In certain circumstances controlled by my users, I'd like to redirect my users to another site, a third party whom we have contracted with. The second site uses basic authentication with a simple username and password. Can I write my PHP code so my users do not have

Re: [PHP] Best os shopping cart

2010-03-03 Thread Robert Cummings
Haig Davis wrote: Hi, I apologise if this is not strictly php related. What Open Source Shopping cart system do you recommend between osCommerce and Zen-Cart for ease of use and a php guy with dangerously little javascript knowledge? This is not for a massive shopping site, simply a cart to pow

Re: [PHP] Going from IIS6 to WAMP

2010-03-01 Thread Robert Cummings
What does it do? Force the connection to https? if so you need to configure Apache to serve over https. David Stoltz wrote: Hi All, I have a working application in PHP 5.3 under IIS6. I've created a WAMP server (Windows, Apache, MySQL, PHP) on a dedicated server, and I'm trying to move the

Re: [PHP] Re: Database design

2010-02-26 Thread Robert Cummings
Nathan Rixham wrote: Angus Mann wrote: Hi all. I know this is not strictly a PHP question but the code will be written in PHP, and I figure the folks here will be well versed in the questions I raise. Please feel free to contact me off the list if appropriate. I need some assistance with data

Re: [PHP] PHP Syntax Help - Check?

2010-02-24 Thread Robert Cummings
Rick Dwyer wrote: Hello all. I'm trying to learn PHP on the fly and I have a line of code that contains syntax I can't find documented anywhere: php echo check('element8'); In the above line, can someone tell me what "check" means? In the above, check is a function. It is being called wi

Re: [PHP] FTP Site

2010-02-16 Thread Robert Cummings
Ben Miller wrote: Hi, I'm building a site for a client that has a need to allow their users to upload large files (up to 100mb or more) and store them on the server. I've never had a need to work with PHP's FTP functions until now and, before I go reading the manual to learn how, I wanted to se

Re: [PHP] Thread Safe?

2010-02-15 Thread Robert Cummings
Hi David, Install the non-thread safe version and run it in conjunction with FastCGI. You may also be interested in looking into WinCache for PHP. Non-thread safe works best with FastCGI, running PHP as an ISAPI module is NOT recommended. Cheers, Rob. David Stoltz wrote: Hi all, I'm ins

Re: [PHP] How to secure this

2010-02-13 Thread Robert Cummings
John Allsopp wrote: Robert Cummings wrote: Ashley Sheridan wrote: On Fri, 2010-02-12 at 16:12 -0500, Robert Cummings wrote: John Allsopp wrote: Hi everyone There may be blinding bits of total ignorance in this so don't ignore the obvious. This is a security question, but a senten

Re: [PHP] HTML & plain text in Outlook 2007

2010-02-12 Thread Robert Cummings
Michael A. Peters wrote: Ashley Sheridan wrote: That last reason could be why your email is failing! HTML email is the one place where it is actually better to code "the old way" with tables for markup, tags, and very little (if any) CSS. If you do use any CSS, it's best left inline as well,

Re: [PHP] How to secure this

2010-02-12 Thread Robert Cummings
Ashley Sheridan wrote: On Fri, 2010-02-12 at 16:12 -0500, Robert Cummings wrote: John Allsopp wrote: Hi everyone There may be blinding bits of total ignorance in this so don't ignore the obvious. This is a security question, but a sentence of background: I'm writing soft

Re: [PHP] How to secure this

2010-02-12 Thread Robert Cummings
John Allsopp wrote: Hi everyone There may be blinding bits of total ignorance in this so don't ignore the obvious. This is a security question, but a sentence of background: I'm writing software for a mapping/location website and I want to be able to provide something others can plug into t

Re: [PHP] HTML5 description

2010-02-11 Thread Robert Cummings
tedd wrote: At 5:08 AM + 2/11/10, Jochem Maas wrote: rgds, Jochem PS. from a semantics POV, Robert Cummings is, IMHO, spot on in his assessment - I do enjoy his posts, he's a sharp cookie with plenty to offer and I always enjoy reading his argumentation and opinion! With the d

Re: [PHP] HTML5 description

2010-02-11 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: Michael A. Peters wrote: If is not proper to use for this purpose, what would be? suggests a particular type of layout. suggests content. is appropriate for some items in a side bar, but not all, and is often a child of how is being used

Re: [PHP] HTML5 description

2010-02-11 Thread Robert Cummings
Robert Cummings wrote: I don't know about where you are, but Canadian government has very specific guidelines on how content should be marked up... and semantic use of tags is a clear part of that: "The institution respects the universal accessibility guidelines develo

Re: [PHP] HTML5 description

2010-02-11 Thread Robert Cummings
Michael A. Peters wrote: If is not proper to use for this purpose, what would be? suggests a particular type of layout. suggests content. is appropriate for some items in a side bar, but not all, and is often a child of how is being used. give no semantics. I would like to see a tag fo

Re: [PHP] HTML5 description

2010-02-11 Thread Robert Cummings
Ashley Sheridan wrote: On Thu, 2010-02-11 at 01:44 -0500, Robert Cummings wrote: *haha* I've removed w3.org from the recipients list... so onwards to the content below... Jochem Maas wrote: > Op 2/10/10 9:08 PM, Robert Cummings schreef: >> From the editor's draft: &

Re: [PHP] HTML5 description

2010-02-10 Thread Robert Cummings
*haha* I've removed w3.org from the recipients list... so onwards to the content below... Jochem Maas wrote: Op 2/10/10 9:08 PM, Robert Cummings schreef: From the editor's draft: " The aside element represents a section of a page that consists of content that is tangentially

[PHP] HTML5 description

2010-02-10 Thread Robert Cummings
From the editor's draft: " The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typogr

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Nathan Rixham wrote: Robert Cummings wrote: Michael A. Peters wrote: Nathan Rixham wrote: Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of "aside" as appearing through the document and contextually near to the information to which

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Nathan Rixham wrote: Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of "aside" as appearing through the document and contextually near to the information to which the aside relates. The entire sidebar seems a bit

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: Many government documents have the concept of "aside" as appearing through the document and contextually near to the information to which the aside relates. The entire sidebar seems a bit gratuitous as an "aside". Sure it&#

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Michael A. Peters wrote: Robert Cummings wrote: Just a word of thought... if you're doing styling... use classes and not IDs. Use of IDs for styling is very often indicative of inexperience, inability, or lack of understanding with respect to CSS. I use ID

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: Just a word of thought... if you're doing styling... use classes and not IDs. Use of IDs for styling is very often indicative of inexperience, inability, or lack of understanding with respect to CSS. I use ID when there will only b

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Ashley Sheridan wrote: On Wed, 2010-02-10 at 13:25 -0500, Robert Cummings wrote: Michael A. Peters wrote: > Bob McConnell wrote: > >> Our SOP is to generate standards compliant pages, validate them with >> Firefox and the HTML Validator add-on, then deal with the deviant &

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Michael A. Peters wrote: Bob McConnell wrote: Our SOP is to generate standards compliant pages, validate them with Firefox and the HTML Validator add-on, then deal with the deviant browsers. It's a lot less work than trying to do it the other way around. There are a few minor issues, such as

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Bob McConnell wrote: From: Robert Cummings Lester Caine wrote: James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, wrote: On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote: as for using IE6 ... WTF ... you do realise this is essentially a web developers

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Richard Quadling wrote: On 10 February 2010 13:02, Ashley Sheridan wrote: I've not had any personal experience with the public sector, but I have heard stories from those who have. By all accounts, it seems that most of the public sector is still stuck in the dark ages with regards to technolog

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Ashley Sheridan wrote: I've not had any personal experience with the public sector, but I have heard stories from those who have. By all accounts, it seems that most of the public sector is still stuck in the dark ages with regards to technology, which could go some way to explaining the abysmal

Re: [PHP] PHP Manual problems

2010-02-10 Thread Robert Cummings
Lester Caine wrote: James McLean wrote: On Wed, Feb 10, 2010 at 2:26 PM, wrote: On Thu, 04 Feb 2010 02:39:03 +0100, joc...@iamjochem.com (Jochem Maas) wrote: as for using IE6 ... WTF ... you do realise this is essentially a web developers mailing list right? The interesting things in my we

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Robert Cummings
Ashley Sheridan wrote: On Tue, 2010-02-09 at 09:19 -0500, Robert Cummings wrote: Richard wrote: Hi, I have extended the standard exception class to send me an email whenever an exception occurs. I did that once. Once being the operative word... :-) Ended up with tens of thousands of emails

Re: [PHP] Re: poll: howto do informative error handling without the fatalities

2010-02-09 Thread Robert Cummings
Richard wrote: Hi, I have extended the standard exception class to send me an email whenever an exception occurs. I did that once. Once being the operative word... :-) Ended up with tens of thousands of emails one morning. At first I thought... "Wow, maybe my popularity has grown somewhat". B

Re: [PHP] PHP generated HTML has submit button which picks up the wrong url.

2010-02-05 Thread Robert Cummings
Joseph Thayne wrote: "What you maybe ought to consider is using several submit buttons, and give each a name and a value. That way, your PHP script can check for a specifically named variable sent from the form. That way, you keep many people happy, and your site still works perfectly." The p

Re: [PHP] HTML & plain text in Outlook 2007

2010-02-05 Thread Robert Cummings
Ashley Sheridan wrote: On Thu, 2010-02-04 at 13:44 -0500, Robert Cummings wrote: What about signing yourself up to some newsletters to see how they do it? Looking at the ones I get from Facebook as an example, they use the boundary codes you mentioned, and I can't see anything particu

Re: [PHP] HTML & plain text in Outlook 2007

2010-02-04 Thread Robert Cummings
Ashley Sheridan wrote: On Thu, 2010-02-04 at 10:44 -0600, Skip Evans wrote: Hey all, First, let me say thanks for all the advice on Magento, and especially to Ryan who has used the beast and gave some great advice on skinning, links to some good docs and a book just for my designer. We'll b

Re: [PHP] Can't get my PHP-generated RSS to serve properly

2010-02-03 Thread Robert Cummings
Brian Dunning wrote: Hey all - Glad some of you found that sample data helpful. :-) I use PHP/MySQL to generate RSS feeds of my podcasts. The feed is submitted as *.xml and I use .htaccess to redirect it to my PHP document. The start of the document sets the right header and outputs the to

Re: [PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Robert Cummings
Ashley Sheridan wrote: On Wed, 2010-02-03 at 14:02 -0500, Robert Cummings wrote: Ryan S wrote: Thanks for the reply Michael, Robert and Jochem, makes sense, a native windows app is going to look more in place than any of the demos and graphics i have seen of GTK. Was also looking at GTK

Re: [PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Robert Cummings
Ryan S wrote: Thanks for the reply Michael, Robert and Jochem, makes sense, a native windows app is going to look more in place than any of the demos and graphics i have seen of GTK. Was also looking at GTK-Builder, unfortunately you really have to hunt for each scrap of new info - which is

Re: [PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Robert Cummings
Robert Cummings wrote: Ryan S wrote: Hey Guys, Coming from a C and Java background I just loved PHP and have been programming with it for years thanks in a large part to the kind people on this list... present and past (Immediately the name John Holmes comes to mind.. i hope the dude is

Re: [PHP] Thinking of moving to .NET because of standalone... any suggestions?

2010-02-03 Thread Robert Cummings
Ryan S wrote: Hey Guys, Coming from a C and Java background I just loved PHP and have been programming with it for years thanks in a large part to the kind people on this list... present and past (Immediately the name John Holmes comes to mind.. i hope the dude is well) but now I have have to

Re: [PHP] database abstraction layer

2010-02-02 Thread Robert Cummings
Michael A. Peters wrote: Robert Cummings wrote: Rene Veerman wrote: eh thats "randomize the timing of the retry attempt".. On Wed, Feb 3, 2010 at 12:17 AM, Rene Veerman wrote: and after the sleep(rand(1,3)) it might need a short loop like this; $rnd = rand(1,9); $a=0; for

Re: [PHP] database abstraction layer

2010-02-02 Thread Robert Cummings
Rene Veerman wrote: On Wed, Feb 3, 2010 at 12:18 AM, Ashley Sheridan wrote: The problem is where 2 people choose the same instant to perform an action on your site that inserts a record into your db. The db engine inserts them one after the other, and then responds about the max(id) to your PH

<    1   2   3   4   5   6   7   8   9   10   >