Many times when you upload a image somewhere you want to resize it to different dimensions based off of a maximum width or height. Here is a simple script that does this for you, using a HTML form and a PHP script. We start with the PHP script that will run if our $_GET['do'] is [...]
Read More...-
-
I decided to make a free easy to use favicon generating script that uses PHP. The script has a few features and requirements when uploading your image to be converted to a favicon. First the script checks for a few things such as file type, file size, and the specified dimensions. You can create a [...]
Read More... -
Here is a very simple function to use to ordinalize numbers in PHP. This adds the place value suffix to numbers. So you can turn numbers like 1, 2, 3 into 1st, 2nd, 3rd. Here is the code: function ordinalize($int){ if(in_array(($int % 100),range(11,13))){ return $int . "th"; } else { switch(($int % 10)){ case 1: [...]
Read More... -
Let’s say you want to have a simple HTML <select> form as a drop down for rows in a Mysql table. This could be for things like categories, pages, games, anything you want to have in a drop down to navigate to another page or submit a form. What ever the case is, I’m going [...]
Read More... -
The error_reporting() function determines what errors are reported from the current script. Here is the syntax for this function: Syntax error_reporting(report_level); The report_level parameter is optional and specifies what report level to report for the current script. This can be set by its numeric value or its constant name, however for future versions of PHP [...]
Read More... -
After their first released EP in 2008 – “I Just Want to Be Pure” – Balance and Composure released a new EP titled “Only Boundaries.” Although this CD only has four tracks they are quite amazing. Written in October of 2009, Blake Solomon describes this EP as “The most memorable 4-song feast of 2009.” The [...]
Read More... -
Drop down menus are very useful for navigation on websites and for holding many links to pages on your site without taking up much space on your web pages. Using just CSS and Javascript we can make a nice simple drop down menu you can put on your web page. To do this we’ll have [...]
Read More... -
Here we’re going to take a look at variables inside and outside of PHP functions. It is very easy to make one error with a function and have it return the wrong value. We’re going to make a simple function named “func1” which we’ll tweak a bit to show how variables are used inside and [...]
Read More... -
Such Gold — Stand Tall EP Genre: Pop Punk / Hardcore Year: 2009 Mightier Than Sword Records Tracklist: 1. Four Superbowls, No Rings 2. You Always Know What’s Best 3. What’s Left Of You 4. The Greatest Comeback Of All Time 5. Stand Tall Visit Such Gold’s myspace here! Get this album on iTunes! You [...]
Read More... -
In this post I am going to show you how to make a cool link bar for your website with Photoshop. Link bars are very important in websites as they provide a clear and easy way for viewers to reach other pages on your site. Basically we’ll make a background image which will be set [...]
Read More...