Displays a random image on a web page. Images are selected from a folder of your choice.
* Name your images 1.jpg, 2.jpg etc.
* Add this line to your page where you want the images to
* appear: <?php include “randomimage.php”; ?>
// Change this to the total number of images in the folder
$total = “11”;
// Change to the type of files to use eg. .jpg or .gif
$file_type = “.jpg”;
// Change to the location of the folder containing the images
$image_folder = “images/random”;
// You do not need to edit below this line
$start = “1”;
$random = mt_rand($start, $total);
$image_name = $random . $file_type;
echo “<img src=\”$image_folder/$image_name\” alt=\”$image_name\” />”;
PHP: Random Quote
Make a file called quotes.txt
Put each quote on it’s on line.
Here’s a script:
File Browse without button
<title>File Upload Example</title>
document.frmUpload.txtFakeText.value = document.frmUpload.myFile.value;
<input type=”file” name=”myFile” style=”display: none”>
<input type=”text” name=”txtFakeText” readonly=”true”>
<meta http-equiv=”refresh” content=”5;URL=windowmove.html”>
for (i = 10; i > 0; i–)
for (j = n; j > 0; j–)
Communicating by using an instant messaging (IM) program has some of the same security and privacy risks as e-mail, but there are a few unique dangers that you should be aware of.
- Never open pictures, download files, or click links in messages from people you don’t know.
If they come from someone you do know, confirm with the sender that the message (and its attachments) is trustworthy. If it’s not, close the instant message.
- Be careful when creating a screen name.
Each IM program asks you to create a screen name, which is similar to an e-mail address. Your screen name should not provide or allude to personal information. For example, use a nickname such as SoccerFan instead of BaltimoreJenny.
- Create a barrier against unwanted instant messaging.
Do not list your screen name or e-mail address in public areas (such as large Internet directories or online community profiles) or give them to strangers.
Some IM services link your screen name to your e-mail address when you register. The easy availability of your e-mail address can result in your receiving an increased number of spam and phishing attacks.
- Never provide sensitive personal information,
Such as your credit card numbers or passwords, in an IM conversation.
- Only communicate with people who are on your contact or buddy lists.
- If you decide to meet a stranger
That you know only from IM communication, take appropriate safety precautions. For example, do not meet that person alone, (take a friend or parent with you), and always meet and stay in a public place, such as a cafe.
- Don’t send personal or private instant messages at work.
Your employer might have a right to view those messages.
- If you use a public computer,
Do not select the feature that allows you to log on automatically. People who use that computer after you may be able to see and use your screen name to log on.
- Monitor and limit your children’s use of IM.
- When you’re not available to receive messages,
Be careful how you display this information to other users. For example, you might not want everyone on your contact list to know that you’re “Out to Lunch.”