Search found 86 matches

by Tony
Sun Nov 29, 2009 4:27 am
Forum: PHP & MySQL
Topic: How to copy php.ini file to all folders
Replies: 0
Views: 1785

How to copy php.ini file to all folders

You can find another Tip on this page for how to create a custom php.ini file. But after you create it, many hosts will require you to put a copy in each directory. This script makes it easy. It will copy the php.ini file from your main public directory and put one in all the subdirectories. If you ...
by Tony
Sun Nov 29, 2009 4:25 am
Forum: PHP & MySQL
Topic: How to create a custom php.ini file
Replies: 0
Views: 2483

How to create a custom php.ini file

You may want to use a custom php.ini file in order to change some of the host defaults. For example, you should ensure register_globals = off for improved script security. If you copy the default host file, make changes, and then put it in your webspace, you may not know if your host makes further c...
by Tony
Sun Nov 29, 2009 4:21 am
Forum: Web programming
Topic: How to calculate Time Until using Javascript
Replies: 0
Views: 1919

How to calculate Time Until using Javascript

Change the date in the variable futureDay and this script will provide days, hours and minutes until that day. <script type="text/javascript"> futureDay = new Date("February 27, 2010"); // set time variables today = new Date(); timeDifference = (futureDay.getTime()-today.getTime())/1000; // in secon...
by Tony
Sun Nov 29, 2009 4:18 am
Forum: PHP & MySQL
Topic: How to show Weather using PHP
Replies: 0
Views: 2256

How to show Weather using PHP

Get ad-free weather conditions from the National Oceanic and Atmospheric Administration. This following script can be used as an example and modified to fit your site. Instructions are embedded in comments in the script. w.PNG <?php // get the available xml file name for your area from // http://www...
by Tony
Sun Nov 29, 2009 4:09 am
Forum: PHP & MySQL
Topic: How to make CAPTCHA using PHP
Replies: 0
Views: 1709

How to make CAPTCHA using PHP

A CAPTCHA (an acronym for "Completely Automated Public Turing test to tell Computers and Humans Apart", trademarked by Carnegie Mellon University) is a type of challenge-response test used in computing to determine whether or not the user is human. This CAPTCHA script presents a distorted image with...
by Tony
Sun Nov 29, 2009 4:07 am
Forum: PHP & MySQL
Topic: How to make 404 Error Page (with reporting and logging) us
Replies: 0
Views: 1783

How to make 404 Error Page (with reporting and logging) us

This Custom 404 PHP script will display an error page. It can also send you an email and/or log all the relevant information when there is a 404 error. This is useful for notifying you of bad links to your site and it is also a great debugging tool, notifying you of your own invalid references. You ...
by Tony
Sun Nov 29, 2009 4:04 am
Forum: PHP & MySQL
Topic: How to make a Visitor Counter using PHP
Replies: 0
Views: 1881

How to make a Visitor Counter using PHP

This simple script creates an image that can be used on any page to display a visitor counter. A session variable is used to ensure that the counter only advances once per browser session (the most accurate way to count website visitors). In your html, put an <img> tag for the image, such as the one...
by Tony
Sun Nov 29, 2009 4:00 am
Forum: PHP & MySQL
Topic: How to Resize Images (create thumbnails) using PHP
Replies: 0
Views: 1654

How to Resize Images (create thumbnails) using PHP

This script will take any image and automatically create a thumbnail of any size you want. The instructions for using this script are in the comment lines at the top of the script. <?php // this script creates a thumbnail image from an image file - can be a .jpg .gif or .png file // where $thumbsize...
by Tony
Sun Nov 29, 2009 3:59 am
Forum: PHP & MySQL
Topic: How to Watermark Images using PHP
Replies: 0
Views: 1707

How to Watermark Images using PHP

The best way to protect your images is to watermark them. But that can be a real hassle. This script will take any image and automatically add a watermark before it is delivered from the server to the person's browser. The instructions for using this script are in the comment lines at the top of the...
by Tony
Sun Nov 29, 2009 3:57 am
Forum: PHP & MySQL
Topic: How to specify a return-path for generated mail using PHP
Replies: 0
Views: 2065

How to specify a return-path for generated mail using PHP

You may want to specify a return-path for your website generated mail. This is the address to which rejected mail will be returned. This is very different from a return address. You can specify the return-path by using the -f parameter in the mail() function or specifying the -f parameter as a defau...

Go to advanced search