22nd Jan2012

Simple PHP Calendar Script

by mglaman

Here is a simple PHP calendar script that can be easily customized and designed with CSS. Continue reading “Simple PHP Calendar Script” »

11th Dec2011

Bootstrap from Twitter

by mglaman

Need to do a quick web site but strapped for time? Twitter has a whole bunch of open source projects they have released, and one of them is called Bootstrap. It comes preloaded with CSS styles and simple JavaScript plugins. I’d have to say the best part about it is the predefined layouts, or the ability to make them even faster.

05th Dec2011

jQuery Rating Script

by mglaman

For KenoBarNight I just added a simple rating system mocking that of YouTube and others; a simple “I Like It” or “I Don’t Like It”. Use whatever verbage you’d like, that is what this script does. The user clicks one of the buttons, and the script POSTs the data to a PHP script which saves a MySQL entry so we can do some math later and find a rating. Continue reading “jQuery Rating Script” »

04th Dec2011

Achievements – Winning the Internet

by mglaman

Achievements seem to be popping up in every new web service. Why? Because achievements make you win the Internet. Okay, not really, but it does make your user feel more engaged into your web site. It gives the user a reason to use your site and do more things on your site. The best part is the achievements do not even need to be all that difficult. Really the hardest part about implementing an achievement system into your web site is finding a good graphic designer to whip up some images. Continue reading “Achievements – Winning the Internet” »

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” »

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.

Pages:12»