维基天空

2006年08月18日

PHP表单name可以直接作为变量

类归于: MyProcedure — admin @ 23:46

form_class :

<form method="post" name="form01" action="./2.php">
<input type="text" name="username" value=”>
<input type="submit" value=’submit’ name="submit">

2.php :

<?
echo $username;
// 或者
echo $_POST['username'];
//不过手册上说:"PHP 4.2.0 起默认值为 register_globals = off 不提倡使用/依赖此种方法"
?>

打算做一个WHM/CP中文手册

类归于: 涅磐思考|Thinking — admin @ 23:34

WHM/CP是linux服务器Web管理的王者,无人可出其右!
WHM强大的服务器设置管理,以及CP细腻方便快捷的Web空间管理!从根本上方便了大多数的admin!
但是,国内很多初级站长对这个程序的认识还停留在初始阶段!甚至连CP后台怎么解压缩都不清楚!原因不外乎两个方面:
第一,昂贵的价格
第二,国人的不认可

我这个也是打算,具体什么时候出来,估计得一个月以后左右!
参考站点就是官方 hyyp://www.cpanel.com

想了解又没地方了解的请期待吧!

Host8主机空间首页第N次改版

类归于: Host8相关 — admin @ 23:23

增加了在线支付!本来打算用4个接口,一个是支付宝的,一个是云网的,一个是paypal的,一个是E-Gold的,但是由于本人比较懒惰,所以最后缩减成了2个,只有云网网银和支付宝的了…

记载下两个重点,一个是”表单的静态提交处理理”,具体如下:

<form name="jump">
<select name="menu">
<option value="URL">DetailedName</option>
<option value="URL">DetailedName</option>
….
….
<option value="URL">DetailedName</option>
</select>
<INPUT type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="提交">

另一个就是关于在linux服务器上增加apache_Handler,具体如下:

.htaccess
AddHandler application/x-httpd-php .Extended_Name

2006年08月8日

强制换行代码

类归于: 涅磐思考|Thinking — admin @ 18:44

强制换行:
<div style=”word-break:break-all”>
………………..
</div>

强制不换行:
<div style=”word-break:keep-all”>
………………..
</div>

2006年08月7日

allow cgi-script

类归于: htaccess — admin @ 14:18

Options +ExecCGI
SetHandler cgi-script
Allow from all

.htaccess must be 644

2006年08月6日

superbhosting,月支付1.5美元的空间

类归于: Affiliate — admin @ 06:02


还送 Dedicated IP (独立IP地址)..

hostmonster空间介绍

类归于: Affiliate — admin @ 04:43

20 Gigabytes of Hosting Space
Host UNLIMITED Domains!!
5000 Pop/Imap Email Accounts
SSH Access (Secure Shell)
500 Gigs of Transfer
SSL, FTP, Stats
CGI, Ruby (RoR), Perl, PHP, MYSQL
Front Page Extensions
Free Domain Forever
Free Site Builder
Best Support in the Industry

20G空间,500G月流量,CP面板,月支付价格才6.5美元,比较划算….!!
点击下面图片进入该网站购买

What hosting plan do you need?

类归于: 主机相关|HostInfo — admin @ 03:58

Free Non-Virtual Hosting
If you need somewhere to host a personal web site then choosing a web host is a much-simplified task. There are plenty of free hosts that will host your website at no cost to you, giving you space in a directory under their domain, e.g. ‘www.thehost.com/yourname/’. The catch is that you may have to carry some banners or mention the free hosts name somewhere on your site. Check out some of the leading free sub-domain hosts Geocities and Tripod.

Free Virtual Hosting
If you are on a tight budget but want to have a web presence then free virtual web hosting is what you are looking for. You will be able to host your website with your own domain name such as ‘www.yourname.com’, or a sub-domain such as ‘yourname.thehost.com’. The compromise is you may have to display your hosts adverts on your website.

Virtual Hosting
Virtual web hosting allows you to host your website using a domain name of your choice e.g. www.yourname.com. You will be given a certain amount of web space, measured usually in Mb on a server you share with other people. This gives a professional image and will allow you to change hosts with minimum hassle.

Dedicated Server Hosting
A dedicated server is one whereby you rent the use of a whole machine. This can be used to host one or more of your websites. Because you are renting the use of a machine, you have increased control over what software will be installed on the machine. You can even specify the set up. The major benefit is that this allows increased traffic to your sites. You could alternatively co-locate your own server at the host’s data center who can look after it for you.

Reseller Web Hosting
Reseller web hosting plans allow you to be a web hosting company yourself. In fact, many web hosting companies themselves have a web hosting company host their server. Some web hosting companies provide a service where small companies can resell web space on their servers for a small fee. You may wonder why go with the smaller company rather than the big. Well the smaller companies may add on certain features to make their plans more attractive and provide more services. Resellers can sometimes be better. The important things to consider are support, reliability and competitive pricing.

What’s the most popular type of hosting plan?
Virtual hosting is the most common plan purchased. It allows people starting a serious business or money making web site to get online at a low cost to begin with, and they can increase the services they require as their website grows. A typical virtual hosting plan can range from $10 to $30 per month, depending on the features that you require.

What hosting plan do I need?
Before choosing your hosting package, you should identify what your needs are. With all hosting plans, there will be some facilities that you need and some offered to you that you don’t need. Make sure you focus on the essentials that are required to launch your website. You may want all the nice extras but will you use them? It’s also a good idea to try and pick a host that will allow you to expand and increase your plan as and when your website grows. If you want to start selling online, an additional e-commerce option for an extra fee will be easier and quicker to implement than looking for and transferring to a new host.

Free and Unlimited for webhosting

类归于: 乱七八瞎|Others — admin @ 01:25

The English language is an amazing language. Where else can you take a “word” and use it for the exact opposite of its literal definition. A good car is “bad”! A good-looking person might be “hot” while they are really “cool”.
Sometimes the word used is not used for it’s exact opposite, but the way it is used has a different definition than the literal/dictionary definition. For this article, let’s explore two words used in the advertising world that have different definitions depending on the advertiser using it. These two terms will be used in reference to hosting. Please note that this article is not an attack on hosts, nor on advertisers. The purpose is to show that some words are not clearly defined nor can they be taken literally, but must be understood in the context of how they are used.
Free
First of all, let’s look at the word “free”. According to The New Lexicon Webster’s Dictionary, the definition is:

1,adj. not subject to external restraints or domination; not captive, at liberty; not having to be paid for; unhampered; open to all without restrictions; etc.
2,adv. without expense; without penalty
3,v.t. to release from constraint, set free

The literal definition of a free host would then be a host that has no restraints for the user with no expense and no restrictions. The webmaster would be set free to design to their hearts content. A literally free host would allow the webmaster everything and anything that they might want to establish a website without any constraints, restrictions, or expense. Can anyone imagine having all the space and bandwidth without any cost whatsoever? No, I didn’t think you could. Hence, the literal definition of a free host is both unimaginable and ridiculous. Free with no obligation whatsoever? Hardly.
Obviously, the literal sense is not the case with a free host. Depending upon the host, there will be restrictions as to such things as space and bandwidth. Some even have a requirement of having their banner(s) on your published site. Hence, the definition of “free” when it comes to a host means no expense as long as a set of conditions are met. Those conditions consist of such things as space, advertisements, hot linking, etc. The host’s service might be free with 20 meg of space. Additional space requires different conditions, probably money. The service might be free 20 megs of space and your site must display a required 468×60 banner of the host’s choice.
So the space that they have allotted is free, as long as their conditions and/or criteria is met. Just as this article is free as long as you’re a subscriber to Webmaster-Talk newsletter and, if you should desire to reprint it, the resource box is used with the article.
The literal “free” host is non-existent. The conditional “free” host is not only existent, but very prevalent in the webmaster world today. If you see “free” in a host’s advertisement, forget the literal and then read on to see what the conditions are for having some free space.
Unlimited
Next, let’s look at the word “unlimited”. According to The New Lexicon Webster’s Dictionary, the definition is:

1,adj. without limits; boundless, vast
2,syn. eternal

The literal definition of a host offering “unlimited” space and/or bandwidth would be a host that had no bounds on the amount of space or bandwidth for their customers. The webmaster would pay their host the set monthly fee, and could then design a website that used every bit of technology available today without any limit or bounds while doing so. Can anyone imagine a host that gives you implicit use of any and all resources available? No. Again, I didn’t think you could. The literal definition of “unlimited” space or bandwidth is unimaginable and ridiculous.

For purposes of this discussion, bandwidth will include page views and data transfer. The loading of pages for viewers and the transfer of data by the webmaster are very much different and may be handled differently by some hosting companies.
There are some very real reasons that unlimited space and bandwidth does not literally exist. From the smallest host to the largest host in the world, all have limitations from the very machines that they use for hosting. One machine or thousands of machines will have a certain capacity when it comes to space and bandwidth. The technology does not exist to make any machine literally unlimited. Even the largest hosting companies will have to set limits based on the size of their machinery. Does this mean they can’t add on or grow? No. It just means that there is a limit to their capacity.
Why do hosting companies use the word “unlimited” when it comes to space and bandwidth? It is definitely not to be taken literally, but it is a term used to attract attention to what the company has to offer. The term will have different definitions with different hosts. A keyword to remember at this point is “vast”. Vast was used earlier in the definition of unlimited. The definition of “vast” is immensely large in area; great. This gives more insight to what unlimited means when used by hosting companies.
When it comes to “unlimited” space and bandwidth, the host is claiming to have a vast amount, so much that the typical webmaster will not be able to use all of it in its entirety. If a customer would start approaching the physical limits of space, the host would make a provision so that it is not totally used. The provisions that the host makes is what determines their viability as a good host. With this claim comes a responsibility for the customer or webmaster. The customer must investigate the host to find out their capacities and their Terms Of Use policies to understand what is meant.
You decide
The policies that define “free” or “unlimited” are many times ambiguous or not clearly defined using mathematical equations or specific amounts. Many times, the policies will read that if a certain customer is using more than “normal”, then there will have to be a change. The host might ask them to change their plan, pay for the excess, or cut back on their use. So what is normal? This article can not define that. Policies also use terms such as over use, abuse, above normal, etc. These are usually not defined and are relative terms.
What should you consider when a company uses the term “unlimited”?
Consider that the term is not literal.
Find out what happens if you start to use more than normal, over use, or abuse the space.
See if the hosting company has a standard charge for the amount of space and bandwidth used over your plans amount.
Finding out this information from the start will help to avoid any unnecessary problems with your hosting company.
You must decide what is the good and bad of unlimited anything. Most would consider it a bad host that would immediately shut down their site if it exceeded the allowed space and/or bandwidth. Some will do just that. On the other hand, a good host will be willing to work with you on this aspect. Different hosts will act in different ways when a site exceeds the allotted space or bandwidth. One host may work with you to properly fund that site and keep it going by adding the costs of the exceeded amount to your bill. Another host may immediately notify you that you have exceeded your contract and negotiate with you about the excess.
So remember
Get to know your hosting company. All hosting companies are not created equal. Most will work with their valued customers when it comes to use of more space and bandwidth than is allowed. They will work with you to ensure that your site stays up for all to see. If they use “unlimited”, ask what that really means. Remember that it will never be the literal definition of the word, and probably means they have a vast amount.
Read the Terms of Service or Terms of Use. Explore their policies on free and unlimited to understand the host’s definitions of the terms used. Your initial contract with the hosting company should explain their procedure for use of space and bandwidth. Hopefully, this will be explained in concrete terms as in allotted space and bandwidth, and the cost for any used above that given amount.

FREE is FREE with many constraints and restrictions. UNLIMITED is UNLIMITED when you have the funds to pay for it. Forget your understanding of the literal definition of these two words when examining a host. Then carefully read and consider what they are truly offering you. Are hosts bad that use these terms? No! Remember, they may be “Bad!” when they’re exceptionally good!
For a continuing discussion on these two terms, please visit the Webmaster-Talk forums. There is a lot of discussion and opinions expressed about this subject.

2006年08月4日

细说流量,以及如何节省流量

类归于: Host8相关 — admin @ 01:42

流量 [Bandwidth]
1,流量如何计算:

比如说你的网站只有一个首页[index.html],而你的这个index.html文件是1MB的,那么,每天有十个人.每个人访问一次(打开完毕后不做任何刷新动作),那么你这一天的流量就是1MB*10=10MB
按照常用的说法也就是10MB
这个是一个比较白痴的计算方法!实际上流量与站点内很多东西都有关系的!与实际带宽也有关系的!

并且很多时候需要换算成bps带宽的!

2,下面说下服务器的带宽与最大流量的关系!

一个10M独享的服务器主机!他一个月的最大流量是多少呢??
我们来计算一下,10M的网速,也就是说是10Mbps,按照8bit的计算方法,10Mbps/8=1.25MB/秒
一个月有30天的话!一天有24小时,一个小时有60分钟,一分钟是60秒
那么,一个月最大的流量为1.25MB*60秒*60分*24时*30天=3240000MB的流量
按照1G=1000M的计算方法,月最大流量为3240GB
按照1G=1024的计算方法,月最大流量大约为3164GB
也就是说,10M独享的带宽,理论月最大流量为3000G多一些!!!而不是无限的!!

100M独享的计算方法一样!!!

世界上没有不限制流量的服务器,更没有不限制流量的空间!!

早前文章 »

WordPress 所驱动