Oct 9, 2013

How to Create a Simple Image Gallery Using PHP Script

By With No comments:

It is easy to create a dynamic image galley using php.

Step 1: Create a folder name your gallery name (let myphotogallery).

Step 2: Create a folder inside the gallery (myphotogallery) folder
name (let images)

step 3 : Now we will create a index.php file inside the photogallery
folder and here we will write our php script.

Gallery File Folder Structer :


Upload image in images folder and open index.php using your browser
 you can see your image gallery is ready.
Just upload image on your images folder dont need to modify your
index.php page gallery will be created automatically.

PHP Code :

/*>>>>>>>>>>>>Gallery Setting>>>>>>>>>>>>>>>>>>*/
$gallery_name="Biswarup Image Gallery";
/*>>>>>>>>>>>>>Generating Gallery>>>>>>>>>>>>>>>>>*/
$total_images=count($images) - 2;
echo "<center><h3>$gallery_name</h3></center>";
echo "<table align=\"center\">";
foreach($images as $image)
        if($image=='.' || $image=='..')
echo "<tr>";

                echo "<td valign=\"top\"><img src=\"$image_dir/$image
\" alt=\"$image
\" height=\"$thumb_height\" width=\"$thumb_width\" /></td>";
echo "</tr>";

echo "</tr>";


echo "</table>";

You can improve this gallery including more feature on
1. Pagination
2. Jquery Effect 

That's all.Share your scripts with us in the comments!

Reliance GSM USSD Codes (Updated)

By With No comments:

Here Is List Of Reliance USSD Codes.

main balance nd validity

Last recharge detail

Activate callertune
Deactivate callertune
Activate miscall  alert
Deactivate miscall alert

Intermet data nd validity

 VAS balance