Simple PHP Calendar Script
Here is a simple PHP calendar script that can be easily customized and designed with CSS. Continue reading “Simple PHP Calendar Script” »
Here is a simple PHP calendar script that can be easily customized and designed with CSS. Continue reading “Simple PHP Calendar Script” »
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” »
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” »
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” »
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” »
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.
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” »
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” »
DateFormat is a PHP class for easily displaying timestamps in a PHP project, along with displaying a “time since” feature, much like the one used on Facebook and other sites. A demo of the class is available in my script playground: glamanate.com/playground/DateFormat/.