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


Five Little PHP Tricks to Programming Bliss







Five Little PHP Tricks to Programming
Bliss

Five Little PHP Tricks to Programming
Bliss
06/26/2002 01:01 PM

This tutorial covers 5 little tips I have for writing PHP scripts. They may not be earth shattering, but they are some advice for all you aspiring PHP developers out there.




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





Similar Items

Five Little PHP Tricks to Programming Bliss

Grok Headline matches for Five Little PHP Tricks to Programming Bliss

Ignorance is Bliss


Ignorance is Bliss 04/19/2004 05:42 PM

Friend Buys Computer Just Like That: The Onion brings us this heartwarming story about a guy who knows what he wants. Cheng (the guy's friend) is just flabbergasted.

Cheng said that, once he realized what was happening, he followed Trask to the counter and demanded to know if his friend had done any research on the Internet or visited the store on previous occasions.

"He hadn't," Cheng said. "He just waltzed in there and bought the damn thing. I asked him what he would be using it for, and he said 'work stuff and Internet stuff.' He said he wanted a computer with a DVD player, so he could take it with him when he stayed at his girlfriend's place. And — oh, this was the classic line! This killed me! He said he wanted one that had an 'MP3 maker.'"

I think Cheng's just jealous.

Click here to comment on this entry


MS04-025 - Ignorance is truly bliss....


MS04-025 - Ignorance is truly bliss.... 08/05/2004 04:08 PM
hellNbak (Aug 05 2004)

Wedded Bliss At Frameline28


Wedded Bliss At Frameline28 06/13/2004 04:09 AM
"People who live anywhere can make films because of digital video." By Carla Meyer, San Francisco Chronicle (via MyAppleMenu)

4 months of waiting, and now bliss


4 months of waiting, and now bliss 12/29/2003 10:33 PM
Huzzah, I'm going on Wednesday to take my G1!! I'm going to Aurora, my mother is going to take me...

Upgrade to gaming bliss for under Ł150
($275)


Upgrade to gaming bliss for under Ł150
($275)
02/10/2004 07:41 AM

Wide-Screen Desktop Bliss


Wide-Screen Desktop Bliss 01/24/2004 07:35 AM
This is one sexy piece of Mac hardware. By Chris Oaten (The Advertiser via MyAppleMenu)

Motorola and BMW next matchup for car
Bluetooth bliss


Motorola and BMW next matchup for car
Bluetooth bliss
03/14/2005 06:27 PM
Engadget Mar 12 2005 2:53AM GMT

Disabling autorun in Windows yields
bliss


Disabling autorun in Windows yields
bliss
06/29/2004 02:07 PM
Endgadet's Phillip Torrone sez: "By default Windows will automatically look for a file called Autorun.inf on any CD you pop in to your system, we’ve always known this is a big security issue as there are a lot of spyware and viruses distributed on CDs, you read about this every week. In fact, Microsoft is even disabling this in their next security focused service pack. Add to that, record companies are adding Autorun software which won't allow Windows users to make MP3s from the CDs they've purchased. So in an effort to protect people from Spyware, viruses and other nasty things we're suggesting everyone disables autorun." Link

Neowin Review: Upgrade to gaming bliss
for under #0163150


Neowin Review: Upgrade to gaming bliss
for under #0163150
02/10/2004 02:54 AM

Digital bliss: Soon-to-be-married couple
get help wiring their love nest


Digital bliss: Soon-to-be-married couple
get help wiring their love nest
04/04/2005 06:12 AM
SiliconValley.com Apr 4 2005 10:09AM GMT

JD Bliss Launches Webinar Series on
Quality of Life for Attorneys


JD Bliss Launches Webinar Series on
Quality of Life for Attorneys
03/17/2005 03:02 AM
First Webinar Will Focus on Proven Techniques for Achieving Work Life Balance. [PRWEB Mar 16, 2005]

Ten CSS tricks you may not know


Ten CSS tricks you may not know 09/01/2004 05:49 AM
With so many different ways of using CSS some important tricks and techniques may have passed you by. See how many of the ten you already know and maybe learn something new!

Ten CSS Tricks


Ten CSS Tricks 09/01/2004 05:33 PM

Ten CSS tricks you may not know: Fantastic round-up of CSS tricks. Good stuff.

Click here to comment on this entry


Bag-O-Tricks for PHP


Bag-O-Tricks for PHP 11/17/2002 09:46 PM
"..everything under the sun which would be very helpful for all in creating dynamic sites and even for newbies."

"Ten CSS tricks you may not know"


"Ten CSS tricks you may not know" 09/03/2004 02:42 AM

KDE tips and tricks


KDE tips and tricks 02/01/2005 08:49 PM
The K Desktop Environment (KDE) is incredibly popular in the world of GNU/Linux. Distributions such as SUSE and Mandrakelinux use it by default. KDE has some useful features that, while easily accessible, are less prominent. Just as a camera inexplicably makes a cell phone more fun to use, KDE's cool but unnoticed details may make it more attractive to prospective users. Read on to learn about a few such features may help you every day.

Tricks of the trades


Tricks of the trades 03/22/2005 04:37 PM
Trade Tricks is a collection of all the little 'tricks of the trade' which people build up with experience. Some are pretty hum-drum, but others are useful even if you don't practice the trade. For example, this tip for checking if a diamond is real may at some time be handy, and this one for washing a pan would have been useful last night. Found via, and run by the writer of, defective yeti

Old School, New Tricks


Old School, New Tricks 12/23/2003 11:49 AM
Students at Brooklyn's Packer school are field testing the wireless future. And you thought high school was tough. By Lev Grossman (Time via MyAppleMenu)

Spammer Tricks


Spammer Tricks 12/02/2002 07:24 PM
John Graham has posted about some recent spammer tricks that he is working to address in the next release of POPFile....

More Cool Web Tricks


More Cool Web Tricks 08/13/2004 02:30 PM
WebDevInfo Aug 13 2004 6:44PM GMT

Tricks of the Trade


Tricks of the Trade 08/27/2004 01:33 PM

The Morning News has a fun article on "tricks of the trade": documenting little tricks used in various professions. Great stuff.

This year, for instance, a programmer can always tack the phrase "and I'm thinking of incorporating some XML functionality"ť onto a project summary to explain why he'll need an extra week, account for a missed deadline, or impress a superior. In this respect, the gap between software engineers and birthday clowns is almost negligible.

[...]
Nurse

Patients will occasionally pretend to be unconscious. A surefire way to find them out is to pick up their hand, hold it above their face, and let go. If they smack themselves, they’re most likely unconscious; if not, they’re faking.

Click here to comment on this entry


Bungie's up to its old tricks...


Bungie's up to its old tricks... 08/02/2004 10:05 AM
More viral marketing? Move over, BK chicken. I love bees is teh rox0r.

Dirty tricks


Dirty tricks 05/18/2004 06:17 PM

Stupid Web Tricks


Stupid Web Tricks 05/10/2004 07:16 AM
CNET May 10 2004 11:05AM GMT

Spam That Tricks Me


Spam That Tricks Me 11/06/2003 04:11 AM
If you get enough spam, I'm sure you know the feeling. As you sort through your mail, deleting the obvious spam, you find one that you're not sure about and you end up opening it - and sure enough, it's spam that tricked you. Every time you do that, you probably feel a little silly for getting tricked. I know I do. Columbia Professor Sree Sreenivasan discusses a few of the messages that tricked him and explains why he was fooled. He's a lot more forgiving than I am, but I get fooled by more than my fair share. Meanwhile, picking up on Sreenivasan's column is another reporter who points out that if any readers want to email him, they need to come up with a subject line that is clearly not spam. I agree. I know there have been a few borderline emails that I opened and turned out to not be spam - but I couldn't tell from the subject lines. I'm sure there are others that I've ended up deleting.

Snowboard tricks


Snowboard tricks 11/06/2003 01:26 PM
Chicago Tribune Nov 6 2003 12:54PM ET

Brain tricks


Brain tricks 05/21/2004 03:51 PM
Red and green dots have never been so interesting. At least to a geek like me. I love it when my brain plays tricks on me.

Stupid Phishing Tricks


Stupid Phishing Tricks 05/21/2004 01:00 PM
http-equiv_at_excite.com (May 21 2004)

Stupid Credit Tricks


Stupid Credit Tricks 06/29/2004 03:33 PM
Watch your wallet. It's not just the bad guys out to get you.

New tricks for Apple gear


New tricks for Apple gear 02/01/2005 09:06 PM
PowerBooks with new features look to recapture some limelight from iPod, Mac Mini. Also: Apple's branding magic.
Photos: Juiced-up PowerBooks
Photos: The iPod economy

Ten CSS tricks — corrected and
improved


Ten CSS tricks — corrected and
improved
09/08/2004 08:55 AM

Tantek Çelik offers his critique of Evolt's recent article "Ten CSS tricks you may not know" (via W ebStandards.org).


Tricks for Scanning 3D Objects


Tricks for Scanning 3D Objects 08/08/2004 07:05 AM
G4 Tech TV Aug 8 2004 11:06AM GMT

Text Messaging Tricks


Text Messaging Tricks 07/27/2004 04:24 AM
G4 Tech TV Jul 27 2004 8:22AM GMT

Merlin's tips and tricks


Merlin's tips and tricks 09/08/2004 07:14 AM
Cory Doctorow: Merlin Mann, the hilarious polymath geek dude, has started a new site of usability tips-and-tricks called 43 Folders that is chock-a-block with reallye excellent tips for getting the most out of every bit of technology in your life.
Most sites requiring registration ask you to choose a "secret question" to which only you supposedly know the answer. Of course, in the age of Google, the city where you were born and your mother's maiden name may no longer be the best kept secrets in the world.

So, next time you register for a site and it asks for your response to a challenge question, choose something that's completely insane, but really memorable to you.

Link (Thanks, Merlin!)

OS X delivers treats and tricks


OS X delivers treats and tricks 10/31/2003 04:09 PM
A potential refund, data-loss concerns and security questions cast a shadow on Apple's operating system.

Google Tricks and hacks


Google Tricks and hacks 12/30/2003 01:29 AM

New Tricks for Anticholesterol Drugs?


New Tricks for Anticholesterol Drugs? 09/01/2004 01:16 PM
Business Week Sep 1 2004 5:15PM GMT

You can't teach an old attack dog new
tricks


You can't teach an old attack dog new
tricks
07/20/2004 07:40 AM
Partisan hack David Bossie raised political sliming to an art form against Bill Clinton. Now he's out to smear John Kerry and Michael Moore. Why does anyone in the media still take him seriously?

Google tricks and hacks


Google tricks and hacks 11/02/2003 07:38 PM
Google.com is undoubtedly the most popular search engine in the world. It offers multiple search features like the ability to search images and news groups.However it's true power lies in it's powerful commands that can be used and misused.I am writing this article on the basis of my experience using google and trying out ideas when i am bored.Now enough of lecturing...let's get down to business ;) (Kevin Christley)
Grok Description matches for Five Little PHP Tricks to Programming Bliss
GrokA matches for Five Little PHP Tricks to Programming Bliss

Audiofy Enhances Bookchips™ to Support
Palm Powered™ PDAs and Mobile Phones,
Including palmOne™ Treo™ Smartphones,
and Tungsten™ and Zire™ Handhelds


Audiofy Enhances Bookchips™ to Support
Palm Powered™ PDAs and Mobile Phones,
Including palmOne™ Treo™ Smartphones,
and Tungsten™ and Zire™ Handhelds
03/17/2005 03:39 AM
Audiofy Corporation, a premier digital audiobook publisher, today announced that all of the company’s Bookchip titles are now available for Palm OS handhelds and palmOne Treo smartphones [PRWEB Mar 16, 2005]

Palm Tungsten and Palm Zire Handhelds
Continue to Gain Momentum in Education


Palm Tungsten and Palm Zire Handhelds
Continue to Gain Momentum in Education
10/30/2003 11:48 PM

NS Basic/Palm is Palm OS Cobalt Ready!


NS Basic/Palm is Palm OS Cobalt Ready! 02/19/2004 08:08 AM

warez.metafilter.com


warez.metafilter.com 08/27/2004 01:51 PM
After the FBI raid five pople's homes (and the offices of one ISP) seizing their equipment for operating a "network" sharing the equivalent of 60,000 movies or 10.5 million songs (according to Mr Ashcroft) as part of Operation Digital Gridlock's attempts to crack the "organisation" known as The Underground Network (and perhaps to rail against the Ninth Circuit Court of Appeals' recent decision backing up the legality of P2P networks) one of those raided - "The Answer Man" - contacts P2Pnet, to give the inside scoop and talk about the distortions created by the media reporting of the case. [Thanks Squeak]

Warez pirate convicted


Warez pirate convicted 12/28/2004 09:29 PM
TechSpot Dec 29 2004 12:31AM GMT

Warez supports terrorism


Warez supports terrorism 03/14/2003 01:08 PM

Warez Suspect To Be Extradited, After
All


Warez Suspect To Be Extradited, After
All
09/06/2004 11:57 PM

FBI Takes Down Warez Group


FBI Takes Down Warez Group 04/22/2004 08:00 PM
An update to the earlier story we had on a schoo ls being raided by the FBI for sharing music files, here's the news on a larger FBI operation to shut down a larger software, music and movies warez group. This makes more sense than just going after file sharing, but it still makes you wonder. There is this huge terrorist threat thing going on right now, and you would think that it might make more sense for the FBI to protect us from being blown up than to worry about people sharing music files that they can probably get on file sharing networks anyway.

Bram: BitTorrent use up, it's not all
warez


Bram: BitTorrent use up, it's not all
warez
01/07/2005 04:41 AM
Cory Doctorow: Bram Cohen, the creator of BitTorrent, notes, "I'd like to point out that although a number of very large BitTorrent-based web sites have been taken down recently, downloads of BitTorrent have only gone down slightly. There's a widespread belief that BitTorrent is used almost exclusively for warez, probably a perception of people who themselves use it almost exclusively for warez, but that impression is simply untrue." Link (via Waxy)

U.S. authorities convict warez pirate


U.S. authorities convict warez pirate 12/28/2004 09:28 PM
CNET Asia Dec 29 2004 1:53AM GMT

DrinkOrDie Warez Trader to be Extradited
to U.S.


DrinkOrDie Warez Trader to be Extradited
to U.S.
03/14/2005 05:56 PM

Warez spammers discover Linux


Warez spammers discover Linux 08/12/2004 09:25 AM
We Linux users have probably gotten a collective total of at least 32 trillion pieces of spam email trying to sell us Windows warez. But until now, we were always frozen out of these bargains. Unless we ran CrossOver Office, what did we need with a pirated copy of Photoshop or Microsoft Office? (Not only that, most of us use free, open source alternatives anyway.) But now we have arrived. There is finally enough commercial software for Linux that the pirates and warez spammers want our business, too.

US authorities convict warez pirate


US authorities convict warez pirate 12/29/2004 06:00 AM
CNET Asia Dec 29 2004 10:14AM GMT

Warez pirate pleads guilty


Warez pirate pleads guilty 12/28/2004 03:18 PM
null

Feds Convict Warez Dealer


Feds Convict Warez Dealer 12/28/2004 07:32 PM

Feds convict warez pirate


Feds convict warez pirate 12/28/2004 03:31 PM
An Iowa man pleads guilty to piracy charges in first U.S. conviction from Operation Fastlink, an international law enforcement push.

Cellphone Warez Has Hidden SMS Dialer


Cellphone Warez Has Hidden SMS Dialer 08/09/2004 09:46 AM

trojan-mosquitos.jpg imageA cracked version of the popular "Mosquito v2.0" game for Symbian phones has turned out to include a special trojan payload: a dialer that sends a text message to the UK number 87140 with a charge of £1.50 (about $2.75) a pop. So yeah, that sucks, but you shouldn't be downloading phone warez, either.

Fortunately, if you're one of the unlucky ones who has been stung by the malware, removing it appears to be as simple as deleting the offending file. And while this is notable, and a little bit scary, maybe it should be a sign to mobile OS developers to start locking down the dialing functions of their phones a little more securely?

Read - Summer Brings Mosquito-Borne Malware [Informit via Mobile9]


Operation Fastlink Cracks Down on Warez


Operation Fastlink Cracks Down on Warez 04/22/2004 02:46 PM

Warez Group targeted in Raids


Warez Group targeted in Raids 04/23/2004 02:52 AM
Federal agents raided dozens of locations nationwide to sweep up Warez servers. This appears to be a significant sweep and...

International crackdown scores warez
victory


International crackdown scores warez
victory
12/29/2004 06:00 AM
ZDNet UK Dec 29 2004 9:34AM GMT

Worldwide Warez hunt nets first
conviction


Worldwide Warez hunt nets first
conviction
12/27/2004 05:31 PM
Operation Fastlink gets its man

Major DoJ warez crackdown -- Operation
Fastlink


Major DoJ warez crackdown -- Operation
Fastlink
04/22/2004 04:08 PM
Covert DoJ investigations into online swapping of copyrighted materials have identified over 100 people in the USA and other countries involved in the distribution of music, movies, and software valued at over $50 million. The initiative is called Operation Fastlink, and targeted warez groups like Fairlight, Kalisto, Echelon, Class and Project X. Excerpt from DoJ press release:
Attorney General John Ashcroft announced today the most far-reaching and aggressive enforcement action ever undertaken against organizations involved in illegal intellectual property piracy over the Internet. Beginning yesterday morning, law enforcement from 10 countries and the United States conducted over 120 searches worldwide to dismantle some of the most well-known and prolific online piracy organizations.

"Intellectual property theft is a global problem that hurts economies around the world. To be effective, we must respond globally," Attorney General Ashcroft said. "In the past 24 hours, working closely with our foreign law enforcement counterparts, we have moved aggressively to strike at the very core of the international online piracy world."

Link to DoJ press release, Link to related coverage from AP. (Thanks, JP)

Three Brits arrested in global warez
raids


Three Brits arrested in global warez
raids
04/22/2004 05:27 PM
Dragnet

Warez Raids Net First Conviction For
Software Piracy


Warez Raids Net First Conviction For
Software Piracy
12/29/2004 01:06 AM
TechWeb Dec 29 2004 4:09AM GMT

International sweep on suspected "warez"
groups


International sweep on suspected "warez"
groups
04/22/2004 04:02 PM
"Operation Fastlink" takes place in 27 states and 10 countries, netting about $50 million worth of copyrighted material.

Witchfinder General targets NSA in Warez
sweep?


Witchfinder General targets NSA in Warez
sweep?
04/22/2004 04:06 PM
Keystone Piracy Cops

ActiveWin.com Exclusive: Microsoft
Hardware 2004 Fall Lineup Photos and
Descriptions (plus Fingerprint Device
Photos)


ActiveWin.com Exclusive: Microsoft
Hardware 2004 Fall Lineup Photos and
Descriptions (plus Fingerprint Device
Photos)
08/15/2004 10:58 PM
You heard it first here...We have posted multiple photos, descriptions, etc. for the complete Microsoft hardware fall lineup, which includes two fingerprint reader devices. The devices are to be released September 9th. Here is a complete list of the hardware included:

NYT: IRC is like the cantina scene from
Star Wars, but with porn and warez (oh
my)


NYT: IRC is like the cantina scene from
Star Wars, but with porn and warez (oh
my)
05/06/2004 03:07 AM
The NYT has run a goofy Red-scare piece on Internet Relay Chat, with hysterical, alarmist bushwah like "It is still possible - though sometimes a bit difficult - to find mature technical discussions among the tens of thousands of I.R.C. chat rooms" -- I mean, how "difficult" is it to type "/join #unix"?
When I.R.C. started in the 1980's, it was best known as a way for serious computer professionals worldwide to communicate in real time. It is still possible - though sometimes a bit difficult - to find mature technical discussions among the tens of thousands of I.R.C. chat rooms, known as channels, operating at any one time. There are also respectable I.R.C. systems and channels - some operated by universities or Internet service providers - for gamers seeking opponents or those who want to talk about sports or hobbies.

Still, I.R.C. perhaps most closely resembles the cantina scene in "Star Wars'': a louche hangout of digital smugglers, pirates, curiosity seekers and the people who love them (or hunt them). There seem to be I.R.C. channels dedicated to every sexual fetish, and I.R.C. users speculate that terrorists also use the networks to communicate in relative obscurity. Yet I.R.C. has its advocates, who point to its legitimate uses.

Link

Washington Post Censors Iraqi Prison
Photos (At the Request of the WH?): Has
More Than 1,000 Photos, But Has Just
Published 10. We Wonder When Karl Rove
Made His Call To Them. 5/11


Washington Post Censors Iraqi Prison
Photos (At the Request of the WH?): Has
More Than 1,000 Photos, But Has Just
Published 10. We Wonder When Karl Rove
Made His Call To Them. 5/11
05/12/2004 05:26 AM

editorandpublisher.com/eandp/news/article_display.jsp?vnu_content_i d=1000507649
track this site | 6 links


"The Abu Ghraib Prison Photos - It's the
"liberation" of the Iraqi people . These
are just some of the photos that led to
an investigation into conditions at the
Abu Ghraib prison, now run by the
occupation authorities, as revealed in a
shocking report..."


"The Abu Ghraib Prison Photos - It's the
"liberation" of the Iraqi people . These
are just some of the photos that led to
an investigation into conditions at the
Abu Ghraib prison, now run by the
occupation authorities, as revealed in a
shocking report..."
05/03/2004 03:25 PM

Five Little PHP Tricks to Programming Bliss

The following phrases have been identified by the grok system as matching this entry: "warez treo 600" "palm" "photos.pdb"

















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

The Power Of Three:
XML, XSLT and PHP --
Part III

PHP Class
'CurrencyFormatter'
released

PHP Handy off the
Web, Too

International PHP
Conference 2002 call
for papers

Peeking Under the
Lid of Open Source
.NET CLI
Implementation

Vote to create
comp.lang.php
newsgroup

Open-source servers
today: PHP prowls
the edge

Nola and Noguska,
where art thou?

The Big Secret:
Palladium

HTML_TreeMenu
DirectoryBrowser
bin2array
inifile
CurrencyFormatter
Can XML Be The Same
After W3C XML
Schema?

PDF Presentations
Using AxPoint

RELAX NG's Compact
Syntax

document.body,
doctype switching,
and more

Remembering
Non-Registered
Visitors

Book Review: Usable
Web Menus

Information Design:
What is it? Who
needs it?

Bill Moggridge of
IDEO presents
User-Centred Design
at One Remove

Three Down and Yet
More to Come

New Book: Definitive
XML Application
Development

Project and proposal
for integrating
validation with
processing pipelines

Can a foreign
assignment help your
career?

Making multiple
session IDs work in
ASP

Can certification
aid your job search?

Programming within
your comfort zone

Better multiplatform
build system

The May Builder.com
top 10

Is SQL a standard
anymore?

ASP.NET security
holes

Get started with
EJBs

Cool Effects
Tutorials

HTML Utopia --
Designing Without
Tables: Part 2

A hitchhiker's guide
to alternate .NET
languages

First Look:
Dreamweaver MXA
Dream for Developers

Beyond browsing:
Tools for the
advanced Web surfer

Get The Look -
Design Templates

Ask Jeeves Uses
Acquisitions To Its
Advantage

Older Windows
Versions Left Out Of
Code Cleanup

On2 Throws More
Open-Source at
MPEG-4

IBM Unloads SDK for
Web Services

XML-Signature XPath
Filter Last Call
Published

Speech Recognition
Grammar
Specification
Advances to
Candidate
Recommendation

Wishlist: Google
Newsreader

Re-Architecting
PeopleSoft.com From
The Bottom-up

Measuring the Value
of Usability
Engineering

Extending Motion
Into Interactivity

what is grok?