Waking Up PHP
by Stephen Blair on Apr.25, 2009, under A PHP Life
My PHP Coffee Mug script has inspired a new category on my blog called A PHP Life and here is the latest addition!
Stay tuned for more to come!
// Waking Up PHP | Stephen R. Blair | www.srblair.com
function morningAlarm() {
//The snooze button has not been smashed yet
$snoozeCount = 0;
//The alarm is buzzing
if(isset($alarm)) {
if($snoozeCount <= 3) { //If you have not hit the snooze button at least 3 times...
$snoozeCount++; //Go ahead and hit it again!
} else {
$wakeUp = true; //Otherwise, wake your ass up!
}
}
}
PHP Coffee Mug v1.0
by Stephen Blair on Apr.24, 2009, under A PHP Life
A co-worker and myself went to Starbucks today where I decided that I really could use an office coffee mug to keep at work. I of course chose the largest mug they had which also just happens to come with a porcelain pen that you can use to write on it and eventually heat treat to make permanent. As I was sitting here writing code for work I was also thinking about what clever sayings or cool pictures I could put on my new coffee mug. The mixture of work and play came out as a random coffee mug php script I have come to label as “PHP Coffee Mug v1.0″.
I hope you enjoy my random and utterly useless coffee mug script!
// PHP Coffee Mug v1.0 | Stephen R. Blair | www.srblair.com
require_once('coffee_cup.php');
if($coffeeCup == empty) {
//Check to see if there is a fresh pot of coffee
if($coffeePot != 'fresh') {
//Make a fresh pot of coffee
makeCoffee();
} else {
//Pour coffee into the coffee cup
pourCoffee();
//Drink the coffee!
drinkCoffee();
}
} else {
//Check the date for the coffee in the mug
if($date > $dateExpire) {
//Rinse out the cup if it is old coffee
rinseCup();
//Check to see if there is a fresh pot of coffee
if($coffeePot != 'fresh') {
//Make a fresh pot of coffee
makeCoffee();
} else {
//Pour coffee into the coffee cup
pourCoffee();
}
} else {
//The coffee is fine, drink it!
drinkCoffee();
}
}
Turnkey Web Tools: SunShop & PHP Live Helper
by Stephen Blair on Apr.22, 2009, under Web Design & Development
| PHP Shopping Cart Software (PHP/MySQL)
Our turnkey, search engine friendly shopping cart system. A complete ecommerce solution packed with and extensive feature list. SunShop shopping cart offers all of the standard features you would find in any off the shelf shopping cart software plus much more. What makes SunShop shopping cart stand above the rest is the ease of use and those few extra features that we have included after years of feedback and requests from our clients. |
| PHP Customer Support Software (PHP/MySQL)
Provide reliable real-time customer support and visitor communication directly on your site. With PHP Live Helper you can provide human interaction to visitors allowing you to close a sale, provide customer support or simply answer a question they may have. With no need for extra software, you can provide this from any computer, anywhere. |
Now here is a company that has superior quality web software/scripts! I first found Turnkey back in 2001 when I had started an online jewelery and store and an online electronics store. They had an extremely easy to install shopping cart that was jam packed with all of the features I was seeking for my online stores.
Simple Gallery
by Stephen Blair on Apr.10, 2009, under Web Design & Development
Simple Gallery is one of the most simple, yet professional looking, image galleries you will find out there. Upload a few files, point it to a folder with your images in it and be done!
Simple Gallery is available to all registered users for FREE. If you are registered and logged in please click the download link below. Please post all support questions here as comments and I will get to them as soon as I can.
Download: Simple Gallery
Demo: www.srblair.com/simplegallery
Other PHP Scripts:
- AdManager Light v1.0 – The best way to manage your ads!
- SunShop Shopping Cart Software – A complete ecommerce solution packed with and extensive feature list.
- PHP Live Helper – Provide reliable real-time customer support and visitor communication directly on your site.
Google AdSense is a scam!
by Stephen Blair on Apr.05, 2009, under General Posts
My Google adsense account was deactivated to day with no warnings no notices or anything. I cannot even get in-touch with anyone at Google to dispute this. I was supposed to receive my very first and much anticipated $100 payment from them this month, but it never showed. Mind you it took me almost 6 months to get that much built up so this was a big deal for me and I was quite excited to get this first check. A few days ago I requested that they re-send my check because I never received it. I got no response or anything and today I received the below email stating that my ad sense account has been disabled.





















