Page 55 of 58

How to preload images using javascript

Last updated on December 27th, 2022 at 11:18 amUsing this script we can preload an image in to the webpage and display it when needed. Once you click the Show Image button the image will display immediately with out any delay as it comes from the cache (preload). If your internet connection is slow then […]

How to upload file using PHP

Last updated on December 28th, 2022 at 09:51 amThe script below can be use to upload a file to the server. You can make of this script to provide your visitors an option to upload to you web application. This script allows any files to be uploaded(Caution: Make sure that you are strictly checking contents […]

How to cache web page using php

Last updated on January 28th, 2022 at 05:34 pmIn the modern days, most of the sites are database driven. That means that your site is actually an application which retrieves data from a DBMS ( database management system, eg MySQL) , parses the data and shows the result to the user. Most of these data […]

How to create hit counter using php

Last updated on November 8th, 2024 at 12:34 pmThis code reads a number from a file, increments it, saves the new value back into the file, and displays it. Each time the script runs, the counter in hits.txt increases by 1. However, this approach requires hits.txt to have write permissions, and concurrent access might lead […]

« Older posts Newer posts »