PHPJavascript

Web Development Guide – My Personal Library of Tutorials and Scripts

PHP wallpapers

November3

Download

Wallpapers are similar to photo gallery. Its actually the same thing the only addition is the two resolutions (800 and 1024)

We are writing this script for our dedicated user Lavanya.

Demo

Click here to view the demo.

Code

Copy paste the following script:


and save this page as wallpaper.php

Open a new file and type the following:

<?
$id=$_REQUEST["id"];
?>
<img src="1024/<?echo $id?>.jpg">

save as image1024.php

Open a new file and type the following:

<?
$id=$_REQUEST["id"];
?>
<img src="800/<?echo $id?>.jpg">

save as image800.php

Make two folders 800 and 1024. Place wallpapers of resolution 800×600 in folder 800 and 1024×768 in folder 1024.

Place small image in the folder where you have saved wallpaper.php

Download the script from top of the webpage.

Now if you want to add next previous navigation system to the wallpaper gallery. Click here to view photo gallery script and upload the same to the script you have just created.

If you want to learn how to build an interface to upload the wallpapers. Click here to view the script to upload images for a photo gallery.

posted under PHP

Email will not be published

Website example

Your Comment:

 

2,885 spam comments
blocked by
Akismet