stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


Extending PHP Classes with the Overload Extension







Extending PHP Classes with the Overload
Extension

Extending PHP Classes with the Overload
Extension
01/19/2003 12:09 PM

An interesting article on using Andrei Zmievski's Overload extension which comes standard with PHP since 4.3.0. The overload extension defines three "magic" functions; __call(), __set() and __get(). If we place these in a class then declare (outside the class) that it is overloaded, PHP will use the magic functions if it finds that a member variable or function does not exist. PS: On another topic, there will probably be a patch release to fix bugs in PHP 4.3.0, so if you haven't upgraded yet, don't bother until the patch comes out. "zeldman.hgr"




This is a GrokNews Entry: (what is grok?)





Similar Items

Extending PHP Classes with the Overload Extension

Grok Headline matches for Extending PHP Classes with the Overload Extension

Bergman Overload


Bergman Overload 03/13/2003 10:16 AM
You order too much stuff online when you meet your UPS guy on the street (and not your own street) and ask him if he has any packages for you and he remembers your address and finds a package. In related news I now got Blue, White and Red from Amazon. I also got Cries and Whispers (review) and Trolösa (review). I also bought more cds which I right away will convert to mp3s and put away in a drawer...

Overload your C# operators


Overload your C# operators 11/04/2002 12:34 AM
CNET Nov 3 2002 11:03PM ET

Information overload


Information overload 12/02/2003 06:34 AM
vnunet.com Dec 2 2003 5:24AM ET

Information Overload?


Information Overload? 12/10/2003 03:25 AM

Jona than Delacour talks about Information Overload and his attempts to escape blog addiction. A couple of people emailed this to me and asked "apply to you?" Oh, wasabi, yes it does!


X Overload 2.0 released


X Overload 2.0 released 12/12/2003 08:06 AM
Teng Chou Ming has announced the release of X Overload 2.0, a collection of utilities that allows users manage and maintain their Mac OS X and Classic System Folder...

Gadget Overload


Gadget Overload 04/26/2004 04:07 PM
We've all heard stories about convergence when it comes to gadgets, but for many people, all we've experienced is the nee d for a larger and larger gadget bag (and a corresponding increase in chiropractor bills). Of course, even worse than the gadgets themselves, may be each of the different chargers needed to make sure the devices actually run. The question, though, is whether or not this is a temporary state where the possible future we all like to talk about just isn't here yet - or if we're really moving towards a world where more devices is the norm, rather than the other way around. Right now, though, the situation leads to somewhat comic (assuming you're not the person involved) situations like the following: "After downloading some massive high-res files from the digital camera to my laptop, I needed to send them to my coworker's laptop. Of course, I didn't have a wireless local-area network (WLAN) card for that old IBM. Neither laptop had a disk drive. The PC didn't recognize a USB stick. There was no high-speed access at my funky hotel in downtown San Francisco, nor could I log the laptop into the LAN in the convention center's pressroom. And, the pressroom's dial-up connection took so long, the laptop's batteries died, the adapter being back at the hotel room."

PHPMac: Module Overload in OSX and PHP
4.3.6


PHPMac: Module Overload in OSX and PHP
4.3.6
05/07/2004 07:54 AM
For all of the Mac fans out there, there's a quick little tutorial that aims to help you install over 15 PHP modules using a combination of fink (quite the amazing tool) and a few extra source code compiles.

Wi-Fi overload in the Auckland CBD - New
Zealand


Wi-Fi overload in the Auckland CBD - New
Zealand
04/26/2004 12:54 AM
Reach Wireless has switched on its new Wi-fi hotzone in the Auckland CBD.

See below for details.

RoamAD and Reach fire up city wi-fi

15.04.2004 By PETER GRIFFIN

RoamAD has resurrected plans for a wireless internet network in Auckland's inner city, but this time it will supply only the technology, leaving the service to be run by growing "wi-fi" operator Reach Wireless.

RoamAD has also received a US$100,000 ($155,000) loan from Silicon Valley-based chip maker Intel, a small amount given the multi-billion-dollar investment arsenal of Intel Capital, but an endorsement of RoamAD's technology nevertheless.

Reach Wireless, which is backed by telecoms entrepreneur Chris Jones, will offer wireless internet access in a 3km-square section of the inner city spanning apartment buildings, cafes and offices, using the network built by RoamAD.

Previously the plan had been for RoamAD to run the network itself and seek a partner in a large telco to market and service the network. But no deal eventuated and RoamAD has spent the last year focusing on developing its technology. "RoamAD is an equipment vendor and we need to sell our technology to customers like Reach," said RoamAD chairman Martin Levy.

Information Architecture Overload


Information Architecture Overload 11/08/2002 05:06 AM

Behavior mod: Overload your C# operators


Behavior mod: Overload your C# operators 10/31/2002 03:16 AM
CNET Oct 31 2002 1:58AM ET

Overload Extreme Foundation


Overload Extreme Foundation 11/14/2003 02:54 PM
New Project and File Release

Net struggles with data overload


Net struggles with data overload 10/30/2003 11:47 PM
BBC Oct 30 2003 10:07PM ET

"Yetisports 4 - Albatros Overload."


"Yetisports 4 - Albatros Overload." 04/29/2004 09:52 PM

Beta: Audio Overload 2.0b4


Beta: Audio Overload 2.0b4 03/22/2005 04:35 PM
Audio Overload, from Richard Bannister (author of numerous game platform emulators), is a video game music player that supports a variety of formats, including Nintendo, Sega, and others.

Overload for the wireless industry?


Overload for the wireless industry? 03/14/2005 04:30 PM
Instant messaging, ring tones and other services have cell phone industry scrambling to keep up.

Information overload: You Need To Get
Organized


Information overload: You Need To Get
Organized
08/19/2002 08:48 AM

One way to manage your email overload...


One way to manage your email overload... 12/17/2004 06:33 PM
...is to simply make it someone else's problem. Here's the Out Of Office -message from a colleague:

Thank-you for your recent email.

Your message has been deleted from CutBoy's inbox, and all trace of it removed from our server. He has no way of knowing the message even existed.

So, if you still think that he will find the contents of your mail important you are welcome to re-mail at a future date at your convienience.

Sincerely,

Mail assistant to CB

I love it - resending the email when you even don't know when the person is back causes a significant cognitive load to the person sending it. Therefore, only the really important messages will be resent, and thus, the problem of filtering out the good email from the bad is distributed to the senders. Whee, practical applications of distributed computing using human brains :-)


United Airlines' honorific overload


United Airlines' honorific overload 04/28/2004 04:45 AM
United Airlines' Mileage Plus signup form has an unbelieveable array of options for "Title," including "Swami" and "Cantor."
Mr Ms Mrs Miss Dr 1sgt 1st Lt 2nd Lt Adm Baron Baroness Bishop Brig Gen Brother Cantor Capt Cardinal Cmdr Cmst Col Count Countess Cpl Cpo Dean Duchess Duke Elder Ens Father Fleet Adm General Governor Gysgt Hon Imam Judge Lady Lcpl Lord Lt Lt Cmdr Lt Col Lt Gen Lt Jg Ma Major Major Gen Mcpo Mgysgt Minister Monsignor Most Rev Mother Msgt Mstr Pastor Petty Off Pfc Po1 Po2 Po3 President Prince Prof Pvt Rabbi Rear Adm Rev Right Rev Scpo Senator Sfc Sgt Sgtmaj Sir Sister Smn Smn1 Smst Sp4 Sp5 Sp6 Sr Sra Srta Ssgt Swami Tech Sgt Very Rev Vice Adm
Link (Thanks, Ken!)

How Info-Overload Experts Unwind


How Info-Overload Experts Unwind 05/13/2004 04:57 AM
Scientists and spiritualists who specialize in the art of avoiding information overload gather in Seattle to discuss better ways to escape the tyranny of cell phones and always-on Internet. Kendra Mayfield reports from Seattle.

CesarFTP v0.99g CPU OverLoad [Proof of
concept]


CesarFTP v0.99g CPU OverLoad [Proof of
concept]
12/22/2003 07:39 PM
zib zib (Dec 21 2003)

Turn overload into overview with
LogMeister


Turn overload into overview with
LogMeister
07/15/2004 03:05 AM
Technology Lighthouse has released LogMeister - a powerful Windows application that harnesses the wealth of information stored in your computer logs. LogMeister monitors text logs, Windows event logs (local and remote), ICF logs, and RSS Feeds, and has comprehensive notification facilities. [PRWEB Jul 15, 2004]

Manage both system folders with X
Overload


Manage both system folders with X
Overload
12/15/2003 02:03 PM
Mac OS X users who would prefer one handy window to manage their Mac OS X and Classic system folders should take a look at X Overload. Version 2.0.1 was released on Sunday.

Data Overload: The Hidden Killer


Data Overload: The Hidden Killer 11/19/2003 08:11 AM
Well, the latest internet/computer related illness we all have to worry about is New Economy Depression Syndrome which comes complete with the nice acronym NEDS. According to this article it can "cause anxiety, fatigue, difficulty in making decisions or concentrating, sleep disturbances, loneliness and isolation." It's not, as you might think from the name, felt by those who got slammed financially when the bubble burst, but by those who can't keep up with all the information available to them. It's the classic information overload problem. The concept of NEDS, though, was first created by the guy who wrote that classic of pop business books, The Killer App Is Love. Now he's paid someone do some studies for him to prove that NEDS isn't just a figment of his own imagination. The results seem to show some correlation, but doesn't do much to prove causation.

Network managers hit by web traffic
overload


Network managers hit by web traffic
overload
01/05/2005 06:46 AM
Computer Weekly Jan 5 2005 11:20AM GMT

Extending SVG for XForms


Extending SVG for XForms 05/23/2002 10:39 PM

More On Extending HTML


More On Extending HTML 07/08/2004 09:02 PM

I received more feedback on our HTML extensions, and some people made some good suggestions for how Safari should handle extensions to HTML. There were essentially three good ideas that were pointed out to me (along with a host of really bad ones).

Tim Bray suggested namespacing the extensions we've made to HTML. Eric Meyer suggested this as well. The idea would be that you could feed your HTML with the namespace declaration to an HTML parser and it would essentially have namespace support and understand how to handle the namespaced content. This is my favorite of the suggestions, since the namespace could effectively be hacked and only allowed on the root element. This seems like a minor cut-and-paste requirement to impose on Dashboard authors that want to use the new tags and attributes.

A second suggestion was to make a special DTD. I don't like this suggestion as much, since doctypes are used for setting browser modes, and I don't want to impose a particular mode on Dashboard widget authors.

A third suggestion was to restrict these tags and attributes only to Dashboard. This seems reasonable on the surface but would be difficult to do in practice, and besides, as I stated before, we actually are submitting these extensions to WHAT-WG for review anyway. This means the intent is for them to find their way into HTML eventually.

I'll look into what it would take to implement the first suggestion. It sounds to me like people will be satisfied with such a solution. I do wonder what to do with the new values to the type attribute on the input element. Search and range are new values to an already-existing attribute, and so I'm not sure how to mollify people on this one. Breaking those out into new attributes not only makes little sense to me, since it allows for a contradictory type clash (by specifying multiple attributes), but it also would complicate the code in WebCore that routinely switches on the type of the input element.

Going forward, I'm curious what the reaction will be as WHAT-WG works to further extend HTML. Assuming that the W3C has really decreed HTML4 to be obsolete, what happens when a proposal is made by multiple browser vendors to extend it? If the W3C rejects it, should the browser vendors be forced to keep their content namespaced forever? I guess we'll cross that bridge when we come to it.


extending HTML 4.01


extending HTML 4.01 07/08/2004 04:02 PM
Dave Hyatt

weblogs.mozillazine.org/hyatt/archives/2004_07.html#005928
track this site | 9 links


Extending HTML, Again


Extending HTML, Again 07/13/2004 01:52 AM
I had thought I’d said enough on this subject, but when Dave Hyatt tells you to speak up, up you speak. Summary: Dave’s latest approach for his new widgets is OK but a little clumsy, and I don’t quite get why Hixie prefers dashes to colons...

On Extending HTML


On Extending HTML 07/07/2004 04:10 PM

A few people have written me expressing concern over the extensions that Apple has made to HTML in order to support Safari RSS and Dashboard. I wanted to explain what we've done and hopefully clear up any confusion.

Let's start by talking about the contenteditable attribute and drag and drop. I bring these up first because what we implemented is exactly compatible with WinIE. In the case of contenteditable, we have no choice regarding syntax. We have received many bugs to support already-deployed systems that use contenteditable, and so we are constrained syntactically. Had we gone our own route, we still wouldn't work with the Web pages that use it, and it would be unrealistic to expect all of those Web sites to modify their systems simply to support Safari. This is especially true if you consider that Web sites frequently deploy systems that they didn't write in the first place, and so they wouldn't know how to modify them anyway.

Drag and drop is a similar situation. Web sites use it, and so we need to support it. We already support dozens of WinIE-invented properties, many of which are incredibly useful and well-specified, so I'm a bit confused as to why contenteditable and drag and drop are creating any stir at all. These attributes are no different from innerHTML or offsetWidth and offsetHeight or innerText or oncontextmenu or any one of the other WinIE extensions that Safari has supported since its first beta 18 months ago.

We have a phrase we like to use here on the Safari team, and that's "real-world standards compliance." What that means is that where possible we attempt to be fully compatible with the W3C standards, but we also want to support the real-world standards, i.e., extensions that for better or worse have become de facto standards. If you really do believe we should not have implemented contenteditable, then you are simply out of touch with reality.

As for the Dashboard extensions that involve changing HTML, there are exactly four of them. We've tried to keep the number to a minimum, but this functionality was required in order to build the gadgets. Let me outline them again:

(1) Slider controls. This is not only used by Dashboard but also by Safari RSS, and so this feature cannot be restricted only to the Dashboard.
(2) Search fields. Again, this feature is used by Dashboard and Safari RSS.
(3) The new composite attribute on the img tag. This feature is used only by Dashboard.
(4) The canvas tag. This feature is used only by Dashboard.

The principal complaint seems to be that we should not be polluting HTML. However, I'm not sure what we should have done instead. I can outline some of your suggestions and explain why we discarded them.

First, it was suggested that the widgets be written in XML rather than HTML and that all of the new tags and attributes be namespaced. However, this would have dramatically increased the complexity of crafting Dashboard widgets. People know how to write HTML, but most of those same people have never written an XML file, and namespaces are a point of confusion.

In addition there are technical hurdles to the use of XML. Every modern browser, including Mozilla and Safari, is much worse at XHTML than at HTML. People tend to foolishly gloss over the transition from one to the other, thinking that code you write for one will "just work" when you switch to XHTML. That simply isn't true. If you look at XHTML in both Mozilla and Safari and compare it to HTML, you'll see that it's slower, non-incremental, and generally buggier than HTML.

An example of a feature that won't "just work" when moved from HTML to XHTML is editing. The serialization model is totally different for XHTML, and HTML elements that have to be written out when you get the raw markup must know to do so using XML-style syntax in XHTML documents. Editing must be able to serialize namespaces, and ideally even preserve the namespace prefixes that were used at various points in the document as well as the use of default namespaces as set up by the author. Right off the bat I've outlined a challenging editing feature that only exists in the XHTML world. There are many more examples of these kinds of problems.

The perfect example of a widget that combines editing with HTML extensions is the Stickies widget. We simply could not have moved this widget to XHTML without doing an enormous amount of XML work.

A second complaint leveled against us was over the canvas tag, namely that it should have been done using SVG. My response to this is simple. Go to the w3c Web site and print out the SVG specification. Twenty minutes later, after you've killed a few dozen trees, then maybe you'll have an appreciation for why this wasn't practical.

Remember that SVG would have forced the use of XHTML, which had all the problems outlined above. Now add to that time the amount of work that would be required to get even a rudimentary SVG implementation going. Now factor in the time it would have taken to make that implementation perform well enough when compared with a programmatic counterpart like the canvas. Canvas only took a handful of days to implement. SVG would take months to implement.

In other words, in an ideal world where we had two years to craft Dashboard, maybe we could have used XHTML and SVG, but we aren't living in that ideal world. We can basically manage only one "huge" layout engine feature in a development cycle, and given our developer feedback the choice of HTML editing as the feature to focus on this cycle was clear. We would still love to implement SVG and XSLT and other great technologies in the future, but we simply can't do everything at once.

Finally we have submitted all of our extensions to the WHAT-WG for review. The slider in particular is already in the Web Forms draft. It is our hope that these HTML extensions will ultimately be standardized by a working group, but I wanted to emphasize that we are working with other browser vendors such as Opera and Mozilla to ensure that these extensions are implementable in those browsers and that these extensions can be standardized. We are not simply off "doing our own thing."


Extending Red Hat 7 - 9 with Progeny


Extending Red Hat 7 - 9 with Progeny 05/12/2004 07:01 PM
php architect, Canada - 12 hours ago ... More importantly, they offer a Red Hat support system that tracks and provides rpm updates to Red Hat Linux servers running versions 7 through 9. They ...

Extending headings with XML


Extending headings with XML 07/03/2002 01:04 AM
One of the problems with the way the current heading system works is that headings are not associated with their content. However, if you are using XML in the form of XHTML, then you can use XML namespaces to extend heading behavious.

Extending SVG for XForms (XML.com)


Extending SVG for XForms (XML.com) 05/23/2002 10:39 PM

Extending Your Forms


Extending Your Forms 10/28/2003 11:06 PM
For the googolth time, I've been asked to retrieve form values and generate client-side validation after a user has changed some page information on-the-fly. I like this type of feature. To me it seems user-helpful and I feel it makes...

Extending Gmail


Extending Gmail 08/09/2004 08:08 PM
Gmail Apps I'm a self-described GMail addict and overall Google product whore, so this page of applications for Gmail has me doing the happy dance.

Extending PHP with DreamWeaver MX


Extending PHP with DreamWeaver MX 03/11/2003 01:22 AM
I prefer to use a text editor to code PHP, but when editing HTML I prefer DreamWeaver. Macromedia has a whole section on their web-site dedicated to PHP and Dreamweaver. An interesting article I found on this site is Building a dynamic website using Dreamweaver MX and PHAkt (pdf). "zeldman.darla"

Extending Contribute


Extending Contribute 08/16/2004 07:42 PM
Learn the skills you need to enhance the functionality of Contribute.

Wget helps you cope with MP3 bl0g
overload


Wget helps you cope with MP3 bl0g
overload
07/12/2004 02:11 PM
Great item on Jeffrey Veen's blog last week -- a helpful tech tip for compulsively-downloading MP3 blog junkies:
[H]ow to keep up? For a while, I just visited a couple of interesting and well written mp3 blogs, but then they'd link to a couple more, and I'd start reading those. And then that happened a few dozen more times. My desire to stay in touch was in conflict with my increasingly limited free time.

Wget to the rescue. It's a utility for unix/linux/etc. that goes and gets stuff from Web and FTP servers -- kind of like a browser but without actually displaying what it downloads. And since it's one of those awesomely configurable command line programs, there is very little it can't do. So I run wget, give it the URLs to those mp3 blogs, and let it scrape all the new audio files it finds. Then I have it keep doing that on a daily basis, save everything into a big directory, and have a virtual radio station of hand-filtered new music. Neat.

Link (Thanks, Skye Ashbrook)

Research on New Tools to Manage Web Info
Overload


Research on New Tools to Manage Web Info
Overload
01/22/2004 11:06 PM
BeSpacific Jan 23 2004 3:03AM GMT

A Practical Guide to Managing E-Mail
Overload


A Practical Guide to Managing E-Mail
Overload
03/14/2005 04:21 PM
A Practical Guide to Managing E-Mail Overload
http://hbswk .hbs.edu/item.jhtml?id=4438&t=srobbins

Stever Robbins offers advice on how to author effective, efficient, and focused business email messages. He also recommends how to read and respond to email. Thoughtful, well constructed and brief responses, which you have taken time to consider before hitting the "send" key, will increase the value of this communications tool. And don't forget that sometimes it is easier to just use the phone. [beSpacif ic March 4, 2005]
Grok Description matches for Extending PHP Classes with the Overload Extension
GrokA matches for Extending PHP Classes with the Overload Extension

Persistent Smells


Persistent Smells 06/21/2004 08:23 PM
I recently spent a day in a home full of strong-smelling lilies. For the next week, I smelled the same smell. What could cause this?

JC Persistent Framework


JC Persistent Framework 11/06/2003 07:19 PM
AtomsFramework 0.0.6 Release

Persistent Spam


Persistent Spam 04/07/2005 10:38 PM
Like many over the past few months, I have happily filled my aggregator with persistent queries from the likes of PubSub, Newsgator, Technorati and Feedster.  At first it was ego surfing without leaving the couch.  Now I'm creating lots...

FreeForm Persistent World for NWN


FreeForm Persistent World for NWN 04/22/2004 09:19 AM
FreeForm Persistent World the Open Source NWN Project starts

Java Persistent Objects


Java Persistent Objects 11/16/2003 06:17 PM
JPOX 1.0 Beta 1

Tangle Persistent World Kit


Tangle Persistent World Kit 04/14/2004 10:37 PM
First Release! Network Engine Test Chat Client

PHP Object Persistent Database 0.1


PHP Object Persistent Database 0.1 06/23/2004 02:09 PM
A system that provides simple persistent storage for Web application objects.

Power Line: The Persistent Oddness...


Power Line: The Persistent Oddness... 08/04/2004 05:06 PM
this picture over at Powerline .. Powerline .. him

powerlineblog.com/archives/007366.php
track this site | 3 links


Persistent Vegetative States can and
should be use to advance many causes


Persistent Vegetative States can and
should be use to advance many causes
03/25/2005 06:33 AM
Cory Doctorow: This Craigslist poster has the right idea: donate your persistent vegetative state in advance to be cynically manipulated for the cause of your choice.
If I am rendered comatose and determined to be in a persistent vegetative state (PVS) for a period longer than one month and if no imminent cure is forthcoming, I do not wish to be kept alive by artificial means including but not limited to nourishment, hydration, etc.

However....

If, due to the absurd political state of affairs in this country, my persistent vegetative state and impending unplugging can be parlayed into some sort of political leverage, I wholly endorse using my predicament in whatever way possible for the purposes of passing legislation favorable to my general political and ethical outlook. Here is a list of top-tier causes I support and will continue to support, both while in my PVS and after my eventual death.

* Debt Relief to Impoverished Nations: I will agree to stay in a PVS for an indeterminate amount of time if the United States aggressively pursues a policy of debt relief and debt forgiveness to developing and impoverished nations.

* Nuclear Disarmament and De-escalation: I will agree to stay in a PVS for a open-ended period of time if the United States aggressively pursues a policy of nuclear disarmament and de-escalation. By this I mean desisting from developing new bellicose nuclear technologies and providing significant non-military incentives for nations to avoid nuclear armament.

Link (via Dan Gillmor)


"Pre-9/11 Files Show Warnings Were More
Dire and Persistent"


"Pre-9/11 Files Show Warnings Were More
Dire and Persistent"
04/18/2004 08:16 PM

9/11 Files Show Warnings Were Urgent and
Persistent


9/11 Files Show Warnings Were Urgent and
Persistent
04/17/2004 01:54 PM
Predictions of an attack by al Qaeda had been communicated directly to the highest levels of the government.

Bulletproof persistent cookies to
increase security


Bulletproof persistent cookies to
increase security
11/01/2003 04:06 AM
CNET Nov 1 2003 2:35AM ET

Power Line: A persistent oddness, part 2


Power Line: A persistent oddness, part 2 08/11/2004 10:28 PM
John Kerry Carries A Hat Around With Him That He Was Supposedly Given As He Went Into Cambodia (This Story Is Getting More Bizarre By The Day) .. PowerLine .. tough kid

powerlineblog.com/archives/007425.php
track this site | 3 links


Flood woes amid persistent rain


Flood woes amid persistent rain 08/11/2004 11:40 AM
Heavy rain causes flooding in some parts of Scotland, forcing the evacuation of homes and travel disruption.

A Prized Project, a Mayor and Persistent
Criticism


A Prized Project, a Mayor and Persistent
Criticism
07/13/2004 12:10 PM
Millennium Park is opening in Chicago four years late and at three times the original budget, but few are complaining.

Apple Redesigns .Mac With Persistent
Navigation Links, New Features


Apple Redesigns .Mac With Persistent
Navigation Links, New Features
05/19/2004 06:08 PM
By MacDailyNews (via MyAppleMenu)

Jeff Jarvis: Persistent user storage and
control


Jeff Jarvis: Persistent user storage and
control
07/23/2004 04:35 AM

I just found this [via Arish Maurya]. It's from June 11th.

A place for my stuff

I want a place on the Internet where I can store all my stuff so I can get to it from anywhere on any device to consume, modify, store, or share. This stuff could be anything -- my movies, music, to-do lists, shopping lists (for the family to update), contacts, documents, search history, bookmarks, photos, preferences, voicemail, anything, everything. And it should come with the functionality necessary to execute all those verbs I listed (e.g., a nice little list-making ap).

I want the ultimate -- in the words of George Carlin -- place for my stuff.

Count on this: It will be a big consumer business. I said below, in the middle of another post, that this could come from phone or cable companies, from Google or Microsoft or Yahoo, or from a new company (VCs: pay attention!). A server for everyone and everyone on a server.

I'm writing this again to highlight it because I see lots of people dancing around this need and desire. See Jason Kottke's smart post about his three wishes for TiVo, inspired by their move into Internet-delivered programming. I agree with two of his wants: He wants TiVo to make better, smarter, categorized recommendations. And he wants TiVo to create community around TV since it is, after all, a social experience.

But I disagree with his third wish: That TiVo becomes the Internet-accessible place for your stuff, complete with that list application. I wonder whether that's not better up in the cloud because (1) you can get to it from anywhere -- even multiple TVs, (2) the storage can be unlimited -- see GMail, and (3) it won't go obsolete. But I agree that I want it, too. Is technology like Christmas: If I hint enough, I'll get it?

: I once worked with a German company called Twest.d e that was going to deliver the shopping-list ap and other great little bits that treated the Internet like a life's operating system. Wrong time, wrong platform, wrong VCs, too bad. But now the time has come.

[Jeff Jarvis]

Marc replies...

Right on to Jeff. Perfectly articulated. Digital Lifestyle Aggregation.


Weakened but Persistent Storm Threatens
Florida Panhandle


Weakened but Persistent Storm Threatens
Florida Panhandle
09/06/2004 12:31 PM
State officials today urged people to stay where they were because of the possibility of flooding, but not everyone heeded the warning.

ADOdb: Making MySQL Efficient


ADOdb: Making MySQL Efficient 10/29/2003 12:11 AM
Learn how to use Active Data Objects Data Base (ADOdb) to make your websites utilize MySQL more efficiently.

Staying Current on MySQL


Staying Current on MySQL 06/06/2005 12:05 AM
In depth links to how to s with solid technical methods for setup, migration, tweaking and more.

MySQL Connection


MySQL Connection 09/27/2002 12:11 AM
Allow developers connect with MySQL Server with Log generate. Log class is required. See my classes

EnGarde Secure Linux Advisory: MySQL,
MySQL-client, MySQL-shared, mod_php, php


EnGarde Secure Linux Advisory: MySQL,
MySQL-client, MySQL-shared, mod_php, php
12/16/2002 04:17 PM
"Stefan Esser from the PHP.net project discovered two vulnerabilities in MySQL which range from crashing the server to executing arbitrary code as the user under which the MySQL daemon runs (mysql)..."

ADOdb and PDO


ADOdb and PDO 06/14/2004 10:38 PM
PDO is a new database API that will be part of the official PHP 5.1 release. AFAIK, PDO will not be a full-fledged database abstraction library, but will provide a standard database API for PHP.

Here is a sample taken from the PDO download:

<?php
   $x = new PDO("odbc:ram", 'php', 'php',
array(PDO_ATTR_AUTOCOMMIT => 0));
   $stmt = $x->prepare("select NAME, VALUE from test where value
like ?");
   $the_name = 'bar%';
   $stmt->execute(array($the_name)) or die("failed to
execute!");
   $stmt->bindColumn('VALUE', $value);
   while ($row = $stmt->fetch()) {
   	echo "name=$row[NAME] value=$row[VALUE]n";
   	echo "value is $valuen";
   	echo "n";
   }
    echo "Let's try an updaten"
   $stmt = $x->prepare("INSERT INTO test (NAME, VALUE) VALUES
(:name, :value)");
    $stmt->bindParam(":name", $the_name, PDO_PARAM_STR,
32);
   $stmt->bindParam(":value", $the_value, PDO_PARAM_STR,
32);
    for ($i = 0; $i < 4; $i++) {
   	$the_name = "foo" . rand();
   	$the_value = "bar" . rand();
	if (!$stmt->execute()) {
   		break;
   	}
   }
    echo "All donen";
?>

Highlights of PDO include the unified object-oriented API, compiled statements are now first class objects (the PDOStatement class), and better support for bind variables, which will give a substantial speed boost for performance freaks.

Does this make ADOdb superflous? If you are looking for something that just works with mysql, then ADOdb might not be for you. However ADOdb still has a big role to play, because:

(1) ADOdb makes it easier to develop PHP apps that work with multiple databases, with portable handling of data types and schemas.

(2) PDO does not provide an infrastructure for enterprise database access, such as recordset caching, sql logging and tuning, and session management.

(3) If you come from a Windows background (like me), it is easy to learn ADOdb because it follows many M'soft conventions.

So the next question is, how to extend ADOdb to support PDO? I think we can retain the existing ADOdb infrastructure, treating PDO as just another ADOdb driver. At the same time, we will add PDO specific extensions to the ADOdb PDO driver.

So the classic ADOdb calling conventions will still work:

	
        include('adodb.inc.php');
	$DB = NewADOConnection('pdo');
	$DB->Connect($host, $user, $pwd, $db);
	$rs = $DB->Execute("select * from table where name=?",array('Jill'));
	while (!$rs->EOF) {
		var_dump($rs->fields);
		$rs->MoveNext();
	}
And we will add a new ADOdb statement class to support PDO conventions:
        include('adodb.inc.php');
	$DB = NewADOConnection('pdo');
	$DB->Connect($pdo_connection_string);
	$stmt = $DB->PrepareStmt("select * from
table where name=?");
	$stmt->Execute(array('Jill'));
	while ($arr = $stmt->Fetch()) {
		var_dump($arr);
	}

Wez has more PDO examples. A PDO discussion at sitepoint.


ADODB 4.52


ADODB 4.52 08/17/2004 09:14 AM
A PHP database abstraction layer.

ADOdb for Python


ADOdb for Python 01/26/2004 10:15 AM
In my work with Python, I found that there's no good database abstraction library, so I wrote my own. Looks familiar, doesn't it?

PHP Python
include "adodb.inc.php";
$conn = NewADOConnection('mysql');
$conn->Connect('server','user','pwd','db');
$rs = $conn->Execute('select * from tab);

while (!$rs->EOF) { print_r($rs->fields); $rs->MoveNext(); } $rs->Close(); $conn->Close();

import adodb_mysql;
conn = adodb_mysql.adodb_mysql()
conn.Connect('server','user','pwd','db')
cursor = conn.Execute('select * from tab)

while not cursor.EOF: print cursor.fields cursor.MoveNext()

cursor.Close() conn.Close()

It also supports the iterator protocol:

  cursor = conn.Execute('select * from table')
  for row in cursor:
       print row

Python does have the DB API, but it's similar to ODBC in that it provides a very minimal layer, without abstracting SELECT ... LIMIT, LOBs, string quoting, etc. Download zip.

I will try to post a comparison between developing in Python and PHP when I have more time.


ADODB 0.70 Released


ADODB 0.70 Released 06/11/2004 11:17 AM
ADODB is a database wrapper library for PHP4 modelled on Microsoft's ADO. You are all urged to upgrade because of a bug in MoveNext(), which did not handle EOF properly.

--Calls by reference have been removed (call_time_pass_reference=Off) to ensure compatibility with future versions of PHP, except in Oracle 7 driver due to a bug in php_oracle.dll.

--PostgreSQL database driver contributed by Alberto Cerezal (acerezalp@dbnet.es).

--Oci8 driver for Oracle 8 contributed by George Fourlanos (fou@infomap.gr).

--Added mysqlt database driver to support MySQL 3.23 which has transaction support.

--Oracle default date format (DD-MON-YY) did not match ADODB default date format (which is YYYY-MM-DD). Use ALTER SESSION to force the default date.

--Error message checking is now included in test suite.

-- MoveNext() did not check EOF properly -- fixed.


ADOdb 2.20 released


ADOdb 2.20 released 07/09/2002 09:09 AM
ADOdb is a PHP library for writing portable database code. It supports many databases, including oracle, mysql, mssql, postgresql, access, informix, sybase, db2, interbase, firebird, frontbase, foxpro, etc.
  • Busy working on making the code more consistent and modular. Added new caching functions: CacheGetOne($secs2cache,$sql), CacheGetRow($secs2cache,$sql), CacheGetAll($secs2cache,$sql).
  • Added a new function useful for scheduling appointments portably. $conn->OffsetDate($dayFraction,$date=false) to generate sql that calcs date offsets.
  • Improved portability when handling joins. Added connection properties: leftOuter, rightOuter that hold left and right outer join operators, and ansiOuter to indicate whether ansi outer joins supported.
  • New driver mssqlpo, the portable mssql driver, which converts the string concat operator from || to +. This allows you to write portable sql using || that is automatically converted to + when you switch databases to mssql.
  • Fixes PageExecute() bug when sql has GROUP BY, and msaccess SelectLimit() bug.

"zeldman.57"

ADOdb 2.10 Released


ADOdb 2.10 Released 06/05/2002 07:50 AM
ADOdb 2.10 has just been released. This is a database abstraction library for PHP that supports many databases, including Oracle, MySQL, PostgreSQL, Informix, Sybase, Microsoft SQL Server, Access, FoxPro, DB2, ODBC etc.

It now provides an easy-to-use pager class. The following code

include_once('../adodb.inc.php');
include_once('../adodb-pager.inc.php');
session_start();

$db = &NewADOConnection('mysql');
$db->Connect('localhost','root','','xphplens');
$sql = "select * from adoxyz ";

$pager = new ADODB_Pager($db,$sql);
$pager->Render($rows_per_page=5);
will produce:
|<   <<   >>   >|  
IDFirst NameLast NameDate Created
36  Alan  Turing  Sat 06, Oct 2001 
37  Serena  Williams  Sat 06, Oct 2001 
38  Yat Sun  Sun  Sat 06, Oct 2001 
39  Wai Hun  See  Sat 06, Oct 2001 
40  Steven  Oey  Sat 06, Oct 2001 
"tri" This is 100% customizable with source code provided. Enjoy! "zeldman.57"

adodb-xmlschema


adodb-xmlschema 02/12/2004 10:14 PM
adodb-xmlschema (axmls) Release 1.0!

adodb-xmlschema 0.0.2.4


adodb-xmlschema 0.0.2.4 11/17/2003 08:54 PM
An XML database creation extension for ADODB.

Extending PHP Classes with the Overload Extension

The following phrases have been identified by the grok system as matching this entry: persistent connection not staying persistent mysql php adodb

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Fixing HTML with the
WDG HTML Validator

PHP and the OWASP
Top Ten Security
Vulnerabilities

CONSUMER MEMO:
Quicken Loans
settles federal
charges, Froogle up
...

Mod_GZIP Compressed
CSS Files Causing
Netscape v4 Errors

Web of notions is a
tangled one

Bushfires Destroy
Historic Mt. Stromlo
Observatory

What to do when
impossible project
deadlines are common
procedure

Use earned value to
determine project
progress

Weeding out Web
robots

The SSA Sold Me Out?
Want a PDP-12?
Yu-Gi-Oh-No!
MySQL Upgrade
Staying loose with
the Golden Globes

Spam Conference Trip
Report

Practical
Homeschooling -
Skills to Learn
Before You Start !
Part ...

Application
development with
Microsoft .NET
application blocks

What's senior
management's view of
your project?

An introduction to
ADO.NET concurrency

Maximize DataSnap
efficiency in Delphi

Project management's
image

SQL Server and
ColdFusion

Avoid DHTML pitfalls
Macromedia Extends
E-Learning Tools

Macromedia Adds
Flash to PowerPoint

The Simpsons: 2 more
years!

PHP Class 'Uploader'
released

PHP Class 'PHP Links
Class' released

I Spy . . . a New
Word

UnitedLinux Targets
Telecommunications
Carriers

FreeBSD 5.0
Unleashed

Sun to Simplify Java
W3C Launches Timed
Text Working Group

PHP 4.3 and Mac OS X
Innovation and how
not to.

api.google.com
acting up

Macromedia buys
training toolmaker

Macromedia Extends
E-Learning Offerings

Slow News Day
FAST Prepping New
Catalog Engine

Shopping Cart
Abandonment

The lady is a champ
Macromedia nabs
business toolmaker

Linux Advisory Watch
- January 17th 2003

Oracle9i's automatic
segment space
management improves
segment storage
internals

Should a freelance
developer sacrifice
freedom for a
regular paycheck?

Servlets offer a
simple alternative
to CGI development

Learn to use SQL
Server as a
ColdFusion back end

.NET application
blocks boost
development

Promote project
management's image

what is grok?