Pink is the New Black![]() Pink is the New Black Variety blog focused on programming, PHP, MySQL, Ruby, and random entries on life and humor. Blog also contains themes and wallpaper Articles
phpacademy.org Offers FREE PHP Tutorials
2011-03-31 23:13:00 There’s a new site out there that’s offering high quality PHP video tutorials – for FREE! All you PHP gurus, check out phpacademy.org. They currently have over 200 PHP and MySQL tutorials for both beginner and intermediate users. Unlike other PHP tutorial sites, phpacademy is unique because the tutorials are all on video, so there’s ... More About: Tutorials , Free , Offers
Error Installing APC via PECL
2011-02-28 01:31:00 I got the following error when compiling APC on one of the servers: /root/APC-3.1.6/apc.c:464: error: ‘apc_regex’ has no member named ‘nreg’ To fix this, make sure that PHP is installed with PCRE support (type php -m for a list of modules), then install the pcre-devel package: yum install pcre-devel
Using POST Variables Outside the Loop
2011-02-24 17:58:00 I was working on this mini contact form the other day where a user basically enters in a bunch of info, the form submits to itself via PHP_SELF, and sends out an email. Oddly enough, once I transferred the form to its permanent home and spent a decent chunk of time trying to figure out ... More About: Post , Variables
Gambling Fever
2011-02-23 02:25:00 Before meeting my fiancé, the most exposure I’d had to gambling was the occasional friendly late night nickel/dime/quarter poker games you have with friends after a night of partying when you eventually get bored and have nothing else to do. Well, that was then – nowadays I’m upping my housewife potential by learning how to ... More About: Gambling
Catching SoapClient Errors
2011-02-01 19:03:00 I recently wrote a PHP script that uses SoapClient to connect to a SOAP server to verify username/password credentials for a monitoring system. The script basically returns the result as a yes or no – however, as we all know with SOAP, when you hit an error you get a mess of crap that comes ... More About: Errors
One of Those ?Ksplice Saved Our Asses? Moments
2011-01-15 07:01:00 There comes a time in every sysadmin’s life when you realize that as long as you have your job, you’re never going to have a life have friends sleep have a break from all the madness When you fix server A, server B breaks. When you patch exploit 1, exploit 2 strikes threefold. And to ... More About: Moments
Simple Way to Parse an x509 Certificate with PHP
2010-11-03 16:07:00 PHP has a nifty little function for parsing an x.509 SSL certificate into an array to easily pull out the elements: openssl_x509_parse .Essentially, all you need to do is load up the contents of the certificate, either through a file or POST value, and enclose it in the array. Here’s a simple script: <?php $sslcert ... More About: Simple
Dear , It?s not your IP ? Your Site Is Just?Unpopular
2010-09-10 03:02:00 At least twice a month I get an all so familiar request from hopeful customers looking to boost their Internet presence: “Yea, I’m going to need about a bazillion IPs for all my sites. Oh, and they all need to be on different subnets. Ya know, SEO shit. I’m going to make it to the ... More About: Site
Wireless BroadBand vs. Home Broadband?
2010-09-08 02:35:00 According to www.broadbandexpert.com.au, there has been a 45% rise in sales of wireless broadband plans in Australia during 2009, after a huge rise in popularity of mobile broadband sales in European countries during 2008 and early 2009. While wireless broadband is clearly not yet a full replacement for home broadband service, it isn’t suitable by ... More About: Wireless , Broadband , Home
Review of ReclaiMe Data Recovery Software
2010-08-06 04:06:00 We all know how much it sucks to have a hard drive fail – months or even years worth of data down the drain. And I bet you don’t do regular backups, do you? I came across ReclaiME from a review site. It’s software (that unfortunately only works on Windows) that you can install on ... More About: Software , Recovery , Review , Data , Data Recovery
Using PHP to Extract Image Exif Data
2010-08-02 14:24:00 Those of us fluent in digital photography have come across the term “Exif data” numerous times when it comes to software we use to digitally manipulate photographs. Exif (Exchangeable image file format) data is generally used to identify the properties of the camera that snapped a picture, and usually the software that altered it afterwards. ... More About: Data , Image
Simple PHP Script for RBL Checking
2010-07-16 22:43:00 It’s useful for ISP’s and email service providers to run occasional RBL checks against their IPs to know when they are being blacklisted by populate CBL services. I’ve written a simple script that utilizes the DNSBL pear library to check against common blacklists, when given a list of IPs in a file. First, you need ... More About: Script , Simple
Using PHP to Perform DNS Lookups
2010-06-30 18:29:00 PHP has a couple DNS functions you can use to perform record lookups. Most of us are familiar with the two basic ones – gethostbyname() and gethostbyaddr(), both of which perform a single function – returning a hostname or IP address. Here’s an example of both: <?php $ip = gethostbyname("v-nessa.net"); $host = gethostbyaddr("69.174.114.71"); echo "v-nessa.net ...
This Week?s Sexy Articles
2010-06-04 16:41:00 The Developer Obsession with Code Names – Pingdom Website feeling overweight? Slim it down with Smush.it – Diary of a Ninja Really Useful Tutorials You Should Have Read in May 2010 – W3 Avenue Beautiful and Useful 404 Error Pages for Inspiration – 6 Revisions 15 Great Content Management Systems for Designers – Design Tutorials ... More About: Articles , Sexy , Week
The Fine Line Between Spam and Email Marketing
2010-06-03 21:26:00 If I had a Viagra pill for every time I confronted a spammer who pulled the “email marketing” excuse… There’s no debate, no exceptions, and no justification. If you’re sending out massive amounts of unsolicited email, you’re a spammer. Period. You’re not running a legitimate or respected marketing campaign, you’re not helping anyone with their ... More About: Marketing , Spam , Email , Email Marketing
Programming Tip: Assume Your Users are Idiots
2010-05-31 05:52:00 Any programmer knows the golden rule of programming – no matter how well you’ve coded an application, there’s always going to be something wrong with it. I’ve done enough development work to have a lasting suspicion that if there’s a bug or hole to be found, someone will stumble upon it and rub it in ... More About: Programming , Idiots
ReviewMe Had an Oopsie
2010-05-29 16:59:00 There’s a common understanding in the developer community that when you’re testing code, don’t do it on a live site. And if you do, make sure it’s transparent to the user. This faux pas tends to be unforgivable when you’re a major review site getting thousands of hits per day. I hope I don’t get ...
WHM APF Plugin
2008-06-06 06:48:00 I’m happy to announce my first ever perl-written plugin for WebHost Manager, which was developed by myself and one of my fellow sysadmins at InMotion Hosting. The first release is available here: Download v.1.05 To explain a little bit of background here, many hosting companies that give some sort of **** about security will leave SSH ... More About: Plugin
Sexifying WHM with XML API
2008-05-07 11:33:00 I don’t know about you other cPanel system admins out there, but I find WHM to be very useful for the more advanced and time-consuming tasks, such as installing SSL certificates. However, the easy stuff like changing an account’s package and resetting passwords is a royal pain in the ass as far as convenience ...
Nomao is Probably the Sexiest Thing I?ve Seen All Week
2008-05-06 11:58:00 I came across nomao.com today and I must say that it’s probably the best non-social networking site I’ve see so far. It’s basically a website where you sign up and add your favorite hot spots and important locations so your friends can look at your profile and get directions to wherever. It’s kind ... More About: Week , Thing
The Big 21
2008-04-21 17:42:00 Well, my 21st birthday is finally here…yay! Of course, all that means to me is that I can now do everything I’ve already been doing for the last four years, only now I’d be doing it legally. So happy birthday to me, I’m getting plastered tonight. FYI, no pics yet — the party is ...
The Super-Duper Way to Run Backups
2008-04-15 08:49:00 I often worry about my PC at work — it’s about 3 or 4 years old now and I’ve already crashed it twice by running Ubuntu updates and not letting them finish. Luckily I have my home drive mounted as a separate partition so reinstalling the OS isn’t a huge inconvenience aside from having ... More About: Super , Backups , The Super
An Investigation of Sexual Chocolate
2008-04-14 12:39:00 My phrase last week was “sexual chocolate” — I have no idea where I heard it from or why I had such an urge to repeat it and linger on the laughter and dirty looks. I though it was something like chocolate that you use during, um, relations, but it appears that I was sooooo ... More About: Chocolate , Investigation , Sexual
Moving Towards PCI Compliance with cPanel
2008-04-14 11:31:00 Those of you who are server admins or use certain merchant services know what I’m taking about — it’s that dreaded security scan that picks apart your server to tell you everything that it thinks is wrong, assuming you have the knowledge or access to fix it: yes, the PCI scan. PCI compliancy ... More About: Moving , Compliance
I got Blogged-eded.
2008-03-27 19:47:00 …And for the first time I had my clothes on during. The good people over at blogged.com ranked me at an 8.2 out of 10. I never even heard of blogged.com until I got an email from one of their editors yesterday stating: “We evaluated your blog based on the following criteria: Frequency of Updates, ...
Alternative PHP Caching FTW
2008-03-27 13:24:00 We get a TON of requests for the PHP APC pecl module because after having adopted suPHP into our configuration, eAccelerator is worthless. It’s quick to install, and especially if you’re running suPHP or phpsuexec, each user can maintain their own settings within their local php.ini without me having to do anything — basically ... More About: Alternative , Caching
Someone?s Got the Internet AIDS?
2008-03-23 14:05:00 I knew something was fishy when I got an IM from my ex whom I haven’t spoken to in over a year on bad terms: hey How are you???? this is ur pic rite?! http://www.msn-gallery.com/gallery.php?us er=blue_butterfly21.jpg Worse enough I can’t believe I clicked on that shit.. I thought maybe it was one of those pictures from the amateur ... More About: Internet , The Internet , Aids
Capone is Blood-Hungry
2008-03-08 16:26:00 My house is right in front of the Tallwood woodlands so it’s not uncommon for me to wake up to find possums, squirrels, and raccoons in my garage or upstairs where they come in through the attic. There’s also the rare occasion of snakes on the patio and in the trash cans. ... More About: Blood , Hungry
Rejected Tax Return?
2008-02-11 06:49:00 For the last four years by dad has been filing my taxes for me so I was all proud to be doing them myself this year…that is, until I got a letter from the IRS stating that I’d miscalculated my Federal tax return and I have another chance to get it right before they order ... More About: Return , Rejected
The Return of Stylish Web Design
More articles from this author:2008-02-02 04:39:00 Not everyone has the talent or patience required to design a good site. I’ve been referring people to template services for years, but I recently came across this site that caught my eye. What sucks about most design services is that their sites are not caught up enough with the modern Web 2.0 ... More About: Web Design , Design , Stylish , Return , The Return 1, 2, 3, 4, 5 |




