30th Nov2011

Tips for Google Maps and Mobile

by mglaman

When developing web applications it is always wise to use the most up to date APIs and know when to scale back on certain functionality.  Google just posted a blog entry stating four mobile web app tips when using Google Maps. Basically it runs down to use API v3, Static API usage, StreetView Images, and JS Map usage.

Continue reading “Tips for Google Maps and Mobile” »

28th Nov2011

Mobile Geolocation

by mglaman

With the new wave of mobile devices being a major way to access the Internet, it has become possible to customize web applications based on a user’s location – or create web applications based on user location. This example will show you how to get a user’s location, pull up a static Google Map, and the query a database for locations within one mile of the user’s location. Continue reading “Mobile Geolocation” »

28th Nov2011

Google+ API and Library

by mglaman

Google+ has released a rough outline on their API for accessing data.  The Google+ API only allows for read-access to data, but this will still allow you to integrate a visitors social features around Google+.  API calls can either be completed via an API key or an OAuth 2.0 token for user data.The Google+ API follows a typical REST design involving HTTP GET on many API calls and the results are in JSON format. Continue reading “Google+ API and Library” »

27th Nov2011

Google+ Profile and your Blog

by mglaman

Google just made it easy to link your Google+ profile to your blog or other articles. Simply ensure to put a link to your Google+ profile with a rel=”author” tag.

<a rel="author" href="https://plus.google.com/101530880977549569019/" title="Google+ Profile">
26th Nov2011

Sanitize Text for SQL

by mglaman

Cross Site Scripting (XSS) and SQL Injections are some of the biggest security threats to a PHP application.  Every developer has different ways of preventing SQL Injections or malicious JavaScript from being inserted into the database. Here are some easy solutions to help safeguard your PHP applications. Continue reading “Sanitize Text for SQL” »

26th Nov2011

Setting Cookies with PHP

by mglaman

If you plan on building a PHP application, you’ll probably end up using cookies, especially if there are user accounts. Cookies will allow you to store specific data for a certain amount of time. Here are some tips and tricks to make sure you do not run into too many problems. Continue reading “Setting Cookies with PHP” »

26th Nov2011

EasyPHP – WAMP environment

by mglaman

The easiest way to learn PHP is to be able to create and edit code and see instant results. When I was younger and learning I couldn’t afford to have my own web server so I installed a WAMP environment – I also didn’t have a spare machine laying around to toss Linux on. Unfortunately I never heard of EasyPHP until a bit ago, it was originally released in 1999, but you can Wikipedia that. What EasyPHP does it streamline the process of setting up Apache, MySQL, and PHP and installs phpMyAdmin along with other modules if you choose. The best part is that EasyPHP is portable and can be taken where ever needed to develop some code.

I actually just reinstalled EasyPHP to make some of my projects that much easier; and, as I said I recommend all budding PHP developers to head over to their website and check it out.

24th Nov2011

PHP Mail Class

by mglaman

Mailer is a PHP class to help provide easier use of the PHP mail() function and error support. In all other of my scripts using the mail() function I would have lines upon lines of code just to make sure every thing sent right and provide my own error checking. This helps cut down on that process.  Continue reading “PHP Mail Class” »

24th Nov2011

PHP Server Variables

by mglaman

I know when I first started out learning PHP it was difficult finding good examples or live demos of simple PHP in use. Often I’d have a large number of files used to demonstrate built in PHP functions. So, to help any budding PHP developers out there I compiled a list of the PHP Server variables along with what data they provide.  Continue reading “PHP Server Variables” »

12th Nov2011

jQuery Contact Form

by mglaman

I’ve finally started to dive into jQuery. I figured what better way to start than to make a contact form.  Check out the demo.

Continue reading “jQuery Contact Form” »