Posted on 2008 under PHP |
8
Oct
We just need to create a file config.php
and have the code
<?php
//Database Constants
define(”DB_SERVER”, “localhost”);
define(”DB_USER”, “english_wefri”);
define(”DB_PASS”, “winnerlabel”);
define(”DB_NAME”, “english_wefriend”);
?>
then create a file which is called connection.php
and put the code in the file.
<?php
require(”constants.php”);
// 1.Create a database connection
$connection = mysql_connect(DB_SERVER,DB_USER,DB_PASS);
if(!$connection){
die(”Database connection failed:” . mysql_error());
}
// 2.Select a database
$db_select = mysql_select_db(DB_NAME,$connection);
if(!$db_select){
die(”Database selection failed: ” . mysql_error());
}
?>
Then we just connect the our site to the database.
And we can put different kinds of code after that in the <head> & </head> as well as <body> </body> party.
After finish that we shall close the database,we just need to create another file which is called footer.php
we just need to put the code
</div>
<div id=”footer”>Copyright 2007,Widget Corp</div>
</body>
</html>
<?php
if(isset($connection)){
mysql_close($connection);
}
?>
within the footer.php
so this three files help us with create a connection the our database and disconnect ourdatabase.
Posted on 2008 under PHP |
5
Oct
First,I’d like to post a small php script,
<?php
phpinfo();
?>
This script can help you know the php installed in your servers.You can put this script between the <body> </body>,and save your file in .php,then upload that file to your hosting.
visit that file,then you can get the information of php script of your hosting.

3 columns,brown and black colors,widgets ready,big header,left and right sidebars,free wordpress template for blog about health,medicine.
Click to download:vintagemedical.zip
Posted on 2008 under Host Your Site |
5
Sep
Although,there are many streaming video host out there,however,as a buyer,we always want to know which one is the best.Here we have some simple suggestions for you.
Best streaming video host #1 HOSTMASTER
Streaming video host disk space: 200 GB
Streaming Video Host Bandwidth: 2,000 GB
Streaming Video Host Cost: $5.95/month
HostMonster is the premium streaming video host with lots of Streaming video host space and traffic. Their top ranked Streaming video host package is an affordable and discount way to start publishing your video files online. If you need a good streaming video host, check out HostMonster first!
Best Streaming Video Host #3 - IX WEB HOSTING
Streaming Video Web Host Space: 200 GB
Streaming Video Web Host Bandwidth: 2,000GB
Best Streaming Video Web Host Prices: $4.95/month
Streaming Video Web Host Directory Approval: Yes - 5 Starts out of 5
Streaming Video Web Host Review Comments: Easily the Top Streaming Video Host - With massive amounts of video storage space and almost unlimited bandwidth, this streaming video host earns our top streaming video web host award.
Posted on 2008 under Search Engine Optimization |
7
Aug
Things always change,SEO was really something for me about half a year ago.However,I just got a question,is that worth to pay SEO company $$$?
I learned some SEO,I built some links and wrote some keywords rich content for one of my site,I followed the rules I had learned from the internet.
Later,I called a SEO company and pay them $600,I asked SEO service for another of my sites.They promoised me that,they can make that website the into top 10 within two months.
Now,two months have passed,the site which I paid $600 for SEO service do not get any good ranking,but the site I did SEO by myself get into top 10.The url of the website is http://www.electronic-lighter.com.cn the keyword is “electronic lighter”,just google electronoic lighter,you will find that my site is in top 10.
So I think it is not worth to pay $$$ for SEO company for ranking,It is very easy to learn some skills from the internet,and why we pay $$$.
If you are thinking whether you shall buy some SEO company,my suggestion is that learn and use some SEO skill by yourself,because that is very easy to reach.