goodluckbags

 

PHP Concepts: The Difference Between Functions & Language Constructs

Persons new to programming often have difficulty grasping the concept of language constructs. Furthermore, both new programmers and seasoned programmers often get tripped up when it comes to telling the difference between language constructs and functions as they often resemble each other and in many instances are used in the same way. As a result, many developers write code for a number of years mistaking language constructs for functions and only become aware of the difference after trying to fix some odd quirk in their applications which arises because ofRead More


The Tools You Need For PHP Development

Quite often, I am asked the question “What tools do I need for PHP development?”. Some of the askers expect to spend hundreds of dollars on development tools, others are utterly bemused when trying to select the ‘perfect’ IDE from a long list options. Still others (admittedly less frequently) come to me asking whether they should buy a PC or a Mac to facilitate their PHP development or if they should go with Linux or Windows. I’ve read forum threads where even seemingly seasoned PHP developers go at it overRead More


Benchmarking Autoload Performance In PHP

I read a blog post a few days ago written by Brandon Savage outlining some of the more worthwhile optimizations one can make to their PHP code and application environment in order to improve performance. One of the optimizations suggested by Brandon is employing the use of an autoloader (for the uninitiated, you can read all about autoloading here). On reading through the comments, I noticed that there seemed to be some uncertainty as to how autoloading stacks up against the use of multiple include files as it relates toRead More


Posting to wordpress with php and xml-rpc

Recently, i’ve been working on a few projects that have required me to extend my programming reach in order to acheive things not normally encountered in your typical project. One of the things i’ve been required to accomplish with PHP lately is to post to WordPress automatically via an HTML form. On exploring the possible options I came across the XML-RPC and AtomPub remote publishing protocols. After briefly reviewing both protocols, for the sake of simplicity, I chose to use XML-RPC. To quote the XML-RPC homepage: It’s (XML-RPC) a specificationRead More


17 PHP Practices That Should Be Banished Forever

The following is a list of 17 PHP programming practices that in my opinion should be banished into oblivion. Forever and ever. Amen. Please note that this list is in no particular order. So, without further ado: 1. Using Register Globals Most PHP programmers will have heard of this at least once. ‘Don’t rely on register globals!’. This issue has been around for quite some time. The disturbing thing is that still, in the year 2009, I find that many programmers still rely on this now deprecated feature of PHP.Read More


PHP Concepts: The Difference Between Functions & Language Constructs

Persons new to programming often have difficulty grasping the concept of language constructs. Furthermore, both new programmers and seasoned programmers often get tripped up when it comes to telling the difference between language constructs and functions as they often resemble each other and in many instances are used in the same way. As a result, many developers write code for a number of years mistaking language constructs for functions and only become aware of the difference after trying to fix some odd quirk in their applications which arises because ofRead More


Optimizing External CSS & JavaScript Files With PHP & mod_rewrite

The landscape of the internet has changed a great deal over the years. Websites are no longer static and lifeless, they have become dynamic and interactive. A consequence of this is that the size of modern websites has increased significantly. This poses a couple of important issues: It takes more time for webpages to be downloaded by client browsers. Average website bandwidth usage has increased. Most internet surfers won’t wait 30 seconds for a page to load in its entirety, they’ll simply move on to something else. Also, if youRead More


Mini list footprints for hrefer.txt

For those of you tht are starting out hrefer.txt here is a mini list of Footprints for your Additive words  in hrefer to gather mybb, vbulletin, smf and expression engine For mybb: “Powered by MyBB” “Forum Contains New Posts” “Registration Date:” “Time Spent Online:” intitle:”profile of” For vbulletin: “powered by vbulletin” “What’s Going On?” “Currently Active Users” For phpbb 2.0: “powered by phpbb 2.0.*” “Mark all forums read” site:.edu For smf: “powered by smf” “Users Online” “Forum Stats” “Most Online Today” inurl:action=profile “Additional Information:” “Used only for identification by SMF.” intitle:registerRead More


How to Remove Blogger Nav Bar?

Blogger Nav Bar All the Blogspot / Blogger Themes have Navigation Bar at the top inherently and most of the Bloggers want to delete/ remove it from there blogs. In the past some uses one way while the other uses another way to hide it or remove/ delete it permanently as Blogspot didn’t give an options to hide it. Some Bloggers also hesitated to hide this bar as they are not clear whether it is legal or not. Now the Blogspot has made it possible for its users to hideRead More


CommentLuv Blogs – Largest High PR List

What is CommentLuv? CommentLuv is a popular WordPress Plugin for all-in-one comment management solution. As a Blogger, you can easily manage all your comments related tasks from one place with CommentLuv. While as a Commentator, you can get Do-follow link to your website/blog, one link to your latest blog post, option to choose link from your latest 10 posts, you can enter your KeywordName as anchor text and much more. If you are a Blogger or Website Designer then you surely know what CommentLuv is. For those who do notRead More