Facebook Twitter Reset

Change webpage background color using javascript

Hello guys, i am back again with yet another simple but interesting tutorial of changing webpage background color using javascript, just copy and paste it to your webpage and customize it according to your webpage design. <script language="javascript"> ...

Force download files using php

Hello guys here is a simple yet powerful script that allows you guys to force the users download some files with the dialog box Do you want to open or save the file, just copy paste the script below. <?php header(“Content-type:application/octect-stream”); header(‘Content-Disposition:...

Password protect pages using javascript

Hello guys here is a simple code on how to password protect a webpage using  javascript.This is not a good idea coz it is not at all secure.But simply just like that a webpage which is protected using simple javascript is fun. <script...

Simple Ajax with PHP click tracker

This tutorial shows how to track your vistors click using simple php and Ajax To implement the click tracking tool we need to create 2 files: Demo.html: This file contains the html with the links and the Ajax code. clickTracker.php: This files...

Warning: session_start(): Cannot send session cookie headers already sent

Some times when you intergrate your existing wordpress blog with an external website or at times when you go for something like <?php require_once('body.php'); ?> 2.php <?php session_start(); ?> in your webpage, you will be getting...

Adding a draggable div along with the cursor using simple javascript

In this tutorial we can see how to add a draggable div along with the cursor using simple javascript. Only some simple javascript included and you can just copy and paste it in to a webpage you want the draggable content to be displayed. DEMO <html> <head> <meta...

How to avoid direct access to a file in php

If you don’t want users to access some files directly from browser then you can simply use following php script on top of such files. Let us take one file named MYFILE.PHP as an example, all you have to do is just add the below code on...

Simple php watermark script

A very simple script that watermarks an image with a PNG file using php.Just save the below script and run it on your browser.Thats it.Make sure of the path [image and thePNG watermark] < ?php //just save this file as <sumname>.php...

Create thumbnail using php and gd library

The following PHP code will create thumbnail images on the fly and since it uses the PHP GD2 library, you will need an installation of PHP with at least GD 2.0.1 enabled.. This is a very simple script and very easy to customise. <?php header (“Content-type: image/jpeg”); $image = $_GET['thumimg']; if(!isset($w) && !isset($h)){  $w...

Using no-cache for Stop Caching in Firefox and Internet Explorer

You can prevent any caching in IE by simply setting this response header: Cache-Control: no-cache Pages that use this header aren’t stored in the cache and IE will always reload them from the server; even if you use the Back button to reach...

How to split a word or sentence delimited with slashes, commas or hyphens

How to split a word or sentence delimited with slashes,commas, dots, or hyphens < ?php // Delimiters may be slash, comma, or hyphen $data = “Welcome to, the world of php”; list($first, $second) = split(‘[/,-]‘, $data); echo...

Find Absolute Path Of A File Or Directory Using PHP

The absolute path for a file or directory is not the same as the URI.  The absolute path on the web server is/home/DIR/Xs/something/mydir/. Here is how to find the absolute path on your web host for a given directory if you can’t find it,...

Close Event In Javascript Using OnUnload()

Close Event In Javascript Using OnUnload fuctions, its pretty simple.Check this out. <html> <body onunload=check()> <script type=”text/javascript”> function check() { a = “Mistonline.in” alert(a) } </script> </body> </html> Thanks...
Affordable Seo PackagesSeo BlogEdu Backlinks