[PHP] Slow loading (was Re: [PHP] Re: How to run one php app from another? RECAP)

2006-06-19 Thread Manuel Amador (Rudd-O)
PHP tends to send output in content transfer encoding "chunked" (I think this is true when output buffering is on). blocks usually have their output sent in one chunk. The browser renders the chunks as they come, but oftentimes they delay rendering until a sensible number of HTML closing tags ha

Re: [PHP] How to run one php app from another? RECAP

2006-06-19 Thread Manuel Amador (Rudd-O)
El vie, 16-06-2006 a las 15:54 -0500, Richard Lynch escribió: > On Fri, June 16, 2006 9:25 am, Martin Alterisio wrote: > > You can fork a new process a run the other script in the child > > process. But > > forking is not always available so I also use another approach: > > emulate a > > web page r

Re: [PHP] How to run one php app from another? RECAP

2006-06-19 Thread Manuel Amador (Rudd-O)
Excuse me... in which scenarios isn't fork() available? As far as I know, it even works on Windows (albeit slower... not that you'll be gaining any performance by curl'ing your URL - that's actually slower than fork()). El vie, 16-06-2006 a las 11:25 -0300, Martin Alterisio escribió: > > -- P

Re: [PHP] Re: Accessing data posted from a different URL

2006-03-20 Thread Manuel Amador (Rudd-O)
Manuel Lemos wrote: That is not what the W3C validator thinks. Try entering the following HTML in the W3C markup validator page and see for yourself why people are using post in lowercase because they think being XHTML compliant is a good thing. The validator said: value of attribute "metho

Re: [PHP] Re: Accessing data posted from a different URL

2006-03-20 Thread Manuel Amador (Rudd-O)
Jay Blanchard wrote: [snip] Okay, I'm sorry. Dude, you touched a soft spot. It's important, to me, that people respect standards. The wealth of information and communication possibilities that exist today is, in no small part, fueled by the adoption of international standards. [/snip] Th

Re: [PHP] Re: Accessing data posted from a different URL

2006-03-20 Thread Manuel Amador (Rudd-O)
Jay Blanchard wrote: All of these, XML, HTML, XHTML are subsets of SGML. Your point being? Because my point is centered around the simple fact that XML is easier to parse than generic SGML. XML and SGML aren't fully compatible, if you really want to spot on the differences. XML is

Re: [PHP] Accessing data posted from a different URL

2006-03-20 Thread Manuel Amador (Rudd-O)
Jay Blanchard wrote: [snip] Hmm, perhaps I didn't explain clearly. To put it another: 1. A script sends an email to a user with sign-in details. 2. The user clicks a [submit] button in the email message called "Quick Sign In" 3. A web browsers opens to http://www.website.com/signin.php (from

Re: [PHP] Re: Accessing data posted from a different URL

2006-03-20 Thread Manuel Amador (Rudd-O)
Manuel Lemos wrote: Some people insist on making everything XHTML compliant just they assume that otherwise it would not be "Web standards" compliant. That is a silly claim that only leads to all sorts of problems. That assertion is 100% untrue. First of all, XHTML is an excellent idea. Ha

Re: [PHP] Paypal IPN and PHP

2006-03-20 Thread Manuel Amador (Rudd-O)
Curt Zirzow wrote: Isn't there a full proper PayPal API now? IPN hasn't changed in ages, but I don't think it is their preferred way of accessing PayPal any more, and certainly isn't the most streamlined. You kidding? IPN support is ridiculously easy to develop. If you're interested

Re: [PHP] Re: PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Manuel Amador (Rudd-O)
Greg Beaver wrote: This is obvious: you need only test the output of the PHP server class, All the more reasons to use a serialization markup language instead of just plain HTML. Testing for specific HTML output may break if the HTML output changes, but not if you're using XML or JSON, be

Re: [PHP] Updating a single line in a file

2006-03-18 Thread Manuel Amador (Rudd-O)
Replies inlined. Why dont you use a database for this? You will run into race conditions at some point. If you need a file based database take a look at sqlite. Curt. -- About the race conditions, I didn't mentionned I had some extras code to care about concurrent writing on the file Ab

Re: [PHP] Re: PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Manuel Amador (Rudd-O)
1) what if the returned markup is invalid? Well, the browser renders it oddly, and through the fact that your server-side code is straightforward filling in an html template with actual values, all you need to do is view the source (with the firefox web debugging extension you can view generate

Re: [PHP] Re: PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Manuel Amador (Rudd-O)
Greg Beaver wrote: This is far too complicated. You don't need 50 lines of code to convert from server-side data to HTML when the browser does it for you (and far more efficiently) with this code: var someCallback = { ajaxfunc: function(res) { document.getElementById('blah').innerHTML

Re: [PHP] Re: PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Manuel Amador (Rudd-O)
Greg Beaver wrote: Daevid Vincent wrote: I need to dynamically update a select box with results from a SQL database using AJAX, but I can't find a single example of how to do this. Basically I have a text input field, and a select box. As someone types in the input field, I want the sel

[PHP] Multiple inheritance: a technique

2006-03-18 Thread Manuel Amador (Rudd-O)
Hello, everyone. I'm (by nature) a Python coder, and (by fiat) a PHP one. Yes, I code in Python for fun, and PHP for work. Despite that, I'm extremely thankful for the efforts poured into PHP. It's a great language. Except for one thing. It lacks multiple inheritance. But PHP 5 has the r