8
2011
Subnet Calculator in 9 Lines of PHP
I’ve been spending a lot of time studying for my Microsoft 70-642 exam, an important part of which is subnetting.As an intellectual exercise I wrote a subnet calculator. Enjoy: 1 2 3 4 5 6 7 8 9 function subnet($hosts) { $bits = decbin($hosts) + 2; // Add 2 for Network ID and Broadcast $hostBits = strlen($bits); // find how many bits it takes to represent it $cidr = 32 – $hostBits; // Find slash-notation [...]
21
2011
Use a Frame-Busting Redirect To Authorize Facebook Applications
While developing a new Facebook application I stumbled upon a very common app development bug: redirecting users to authorize your app from within an Iframe-based Facebook application. This post explains how to easily solve the problem
13
2011
Making the PHP Curl Extension Work on Windows
Earlier tonight I was setting up some development tools on my new laptop and ran across a problem that I had never seen before. When I began testing an application that uses the Facebook API (which depends on the CURL library), PHP insisted that the CURL extension was not loaded. I checked and double-checked that my php.ini file was correct (it was) and that the rest of my extensions were loading (they were). Finally after [...]
15
2010
Removing Keys from an Array in PHP
Every wish PHP had a function like array_remove_keys() to delete one or more keys and their values from an array? This post shows you how to construct one using just a couple of lines of code.
2
2010
6 Reasons I Chose A2Hosting
This post describes six actual experiences that I’ve had with A2Hosting and other hosting companies which has made me a loyal customer of their Reseller hosting packages.
Categories
- Acrobat
- Active Directory
- Basic Concepts
- Blogging
- Crash Course: Home PC Maintenance
- Developement
- ExtJS
- Games
- Get Help
- Hardware
- HTML
- Internet
- JavaScript
- jQuery
- LAN Administration
- Linux
- Microsoft Security Essentials
- Networking
- NOAH
- Opinion
- OS Deployment
- PHP
- Portfolio
- PostgreSQL
- Product Reviews
- RoundCube WebMail
- Scripting
- Security
- Site News
- Software
- Software Updates
- Videos
- Web Browsing
- Windows
- WordPress
- WordPress
- WordPress Plugins

An article by
.jpg)