RSS

Tag Archive | "PHP"

Pagerank Checker Script PHP

Saturday, November 8, 2008

2 Comments

Ive got a Pagerank checking script to share with you. Its written in PHP. From the outside its very simple, however the insides are quite complicated. There are some comments on it but if you are not an experianced PHP programmer you will not understand most of it. To change the site it checks you have [...]

Continue reading...

How To Show A Users IP Address - PHP

Friday, November 7, 2008

3 Comments

Showing a users IP address is very easy. We use a function called getenv ( ) to do so. Here is the code: <?php echo getenv('REMOTE_ADDR'); ?> Simple as that… Heres a demo please wait...Rating: 9.1/10 (7 votes cast)

Continue reading...

Simple Random Advert Rotator Tutorial - PHP

Wednesday, November 5, 2008

1 Comment

In this tutorial Im going to show you how to make a random advert rotator. The way we are going to do it is through an array to define our adverts then use an array function to shuffle the array. So the first thing we need to create the array… $adverts=array('<a href="http://www.website.com"><img src="image.gif" alt="" /></a>'=&gt;'1','<a href="http://www.website.com"><img src="image.gif" alt="" [...]

Continue reading...