Posts in the "Scripts" Category

  • 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...
  • 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 are going to observe how to use PHP to generate thumbnails for us. A thumbnail is a smaller size and usually smaller quality of an image shown as preview or link to the original image. Thumbnails can be very useful for faster loading times and quicker display of images on your web pages [...]

    Read More...
  • Here is a nice feature to add to your web pages during the holiday season. Falling snowflakes are very simple and yet a great eye catcher to new visitors to your website. Here is the snowflake gif I made for this: Now, to makeĀ  the effect of the snowflake falling on the webpage we will [...]

    Read More...
  • I’ve made an easy to use file hosting script that is free for download. It has some nice features such as: Allowed file extensions. File size limit. Generated file names. BBcode, IMG code, Url, etc. Terms of Conditions Generated file names on the server are created using the functions rand() and the md5() hash generator. [...]

    Read More...
  • A cookie is a small file that the server embeds on the user’s computer. This data is sent and recieved with each browser that is used to view a page using cookies. To create a cookie in PHP use the setcookie() function. Here is its syntax: setcookie($name, $value, $expire, $path, $domain); So if you want [...]

    Read More...
  • To connect to a Mysql database you need a few things first. Of course you need to have the database created with a name you make up as well as the username and password of the mysql account that can connect to that database. This is very simple if you are using web managing software [...]

    Read More...

bgallz.org is for training purposes only. Its content is to be used at the risk of the user. We do not guaruntee its accuracy.