What is Unix Hosting?
What is Shared/Virtual Hosting?
What is PHP?
What is Perl?
What is MySQL?
How can I edit a mySQL database table without creating
an application?
How do I enable SSI in my HTML pages?
How to tell if your Web Server is running PHP?
How do I create a contact form using PHP scripts?
What is Unix Hosting?
Unix is an operating system developed by Bell Labs in the
1970's. It is a popular operating system that is used by many companies
all over the world. Most web hosting providers use a unix based OS called
FreeBSD on their shared hosting servers.
Your personal computer's operating system does not affect your ability
to use a Unix server for hosting. Having a Windows system at home does
not mean you must have a Windows Hosting account. A unix account will
work just as well.
What is Shared/Virtual Hosting?
Shared Hosting refers to a hosting package where two or more customers
share the same server (computer). This is the least expensive way to get
a real web site.
What is PHP?
PHP is a server-side, cross-platform, HTML embedded scripting language.
PHP is a tool that lets you create dynamic Web pages. The web pages with
PHP enabled are treated much like regular html pages.
In an HTML document, PHP script (similar syntax to that of Perl or C)
is enclosed within special PHP tags. As PHP is embedded within tags, it
does not have to rely on heavy amounts of code to output HTML. Also, PHP
code cannot be viewed by the client as the script is executed on the server.
PHP can perform any task any CGI program can, but its strength lies in
its ease of use. PHP can talk across networks using IMAP, SNMP, NNTP,
POP3, or HTTP.
What is Perl?
Perl is a programming language that was created to primarily process
text. It is widely used as a rapid prototyping language that makes it
possible for different systems to work well together.
It is also the most popular language used for the Custom Gateway Interface.
With this support, you are able to use various Perl scripts that will
allow you to open your store, chat room, newsgroup, classifieds, etc.
There are countless numbers of pre-made scripts that can be found on the
Internet.
Perl's roots are in UNIX. Because Perl is an interpreted language, Perl
programs are highly portable across systems.
What is MYSQL?
MySQL is a powerful and most popular database program that runs on the
Linux operation system. It is able to handle million of entries all at
once.
Its flexibility and speed allow you to also store logs and pictures.
MySQL is designed to scale well under heavy traffic conditions and is
ideal for database-intensive or e-commerce-enabled Web sites.
You can use MySQL with PHP and/or Perl. MySQL and PHP have become the
dynamic duo of Open Source, data-driven Website creation.
How can I edit a mySQL database table without creating an application?
Cpanel allows you to use phpMyAdmin to edit mySQL tables through the use
of SQL query language.
How do I enable SSI in my HTML pages?
To take advantage of Server Side Includes(SSI) in your web page, make
sure the web page has the extension .SHTML and not .HTML
How to tell if your Web Server is running PHP?
Step 1: Use your text editor such as NotePad and create a file named:
testserver.php
Step 2: In this file, write the following line of code and save the file:
<? phpinfo(); ?>
Step 3: Connect to your web host with an FTP program and upload the file
to the root web directory, where you index page is.
Step 4: Open an Internet browser and go to the url of the page you just
uploaded. It should be something like this:
http://www.yourdomain.com/testserver.php
If you see a nice screen with a bunch of technical information about
your web server on it, congratulations! You have PHP installed on your
web server.
If you see something else, well, perhaps you should consider changing
web hosts, or at least asking your server admin to instal PHP.
How do I create a contact form using PHP scripts?
The following is the script needed to create a contact form:
Replace "YOUR SECONDARY EMAIL ADDRESS" and "YOUR PRIMARY
EMAIL ADDRESS" with a real email address.
<? if ($submit == "Submit") {$errmsg = check_form($name,
$email, $subject, $message);
if (empty($errmsg)){
$headers="MIME-Version: 1.0\n";
$headers.="From: Secondary Email Address<YOUR
SECONDARY EMAIL ADDRESS>\n";
$headers.="Cc:";
$to="Primary Email Addresss<YOUR
PRIMARY EMAIL ADDRESS>";
$msg="Name : $name\n\r";
$msg.="Email : $email\n\r";
$msg.="Subject : $subject\n\r";
$msg.="Message : $message\n\r";
$subject="Contact Form";
$checksend=mail($to, $subject, $msg, $headers);
if($checksend){echo "<p><br><font size='2' face='verdana'>Thank
you for writing to us.</font><br>";
}else{echo "<p><br><font size='2' face='verdana'>Sorry,
our mail server can't process your request now, please try again later.</font>
";}}
else
{echo "<p><ul>$errmsg</ul><font size='2' face='verdana'>Please
fill in all necessary information.</font><p>";
showform();}}else {showform();}?>
<? function check_form($name, $email, $subject, $message)
{$errmsg = ""; if (empty($email) || !eregi("^[A-Za-z0-9\_-]+@[A-Za-z0-9\_-]+.[A-Za-z0-9\_-]+.*",
$email))
{$errmsg .= "<font size=2 face='arial'><b>>></b> </font><font
size=1 face='verdana'><b>$email does not seem like a valid email
address. Please re-enter.</b></font><p>\n";}
return $errmsg;}
function showform()
{GLOBAL $PHP_SELF;
GLOBAL $name, $email, $subject, $message;
?>
<form method="POST" action="<?=$PHP_SELF;?>">
<div align="center">
<center>
<table width="450" border="0" bgcolor="#000066"
cellpadding="0" cellspacing="1">
<tr><td>
<table width="100%" border="0" cellpadding="3"
cellspacing="0">
<tr bgcolor="#FFFFFF">
<td align="center" width="100%" height="20"
colspan="2"><font size="2" face="Arial,
Helvetica, sans-serif" color="#000000"><b>Please
fill in your information</b></font></td></tr><tr>
<td bgcolor="#ffffff" width="30%" height="15"><font
size="2" face="verdana"><font color="#ee2222">*</font><font
face="Arial, Helvetica, sans-serif">Firstname</font></font></td>
<td bgcolor="#ffffff" width="70%"><font face="Arial"
size="1"><input type="text" name="name"
size="30" class="textinput" tabindex="2"
value="<?=$name;?>"></font></td></tr><tr>
<td bgcolor="#ffffff" width="30%" height="15"><font
size="2" face="verdana"><font color="#ee2222">*</font>
<font face="Arial, Helvetica, sans-serif">Email Address</font></font></td>
<td bgcolor="#ffffff" width="70%"><font size="1"><input
type="text" name="email" size="30" class="textinput"
tabindex="3" value="<?=$email;?>"></font></td></tr><tr>
<td bgcolor="#ffffff" width="30%" height="15"><font
size="2" face="verdana"><font color="#ee2222">*</font>
<font face="Arial, Helvetica, sans-serif">Subject</font></font></td>
<td bgcolor="#ffffff" width="70%"><font size="1"><input
type="text" name="subject" size="30" class="textinput"
tabindex="4" value="<?=$subject;?>"></font></td></tr><tr>
<td valign="top" bgcolor="#ffffff" width="30%"
height="15"><font size="2" face="verdana"><font
color="#ee2222">*</font>
<font face="Arial, Helvetica, sans-serif">Message</font></font></td>
<td bgcolor="#ffffff" width="70%"><font size="1"><textarea
rows="5" name="message" cols="30" tabindex="5"
class="textinput"><?=$message;?></textarea></font></td></tr><tr>
<td bgcolor="#ffffff" width="30%" height="20"></td>
<td bgcolor="#ffffff" width="70%" height="15"><div
align="left"><input type="submit" value="Submit"
name="submit"> <input type="reset"
value="Clear" name="B2"></div></td>
</tr>
</table>
</tr></table>
</center>
</div>
</form>
<?
}?>
|