Nov 21, 2009

E-mail Mailer Script 0.1 - useful for website visitors

free web hosting
Open Discussion > MODERATED AREA > Tutorials

E-mail Mailer Script 0.1 - useful for website visitors

karlo
Are you pissed off when you are putting e-mail in your website, you always get spammers? Well, here's the solution. Just change the default variables to anything that you like, etc... follow the instructions on the script.. Here it is... hope you like it smile.gif

CODE
<?php

//E-mail Mailer Script 0.1 by Juan Karlo de Guzman
//FOR TRAP17 ONLY... DEMO VERSION... DO NOT DISTRIBUTE

header("Content-type: text/html; CHARSET=UTF-8");

$int_rand=mt_rand(1,20);

if($int_rand>10) {
$random_numbers=sha1(mt_rand(11111,99999));
}else {
$random_numbers=md5(mt_rand(11111,99999));
}

$rand_array="hello you can add as many words as you want and this is another way to make a wonderful email address randomly".$random_numbers;

$rand_email=strtolower(metaphone($rand_array));

//Adjust the variables below

$password="password"; //enter your password here

$adminemail="youremail@email.com"; //enter your e-mail address here

$mysql=array("localhost","username","password","karlo_scripts"); //server, username, password, database (change to whatever you like)

$serveremail=$rand_email."@".str_replace("www.",null,$_SERVER[SERVER_NAME]); // do not change this

//If this is your first time, set the $showpassword to true

$showpassword=false;

$pass=sha1($password);

if($showpassword===true) {

die("<div align=\"center\" style=\"font-family: Verdana; font-size: 12px; font-weight: bold;\">Your password is $pass</div>");
}

if($_GET[act]==="reply") {
if(empty($_SERVER[HTTP_REFERER]) || strlen($_SERVER[HTTP_REFERER])<10) {
 die('<span style="font-family: Verdana; font-size: 12px; font-weight: bold; color: red;">You are not allowed to access the message list.</span>');
 exit;
}
if($_GET[admin]==="1") {
 if($_GET[pass]!==sha1($password)) {
  die("<div align=\"center\" style=\"font-family: Verdana; font-size: 12px; font-weight: bold;\">You are not an Admin</div>");
 }
 $isadmin=0;
}else {
 $isadmin=1;
}
doReply();
exit;
}

if(!empty($_GET[msgid])) {
if(empty($_SERVER[HTTP_REFERER]) || strlen($_SERVER[HTTP_REFERER])<10) {
 die('<span style="font-family: Verdana; font-size: 12px; font-weight: bold; color: red;">You are not allowed to access the message list.</span>');
 exit;
}
doList();
exit;
}

$template=<<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<title>{title}</title>
<style type="text/css">
<!--
body {
font-family: Verdana;
font-size: 11px;
color: white;
background-color: black;
cursor: default;
}

input {
border: 1px solid #D4D4D4;
}

#header {
font-size: 16px;
font-weight: bold;
background-color: #1F1F1F;
}

td {
border: 1px solid #35353F;
padding: 4px;
}

table {
border: 1px solid #353F35;
padding: 8px;
}

#msgbox {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100%;
width: 100%;
display: none;
font-family: Verdana;
font-weight: bold;
font-size: 16px;
color: #6A6A6A;
background-color: black;
}
//-->
</style>
<script language="javascript" type="text/javascript">
<!--
function doSend() {
var msgbox = document.getElementById("msgbox");
msgbox.style.display="block";
}
//-->
</script>
</head>
<body>
<div id="msgbox">
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="height: 95%; border: 0px;"><tr><td align="center" valign="middle" style="border: 0px;">Sending your message</td></tr></table>
</div>
{body}
</body>
</html>
EOD;

function echoBody($title,$body) {
global $template;
$template=str_replace("{title}",$title,$template);
$template=str_replace("{body}",$body,$template);
echo($template);
}

?>
<?php

function error_message($message) {
global $msg;
$msg='<tr><td align="center" style="color: #6A6A6A; font-weight: bold;" colspan="2">'.$message.'</td></tr>';
}

function gatherForm($url) {
$form=<<<EOD
<script>
var go = document.getElementById("go");
go.submit();
</script>
<form name="go" action="$url" method="post">
<input type="hidden" name="from" value="$_POST[from]" />
<input type="hidden" name="email" value="$_POST[email]" />
<input type="hidden" name="msg" value="$_POST[msg]" />
<input type="submit" value="" />
</form>
EOD;
return $form;
}

$msg=null;

if(strstr($_GET[action],"error") || strstr($_GET[action],"/code=")) {
$split_code=split("code=",$_SERVER[REQUEST_URI]);
switch($split_code[1]) {
 case "1":
 error_message("The e-mail you provided is not a valid e-mail address.");
 break;
 case "2":
 error_message("Your name must not be less than 10 characters.");
 break;
 case 3:
 error_message("Your message must not be less than 20 characters.");
 break;
 case 4:
 error_message("You must select a Gender.");
 break;
}
}

if($_GET[action]==="send") {
global $isadmin;
$email_check=split($_POST[email],".");
if(!strstr($_POST[email],"@") || count($email_check)<1 || !strstr($_POST[email],".")) {
 header("Refresh: 1; URL=email?action=error.jsp/code=1");
 error_message("Please wait...");
 $tmp=0;
}
if(strlen($_POST[from])<10) {
 header("Refresh: 1; URL=email?action=error.cfm/code=2");
 error_message("Please wait...");
 $tmp=0;
}
if(strlen($_POST[msg])<20) {
 header("Refresh: 1; URL=email?action=error.aspx/code=3");
 error_message("Please wait...");
 $tmp=0;
}
if(empty($_POST[gender])) {
 header("Refresh: 1; URL=email?action=error.py/code=4");
 error_message("Please wait...");
 $tmp=0;
}
if($tmp===0) {
 $sent=false;
}else {
 $sent=true;
}
if($ml===true || $sent===true) {
$msgformat=addslashes("$_POST[from] <$_POST[email]>\n$_POST[msg]");
$msgID=strtolower(metaphone($msgformat));
$sent=<<<EOD
<div style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; display: block; font-family: Verdana; font-weight: bold; font-size: 16px; color: #6A6A6A; background-color: black;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="height: 95%; border: 0px;"><tr><td align="center" valign="middle" style="border: 0px; color: #6A6A6A; font-weight: bold;">Message Sent!</td></tr></table>
</div>
EOD;
$remove_slash1=stripslashes($_POST[msg]);
$remove_slash2=stripslashes("$_POST[from] <$_POST[email]>");
$msg=<<<EOD
$remove_slash1
----------
From: $remove_slash2
IP: $_SERVER[REMOTE_ADDR]
Gender: $_POST[gender]
----------
To reply, go to http://$_SERVER[SERVER_NAME]$_SERVER[SCRIPT_NAME]?admin=1&pass=$pass&act=reply&msgid=$msgID

To see a list of your conversation with Karlo, go to http://$_SERVER[SERVER_NAME]$_SERVER[SCRIPT_NAME]?msgid=$msgID
EOD;

$reply=<<<EOD
Message sent!

Wait for a reply!

To see a list of your conversation with Karlo, go to http://$_SERVER[SERVER_NAME]$_SERVER[SCRIPT_NAME]?msgid=$msgID
EOD;
 $ml=mail("$adminemail","A Message from $_POST[from]",$msg,"From: $serveremail");
 $split_email=split("@",$_POST[email]);
 $splitEmail=$split_email[1];
 $ml=mail("$_POST[email]","Message Sent!",$reply,"From: $rand_email@$splitEmail");
 mysql_connect($mysql[0],$mysql[1],$mysql[2]);
 mysql_select_db($mysql[3]);
 mysql_query("CREATE TABLE IF NOT EXISTS kEmail (id SMALLINT NOT NULL, msgID VARCHAR(75) NOT NULL, msgContent TEXT NOT NULL, author TEXT NOT NULL, gender VARCHAR(6) NOT NULL, PRIMARY KEY(id) )");
 $msg=addslashes(htmlentities($_POST[msg]));
 $from=addslashes("$_POST[from] <$_POST[email]>");
 $q=mysql_query("SELECT * FROM kEmail");
 $count=mysql_numrows($q)+1;
 mysql_query("INSERT INTO kEmail VALUES ($count,'$msgID','$msg','$from','$_POST[gender]')");
 header("Refresh: 2; URL=$_SERVER[SCRIPT_NAME]");
 echoBody("Message Sent!",$sent);
}
if($ml!==true || $sent!==true) {
$sent=<<<EOD
<div style="position: absolute; top: 0; bottom: 0; left: 0; right: 0; height: 100%; width: 100%; display: block; font-family: Verdana; font-weight: bold; font-size: 16px; color: #6A6A6A; background-color: black;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" style="height: 95%; border: 0px;"><tr><td align="center" valign="middle" style="border: 0px; color: #6A6A6A; font-weight: bold;">Message was not sent!</td></tr></table>
</div>
EOD;
 echoBody("Message was not sent!",$sent);
}
}

$main=<<<EOD
<form name="emailform" action="email?action=send" method="post">
<table align="center" width="75%" cellpadding="4" cellspacing="2" border="0">
<tr>
<td id="header" colspan="2" align="center">E-mail</td>
</tr>

<tr>
<td align="right">Your name:</td><td align="left" width="50%"><input type="textbox" name="from" size="35" value="$_POST[from]" /></td>
</tr>

<tr>
<td align="right">Your e-mail:</td><td align="left" width="50%"><input type="textbox" name="email" size="25" value="$_POST[email]" /></td>
</tr>

<tr>
<td align="right">Your Gender:</td><td align="left" width="50%"><input type="radio" name="gender" value="Male" style="border: 0px;" />Male <input type="radio" name="gender" value="Female" style="border: 0px;" />Female</td>
</tr>
$msg
<tr>
<td align="right" valign="middle">Your Message:</td><td align="left" width="50%"><textarea name="msg" rows="5" cols="20">$_POST[msg]</textarea></td>
</tr>

<tr>
<td align="center" colspan="2"><a href="javascript:document.emailform.submit();" style="color: #4F4F4F; font-size: 14px; font-weight: bold;" onclick="doSend();">Send</a></td>
</tr>
</table>
</form>
EOD;

if($sent===true) {
header("Refresh: 2; URL=$_SERVER[SCRIPT_NAME]");
exit;
}

echoBody("E-mail",$main);

function doReply() {
global $isadmin,$pass,$adminemail,$serveremail,$rand_email,$mysql;
mysql_connect($mysql[0],$mysql[1],$mysql[2]);
mysql_select_db($mysql[3]);
$q=mysql_query("SELECT * FROM kEmail") or doInstall();
if(!empty($_POST[reply]) && !empty($_POST[author]) && !empty($_POST[gender])) {
 $q=mysql_query("SELECT id FROM kEmail WHERE msgID='$_POST[msgid]' AND id='$_POST[id]'");
 $b=mysql_fetch_row($q);
 $count=$b[0]+1;
 $msg=addslashes($_POST[reply]);
 mysql_query("INSERT INTO kEmail VALUES ('$count','$_POST[msgid]','$msg','$_POST[author]','$_POST[gender]')");
$reply=<<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<title>Reply</title>
<style type="text/css">
body {
font-family: Verdana;
font-size: 11px;
color: white;
background-color: black;
cursor: default;
}

input {
border: 1px solid #D4D4D4;
}

td {
border: 1px solid #35353F;
padding: 4px;
font-size: 14px;
font-weight: bold;
}

table {
border: 1px solid #353F35;
padding: 8px;
}

//-->
</style>
</head>
</body>
<div style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px; width: 100%; height: 100%;">
<table align="center" width="100%" cellpadding="0" cellspacing="0" border="0" style="height: 95%; border: 0px;">
<tr>
<td align="center" valign="middle" style="font-size: 16px; color: #6A6A6A; border: 0px; height: 100%;">Reply sent!</td>
</tr>
</table>
</div>
</body>
</html>
EOD;
 /*$q=mysql_query("SELECT * FROM kEmail WHERE msgID='$_POST[msgid]' AND id='$_POST[id]' AND msgContent='$_POST'");
 while($fetch=mysql_fetch_object($q)) {
  $count=$fetch->id;
 }*/
 //$count=$count-1;
 $q=mysql_query("SELECT author FROM kEmail WHERE id='$_POST[id]' AND msgID='$_POST[msgid]' AND msgContent='$_POST[msg]'");
 $notify_data=mysql_fetch_row($q);
 $notify_split=split("<",$notify_data[0]);
 $notify=str_replace(">",null,$notify_split[1]);
 if($isadmin===1) {
  $reply_link="http://$_SERVER[SERVER_NAME]$_SERVER[SCRIPT_NAME]?admin=1&pass=$pass&act=reply&msgid=$_POST[msgid]";
 }else {
  $reply_link="http://$_SERVER[SERVER_NAME]$_SERVER[SCRIPT_NAME]?act=reply&msgid=$_POST[msgid]";
 }
 $reply_msg=stripslashes($_POST[reply]);
$msg=<<<EOD
Someone replied to your e-mail.
---------------
$reply_msg
---------------
To reply, go to $reply_link

To see the list of your conversation(s), go to http://$_SERVER[SERVER_NAME]$_SERVER[SCRIPT_NAME]?msgid=$_POST[msgid]

DO NOT REPLY TO THIS E-MAIL!
EOD;
 //$count=$count+1;
 //$count=$count-1;
 //$q=mysql_query("SELECT author FROM kEmail WHERE id='$count'");
 //$q=mysql_query("SELECT author FROM kEmail WHERE id='$_POST[id]' AND msgID='$_POST[msgid]' AND msgContent='$_POST[msg]'");
 if($isadmin===1) {
  $q=mysql_query("SELECT * FROM kEmail WHERE msgID='$_POST[msgid]' LIMIT 2");
  while($fetch=mysql_fetch_object($q)) {
   $admin_email=$fetch->author;
  }
  $q=mysql_query("SELECT author  FROM kEmail WHERE msgID='$_POST[msgid]' AND author='$admin_email'");
 }else {
  $q=mysql_query("SELECT author FROM kEmail WHERE msgID='$_POST[msgid]'");
 }
 $email=mysql_fetch_row($q);
 $split_email=split("@",$email[0]);
 $splitEmail=str_replace(">",null,$split_email[1]);
 mail($notify,"Someone replied",$msg,"From: $rand_email@$splitEmail");
 if($isadmin===0) {
  $q=mysql_query("SELECT * FROM kEmail WHERE msgID='$_POST[msgid]' LIMIT 2");
  while($fetch=mysql_fetch_object($q)) {
   $admin_email=$fetch->author;
  }
  $q=mysql_query("SELECT author  FROM kEmail WHERE msgID='$_POST[msgid]' AND author='$admin_email'");
  $email=mysql_fetch_row($q);
  $split_email=split("@",$email[0]);
  $splitEmail=str_replace(">",null,$split_email[1]);
  mail($adminemail,"Reply sent!","Your reply was successfully sent!\n\nDO NOT REPLY TO THIS E-MAIL!","From: $rand_email@$splitEmail");
 }else {
  $q=mysql_query("SELECT * FROM kEmail WHERE msgID='$_POST[msgid]'");
  //$b=mysql_numrows($q);
  //$count=$b-1;
  $count=mysql_fetch_row($q);
  //$count=$count-1;
  $q=mysql_query("SELECT author FROM kEmail WHERE id='$count[0]' AND msgID='$_POST[msgid]'");
  $notify_data=mysql_fetch_row($q);
  $notify_split=split("<",$notify_data[0]);
  $notify=str_replace(">",null,$notify_split[1]);
  $split_email=split("@",$_POST[author]);
  $splitEmail=str_replace(">",null,$split_email[1]);
  mail($notify,"Reply sent!","Your reply was successfully sent!\n\nDO NOT REPLY TO THIS E-MAIL!","From: $rand_email@$splitEmail");  
 }
 die($reply);
 exit;
}
if($isadmin===0) {
 $author="Juan Karlo de Guzman <01karlo@gmail.com>";
 $gender="Male";
 $q=mysql_query("SELECT * FROM kEmail WHERE msgID='$_GET[msgid]'");
 while($fetch=mysql_fetch_object($q)) {
  $id_data=$fetch->id;
  $msg=$fetch->msgContent;
 }
}else {
 $q=mysql_query("SELECT * FROM kEmail WHERE msgID='$_GET[msgid]'");
 while($fetch=mysql_fetch_object($q)) {
  //$author=$fetch->author;
  //$gender=$fetch->gender;
  $id_data=$fetch->id;
  $msg=$fetch->msgContent;
 }
 $q=mysql_query("SELECT * FROM kEmail WHERE msgID='$_GET[msgid]'");
 $fetch2=mysql_fetch_row($q);
 $author=$fetch2[3];
 $gender=$fetch2[4];
}
$reply=<<<EOD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<title>Reply</title>
<style type="text/css">
<!--
body {
font-family: Verdana;
font-size: 11px;
color: white;
background-color: black;
cursor: default;
}

input {
border: 1px solid #D4D4D4;
}

#header {
font-size: 16px;
font-weight: bold;
background-color: #1F1F1F;
}

td {
border: 1px solid #35353F;
padding: 4px;
}

table {
border: 1px solid #353F35;
padding: 8px;
}

#msgbox {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
height: 100%;
width: 100%;
display: none;
font-family: Verdana;
font-weight: bold;
font-size: 16px;
color: #6A6A6A;
background-color: black;
}
//-->
</style>
<script language="javascript" type="text/javascript">
<!--
function doSend() {
var msgbox = document.getElementById("msgbox");
msgbox.style.display="block";
}
//-->
</script>
</head>
<body>
<div id="msgbox"><table width="100%" cellpadding="0" cellspacing="0" border="0" style="height: 95%; border: 0px;"><tr><td align="center" valign="middle" style="border: 0px;">Replying</td></tr></table></div>
<form name="replyform" action="$_SERVER[SCRIPT_NAME]?$_SERVER[QUERY_STRING]" method="post">
<table align="center" width="75%" cellpadding="4" cellspacing="2" border="0">
<tr>
<td id="header" align="center">Reply</td>
</tr>
<tr>
<td id="body" align="center"><textarea name="reply" rows="15" style="width: 75%;"></textarea><br><input type="hidden" name="id" value="$id_data" /><input type="hidden" name="msgid" value="$_GET[msgid]" /><input type="hidden" name="msg" value="$msg" /><input type="hidden" name="author" value="$author" /><input type="hidden" name="gender" value="$gender" /></td>
</tr>
<tr>
<td align="center"><a href="javascript:doSend();javascript:document.replyform.submit();" style="font-size: 14px; font-weight: bold; color: gray;">Reply</a></td>
</tr>
</table>
</form>
</body>
</html>
EOD;
echo($reply);
}

function doInstall() {
global $mysql;
mysql_connect($mysql[0],$mysql[1],$mysql[2]);
mysql_select_db($mysql[3]);
mysql_query("CREATE TABLE kEmail (id SMALLINT NOT NULL, msgID VARCHAR(75) NOT NULL, msgContent TEXT NOT NULL, author TEXT NOT NULL, gender VARCHAR(6) NOT NULL, PRIMARY KEY(id) )");
doReply();
}

function doList() {
global $mysql;
mysql_connect($mysql[0],$mysql[1],$mysql[2]);
mysql_select_db($mysql[3]);
$q=mysql_query("SELECT * FROM kEmail WHERE msgID='$_GET[msgid]'");
$header="font-family: Verdana; font-size: 14px; font-weight: bold; color: black; background-color: #DFDFDF; padding: 6px;";
$list1="font-family: Verdana; font-size: 12px; color: black; background-color: #E4E4E4; border: 1px solid #E6E6EE;";
$list2="font-family: Verdana; font-size: 12px; color: black; background-color: #DFDFDF; border: 1px solid #D9D9E6;";
echo('<style type="text/css">br{font-size: 8px;}</style><table align="center" width="100%" cellpadding="4" cellspacing="1" border="0">');
echo("<tr><td style=\"$header\">ID</td><td style=\"$header\" width=\"25%\">Message ID</td><td style=\"$header\" width=\"75%\">Message</td><td style=\"$header\">Author</td><td style=\"$header\">Gender</td></tr>");
$i=0;
while($fetch=mysql_fetch_object($q)) {
 $list=($i % 2) ? $list1:$list2;
 $msgContent=htmlentities(stripslashes($fetch->msgContent));
 $author_split=split("<",stripslashes($fetch->author));
 $author=str_replace(">",null,$author_split[0]);
 $msgContent=str_replace("\r\n\r\n\r\n","<br><br>",$msgContent);
 $msgContent=str_replace("\r\n","<br>",$msgContent);
 echo("<tr><td style=\"$list\">$fetch->id</td><td style=\"$list\" width=\"25%\">$fetch->msgID</td><td style=\"$list\" width=\"75%\">$msgContent</td><td style=\"$list\">$author</td><td style=\"$list\">$fetch->gender</td></tr>");
 $i++;
}
echo('</table>');
}

?>


For a live demo of the script, well, e-mail me http://www.gokarlo.info/email.php

 

 

 


Comment/Reply (w/o sign-up)

Adamrosso
wow, this looks awesome. Im defantly gonna use this =D

Comment/Reply (w/o sign-up)

major9
i going to use this script certainly.

Comment/Reply (w/o sign-up)

David789
This is cool.

Comment/Reply (w/o sign-up)

neokid
Awesome script, wait.. whenever I send something it use like 2mb of band

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : e, mail, mailer, script, 0, 1, website, visitors

  1. Creating Common Navigation For A Website: Part 2
    Newbies guide to creating common navigation with PHP (0)
  2. Rfi (remote File Inclusion) What Is It? How Do I Stop It?
    Another website security tutorial (0)
    In my continuing attempts to learn more about website security i am going to tell you about a
    classic attack called Remote File inclusion (RFI). RFI is exactly what it says really, it involves
    using (or including) code from one website on another website. So if i have a website : secure.com
    with a modular, dynamic system like: secure.com/index.php?module=home notice the GET variable on
    the end of the URL. If i enter "blah" instead of "home" i get either a blank page, or a 404: page
    not found error, there is also a chance you will get an error message like: Error: inclu....
  3. My First Website
    Where can i find useful web page templates? (14)
    Hi folks, Just wondering, as a newbie website builder, where can I get some useful HTML, CSS
    templates suitable for building a small business website? What is the best development environment
    for building websites? Is there a good open source program available?, or is it best to spend some
    money on something like Dreamweaver? Does anyone have experience of adding databases to Trap17
    sites, perhaps using Wamp server?....
  4. How To Setup A Website After Your Forum
    (3)
    This tutorial is about how to setup a website after you have setup a forum. That means, you have a
    forum, and are wanting to add a website. This tutorial will show you how to create the website in
    your root directory(Example: http://domainname.com) , while your traffic gets redirected to your
    forum while you are creating it, until you're ready for guests to see it. This method is
    opposed to setting it up in another directory, then moving it(particularly more time consuming if
    you're site is PHP based). First of all, you are going to want to setup a redirect ....
  5. [phpbb] Member Last-visit Report Script
    for phpbb2 databases (0)
    One flaw in the phpbb2 administration section is a report to list out the 'last-visit'
    time/date of the membership. I wrote a script to do exactly that and will be sharing the script with
    you here. the first section defines the variables required for the Database connection, finding the
    right database, supplying passwords, etc. HTML DEFINE ('DB_USER', 'YOUR DB USER
    NAME'); // change these defined values to suit your own situation DEFINE ('DB_PASSWORD',
    'YOUR DB PASSWORD'); DEFINE ('DB_HOST', 'localhost'); DEF....
  6. Creating Navigation For Html Websites
    Have a common navigation menu for the whole website! (12)
    Pre-requisite: HTML, inline frame tags 1 Attachment(.zip) included. Updates : 29-12-07: Doctype
    added in example files (Advised by jlhaslip) Designing a whole website takes a lot of planning
    and organization. Designing a proper navigation system is a basic step in building your website. If
    you are developing webpages in html you would have observed that as you go on creating pages it
    becomes difficult to maintain the links to the pages. This article will guide you in developing a
    common navigation menu for your website. It describes three ways, so if you don'....
  7. Background Image Swap Script
    Change a Background Image based on clock time (15)
    Background Image Changer Script To swap the background image from your CSS file according to the
    Server Clock Time. 1.) In your CSS file, add the following rule: CODE body {     background:
    url(time.png); } 2.) Create a "folder" named time.png. 3.) Into the folder, place three images
    named morning.png, day.png, night.png. 4.) Also, in the same folder, create an index.php file and
    copy/paste the following script. CODE $hour = date('H'); if ($hour     $image =
    "morning.png"; } elseif ($hour      $image = "day.png"; } else {      $image = "night.pn....
  8. Css Scroll Bar Styles
    Change the color of your website scrollbar! (1)
    REQUIREMENTS 1. Must have limited to good knowledge of CSS. 2. Must have limited to good knowlege
    of HTML. THE ELEMENTS First of all, there are 7 different elements of a scrollbar. a) Scrollbar
    Arrow Color /cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" />
    Scrollbar Darkshadow Color c) Scrollbar Track Color d) Scrollbar Face Color e) Scrollbar Shadow
    Color f) Scrollbar Highlight Color g) Scrollbar 3dlight Color Bassically all that you need to do is
    change the colors like you normally do with any sort of CSS. Therefore, if you want the....
  9. Image Rotator Script (another One)
    easy to implement (0)
    In case you haven't noticed, I have a different Avatar display on the Forum each time the page
    is refreshed. /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif"
    /> For those of you who might want the script to do that, here is the one I am using: HTML
    $filesp = glob('*.png'); if(empty($filesp)){ echo 'no images found...die br >';
    die(); } else{ foreach ($filesp as $file) { $img_array = trim($file); } } shuffle($img_array);
    //select image at random header("C o n t e n t{dash}t y p e: image/png"); // replace th....
  10. Making A One Page Does All Website In Phph
    (2)
    Hello and Great Day or Night either one. Have you ever been to a site and seen a index page or any
    page at all control everything such as index.php?do=home&action=logout something similar to the
    above? Well I am going to show you how easy it is to make this all own your own, and only have to
    use one web template or design to make it work. Before we get started you need to go ahead and find
    the web design that you want to use. After you find the site you want to use go ahead and save
    it... and save it like this so we can work together, ok! Note* We are going to be s....
  11. Adding Your Website To Google
    How to register with google (25)
    Hi everyone. Hopefully here im going to tell you how to register yourself with the Google search
    engine and get yourself in their results. Ill start the tutorial assuming you already have Meta
    tags or other search engine optimisation techniques in place. This tutorial is solely about
    registering with google. At one time i thought simply using meta tags etcetera would get you listed
    in Google, i then found out that didnt work, so i wondered why, and the fruits of my labour are what
    will go into this tutorial. the first step is to get a google account, this will get y....
  12. For ... Next Loops And Script Planning
    My Fifth PHP Tutorial (2)
    Be sure to read the other ones. They are located in the TUTORIALS section, and at the time of this
    writing all on the first page. Intro To PHP Tutorial 5 - For ... Next Loops and Planning Scripts
    Released 4/15/07 By Chris Feilbach aka GhostRider Contact Info: E-mail: assembler7@gmail.com AIM:
    emptybinder78 Yahoo: drunkonmarshmellows Website: http://www.ghostrider.trap17.com Before I start
    talking about what wonderful things loops are and all the cool stuff they can do, I want to address
    something first. I was asked about something to write in PHP. There isn't....
  13. Cpanel E-mail Management Set-up
    Part 1.1 of My 7 Part Cpanel Tutorial (0)
    This tutorial is an extention to my 7 tutorial series about the Cpanel. The 7 different Cpanel
    tutorials can be found below. Part 1: E-mail Management Part 2: Useful Site Management Tools
    Part 3: Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part
    6: PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel
    Tutorial Part 1.1: E-mail Management In this tutorial i will, in detail explain all of the
    uses for the E-mail Section of the Cpanel. Then, if this is your first time in the cpane....
  14. Cpanel E-mail Management
    Part 1 of My 7 Part Tutorial (0)
    This Tutorial will be divided into 7 different parts, and this is the first part, when i get the
    other parts together, i will post the links under here /biggrin.gif" style="vertical-align:middle"
    emoid=":D" border="0" alt="biggrin.gif" /> Enjoy. Part 2: Useful Site Management Tools Part 3:
    Useful Site Management Tools2.1 Part 4: Analysis/Log Files Part 5: Advanced Tools Part 6:
    PreInstalled Scripts, Extras, and Cpanel Options Part 7: Fantastico Detailed Cpanel Tutorial
    Part 1: E-mail Management In this tutorial I will, in detail explain all of th....
  15. How To: Ip Configuration Script (win Xp)
    If you travel a lot with your laptop, and need to switch between diff (0)
    How To: IP Configuration Script (win XP) If you travel a lot with your laptop, and need to switch
    between different IP's in different locations, this script is for you. There are many programs
    that handle this task very well, but they cost sometimes pretty big money. This tutorial will show
    you how to make your own IP Configuration Script for free. This script is for a static ip address
    configuration and is based on a little program called "NETSH.EXE" which is supplied with Windows.
    How it works. QUOTE Microsoft Windows XP - Using Netsh Netsh.exe is a....
  16. Php Script To Make A Link List
    From the list of the Directory Files (6)
    Well, it has been a while since I have added anything to the Tutorial Sectiion, so here is another
    script for the members to enjoy. This one creates a list of links from the contents of the directory
    which it is run from. For instance, if you run it from the public_html folder, then all the files
    (not the Directores) are listed and linked so when you click on the link, that file is parsed and
    output to the browser. Here is the code: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    An XHTML 1.0 Strict Page to List the files in this directory ....
  17. Php Menu Bulding Script And Site Template
    available for download (0)
    A Php Menu-builder Tutorial This Sidebar Menu-builder code and the php scripts are adapted from
    a Tutorial on the Astahost.com Forum titled : CMS101 - Content Management System Design .
    Since the original tutorial's author (vujsa) did such a marvellous job of describing the system
    in the original Topic posting, I will not attempt to explain it here, rather, I invite you to have a
    look at his Topic and learn from it. The Basic tutorial provided coding for developing a table-based
    web-site template which used php includes and embedded data to create a &....
  18. Script To Build A List Of Links
    from filenames and h3 tags (2)
    Another Unordered List Script If you remember this Script , that tutorial was about creating
    an un-ordered list of links from a list of files contained in a Folder which was specifically named
    in the script. This current Tutorial goes several steps beyond that first Tutorial by being able to
    create a list from several folder names and, more importantly, the script reads the list of links
    from a 'flat file' rather than depending on the name of the folder to be hard coded in the
    script. It is only one small step to have the folder names found in a mysql ....
  19. Page Generation Time Script
    A script to tell how long it took to generate (17)
    this is a script used to tell you or visitors how fast your page was generated for the person who is
    viewing it... Ok it is verry simple!! all you have to do is put this script on every page... that
    you want it to be on CODE $starttime = explode(' ', microtime()); $starttime =
    $starttime + $starttime ; ?> and put it before everything on the page, for me i put it right
    underneith the DOCTYPE script which i think is a bloody waste of space to have it on there, but
    anyways.. i put it right below that and it works fine!! now where you want the time it....
  20. Checking Dns Settings For Website
    DNS Setting, Ping, Whois, Dnsreport etc (2)
    If you have recently purchased a domain and facing problems with the workings, the first thing which
    you should check is the DNS setting. Dns settings determine, how to domain is pointed to the Server
    and How the server is connected to the world (internet). Ensure, the DNS settings are perfect to
    make sure, things work smoothly and people across the globe don't have problems accessing your
    site. The basic check would be : PING Suppose you register your domain (example.com) at
    ComputingHost. You get an IP for your website. In this case, suppose its 64.69.35.170. Yo....
  21. Configuring Dns Settings For Website
    Nameserver, A-Address, DNS configuration (1)
    Most of the people have problems configuring their website. After registering their domain, many get
    confused in configuring their domain (basically the DNS settings). This small tutorial will help you
    get started with DNS settings configuration. A domain can be basically pointed to a server using 2
    main techniques. 1. Nameserver (the most recommended way) 2. A Address (Not recommended)
    Configuring using Nameservers ==================== Login to your domain Control panel provided by
    your DOMAIN NAME PROVIDER / REGISTRAR. Not your webhost. Search for settings like DN....
  22. Introduction To Templating
    Templating your website with PHP (1)
    Pre-note Hello and welcome. if your website doesn't use a templating function, you may have
    noticed it's pretty hard to update your website (layout) unless you dig through many files to
    update the images and such. The solution is templates. If you ever got curious and looked into
    phpBB codes or any other template based forum/CMS, you saw the .tpl files they use. I am not at a
    point where i base everything on .tpl (simply because i havent taken the time to see how it all
    works). But i do can tell you that it's the same principle, template your site using an....
  23. Verifying Email Addresses
    Using a simple PHP script (9)
    This simple script will allow you to run some basic checks to make sure that any email address
    entered is actually an email address. There is no guarantee offered that this will stop every single
    fake email address, but it'll provide some protection. Now, the code! First we need to get the
    email address to verify. Here, I get it using POST from an HTML form. CODE //Load email
    address from web form $email = $_POST ; Now, we move on to our first check. Does the text that
    has been entered look like it could be an email address? This check can be performed....
  24. Run Your Own Mail / Radio Server
    SHOUTcast and more (24)
    firstly i want to point out that i did have alot more images that i took for this tutorial but i was
    only aloud to show 15 in this post /sad.gif" style="vertical-align:middle" emoid=":(" border="0"
    alt="sad.gif" /> ill ask for the ammount to be raised then i can add the rest in /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> ok here we go.. Audio
    Streaming Server (Radio) What is a Streaming Audio Server Its an application that will allow you to
    "stream" or send a continuous block of data to a client. In a few words, it will allow....
  25. Installing Ndstats!
    The greatest Stats script of all time. (4)
    An example of this script cna be found at http://www.own.tc/ (click enter) This is by far the
    BEST stats script and most sites use it! This is a PHP script and requires you to include files
    (Please... don't do iframes!) DOWNLOAD LINK: GO TO www.ZYMIC.com and go to Php scripts>stats
    scripts> and the current version of NDSTATS. Downlaod it and unzip it! Go to your WWW directory and
    create a folder called "ndstats". Then what you need to do is upload all of your files into that
    folder. You all should know how to do that. Then go to the top of the page(s) you wan....
  26. How To Use Trap17 Cgi Formmail
    a built-in script in every hosting (15)
    This tutorial is using TRAP17 hosting's built-in script called cgiemail. There are several
    hundreds of free scripts you can download and install it yourself but why not use what is already
    provided for you, if all you need is a simple submit and data collection? Let's begin. There
    are three things you need to remember: 1) you can rename the file however you'd like 2) two
    files (which I'll name them submitForm.html and template.txt ) must be in the same directory
    3) first two lines in template.txt must EXIST. Write your submitForm.html (where you ....
  27. [php] Simple Newsletter Script
    (17)
    This tutorial will give you the code needed and tell you how to implement it. First off you need to
    create a file called mailing.php this will be the file that processes the adding of emails to the
    list. CODE $email = $_POST ; $file = fopen("mailing.txt", "a"); fwrite($file, "\n" . $email);
    fclose($file); header("Location: mailing_thankyou.php"); ?> Next you need to create a file
    called mailing_thankyou.php , simple a page thanking them for signing up. Now create a file called
    mailing.txt with nothing in it, when uploaded to the server set it writable (c....
  28. Secure The Email Addresses On Your Website!
    Wonderful script and useful! And working (10)
    Just follow the instructions below: /* Secure Email Function by Juan Karlo Aquino de
    Guzman Website: http://www.karlo.ph.tc and http://www.abs-cbn.ph.tc E-mail:
    http://www.karlo.ph.tc/send.php Usage: showEmail("support@microsoft.com",0); OR
    showEmail("support@microsoft.com",1); Types: 0 = ordinary random 1 = more secure random To
    include to a script: include_once("email_secure.php"); */ And here is the code :
    CODE /*     Secure Email Function by Juan Karlo Aquino de Guzman     Website:
    http://www.karlo.ph.tc and http://....
  29. Email Script/form With Php
    how to make a simple email script using php (37)
    Today, I'm going to show you how to make an email script using PHP and HTML. Most people usually
    put Email me if they want an email link on their site, but there are several cons to this.
    First, it's very inconvenient for those people who use web-based mail such as Yahoo!, Hotmail,
    or Gmail because that darn Micro$oft Outlook program comes up if one accidently click the link.
    Second, you are very suseptible to spam bots because they scan your HTML source code for anything
    with the same pattern as an email address and add it to their database. If you are pre....
  30. Php Quiz Script
    Make quizzes for your site. (29)
    Hello all, A little bit back I decided to make a quiz scriptjust out of no where lol. However it
    doesnt do anything special but I am going to make an email mod for it so that it will email results
    to your email address. So here is the basis of it. INSTRUCTIONS: Open a new page in your text
    editor and paste in the following code. CODE $qid = "Quiz ID-00"; ?>
    Username: 1.) Question number one is? Answer1 Answer2 2.) Question number two is?
    Answer1 Answer2 3.) Question number three is? Answer1 Answer2 4.) Question num....

    1. Looking for e, mail, mailer, script, 0, 1, website, visitors
Similar
Creating Common Navigation For A Website: Part 2 - Newbies guide to creating common navigation with PHP
Rfi (remote File Inclusion) What Is It? How Do I Stop It? - Another website security tutorial
My First Website - Where can i find useful web page templates?
How To Setup A Website After Your Forum
[phpbb] Member Last-visit Report Script - for phpbb2 databases
Creating Navigation For Html Websites - Have a common navigation menu for the whole website!
Background Image Swap Script - Change a Background Image based on clock time
Css Scroll Bar Styles - Change the color of your website scrollbar!
Image Rotator Script (another One) - easy to implement
Making A One Page Does All Website In Phph
Adding Your Website To Google - How to register with google
For ... Next Loops And Script Planning - My Fifth PHP Tutorial
Cpanel E-mail Management Set-up - Part 1.1 of My 7 Part Cpanel Tutorial
Cpanel E-mail Management - Part 1 of My 7 Part Tutorial
How To: Ip Configuration Script (win Xp) - If you travel a lot with your laptop, and need to switch between diff
Php Script To Make A Link List - From the list of the Directory Files
Php Menu Bulding Script And Site Template - available for download
Script To Build A List Of Links - from filenames and h3 tags
Page Generation Time Script - A script to tell how long it took to generate
Checking Dns Settings For Website - DNS Setting, Ping, Whois, Dnsreport etc
Configuring Dns Settings For Website - Nameserver, A-Address, DNS configuration
Introduction To Templating - Templating your website with PHP
Verifying Email Addresses - Using a simple PHP script
Run Your Own Mail / Radio Server - SHOUTcast and more
Installing Ndstats! - The greatest Stats script of all time.
How To Use Trap17 Cgi Formmail - a built-in script in every hosting
[php] Simple Newsletter Script
Secure The Email Addresses On Your Website! - Wonderful script and useful! And working
Email Script/form With Php - how to make a simple email script using php
Php Quiz Script - Make quizzes for your site.

Searching Video's for e, mail, mailer, script, 0, 1, website, visitors
See Also,
advertisement


E-mail Mailer Script 0.1 - useful for website visitors

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com