Generate QR Codes with php (EASY)

There you go, a function that will generate a QR Code with the help of a function hosted on the Google API servor. function generate_qr($url, $size ='150', $imgsize = false, $EC_level='L', $margin='0') { $url = urlencode($url); ... 

MySQL variant for PHP’s in_array

So you have an array, let’s call it $array. $array = array('one', 'two', 'three'); And you want to do a MySQL query that will check if one of the values in the array are present or similar or whatever. In PHP it would look like this: if... 

Fetch MP3 Tags from Last.fm Using PHP

Today I’m gonna show you a script that I did for a project of mine that fetches the tags from LastFM and updates the database inserting the top 5 tags from their database and leaves your tags as they are. I believe it could be a lot less messy but I am too lazy... 

Help me Test my Mailing List System

I’m developing my very own mailing list system and need you to help me test it All you have to do is subscribe to it on the right, it is free, quick and doesn’t hurt (you will also get a verification email, which you should check and click the link included). Since... 

Make Your Titles Dynamic with PHP

When developing your website, if you want to rank well in search engines it is crucial that you use different titles for every sub-page you’ve got online. This is because these search engines (Google, MSN etc) love your titles and categorize your site based on... 

Use PHP to Fetch an Album Artwork From Amazon

It’s actually pretty easy once you find out how to do it. By having the artist and album name you can fetch the album artwork from Amazon in three different sizes. With php5 it’s very easy since it has an integrated xml parser. All we have to do is this:  Read More →

Check if A Number is Even or Odd with PHP

I’m going to show you a very simple method for finding out if a number is even or odd in php. You could use this for many things but usually this is mostly used when you have a, let’s say, table and you want to color the background of every second row differently. The... 

Simple Way of Implementing BBCode with PHP

When posting on forums, we usually use BBcode for styling our texts. When developing webpages, if we want to let our users style their profiles but don’t want to give them permission to style directly with CSS or html (<strong> etc..), we could simply use... 

2 Methods for Finding File Extensions in PHP

Two very simple methods for getting to know which is the file extension of the file, using two very simple PHP functions. 1. Method: function end The end function finds the last member of an array. So if we want to get the file extension, we will first explode our filename... 

Use PHP To Display Page Content (LMAWT part 2)

If you missed the previous posts, you can read the Introduction and First part to catch with us. What we are going to do today is make our links work and display the content depending on what link we click. First let’s make our links go live. In our final result... 

« Previous Entries