转到正文

候鸟博客

一个关注外贸零售及相关技术的专业博客

Google搜索中20个最受欢迎的域名页面清单(附表一):

         .com(商业域名): 有4,860,000,000 个页面
        .org  (组织域名): 有 1,950,000,000 个页面
        .edu(美国审核认可教育机构域名):有 1,550,000,000 个页面
        .gov (美国政府域名):有 1,060,000,000 个页面
        .uk (英国域名): 有473,000,000 个页面
        .net(网络服务域名): 有206,000,000 个页面
        .ca(加拿大域名): 有165,000,000 个页面
        .de (德国域名):有145,000,000 个页面
        .jp (日本域名):有139,000,000 个页面
        .fr(法国域名): 有 96,700,000 个页面
        .au (澳大利亚域名):有 91,000,000 个页面
        .us (美国域名): 有68,300,000 个页面
    继续阅读

通过Kloxo查看内存和硬盘使用量

因Kloxo本身先天性缺陷,无法准确显示内存和硬盘使用情况。可以使用本文中所用的方法查看。

(1)进入Kloxo命令控制台

在Kloxo首页,点击命令控制台 
 

继续阅读

这篇文章很好,先看完了就摘录过来!原文题目叫做How do I enable SSL after I have installed Zen Cart? 大意是安装好zen cart 后需要做的工作使zen cart 能正常运行。否则admin后台也许都无法登陆。

文章正文:

1. Make sure SSL is working on your account first
FIRST, make sure you’ve got SSL enabled on your hosting account. Work with your hosting company to get a certificate installed and to purchase one if necessary.

Can you get to “https://www.your_site.com” ? If not, ask your hosting company how to do it. If you can’t access your site using an HTTPS:// address, don’t try to enable SSL in Zen Cart or you’ll just end up with broken pages in your store!!!(这个文章是摘自一个主机商的,不过我们自己的话是要安装好apache+php+mysql+curl+ssl等配置后就可以完成这一步)

2. Enable SSL support in Zen Cart(使zen cart 支持ssl安全连接)
Once you’ve had your hosting company install your SSL certificate, and you have confirmed that going to “https://your_site.com” actually works without an error, you can turn on SSL support in Zen Cart using the following information:

    Different servers may have slightly different setups and the configuration also depends on whether you have your own certificate or are using a shared certificate. We will give some examples of the most common combinations. You will need to make changes in both the includes/ configure.php and admin/ includes/ configure.php. You may have to load the whole catalog into an HTTPS directory also. Please consult your host for the URL you will need.

3、Your Own Certificate
Change includes/configure.php and admin/includes/configure.php to:

// Define the webserver and path parameters
define(‘HTTP_SERVER’, ‘http://www.YOUR_SHOP.com’);
define(‘HTTPS_SERVER’, ‘https://www.YOUR_SHOP.com’);
define(‘ENABLE_SSL’, ‘true’);

Shared Certificate
Change includes/configure.php and admin/includes/configure.php to:

// Define the webserver and path parameters
define(‘HTTP_SERVER’, ‘http://www.YOUR_SHOP.com’);
define(‘HTTPS_SERVER’, ‘https://YOUR_SHOP.YOUR_SECURE_SERVER.net’);
define(‘ENABLE_SSL’, ‘true’);

or:

// Define the webserver and path parameters
define(‘HTTP_SERVER’, ‘http://www.YOUR_SHOP.com’);
define(‘HTTPS_SERVER’, ‘https://YOUR_SECURE_SERVER.net/YOUR_USERNAME’);
define(‘ENABLE_SSL’, ‘true’);

or:

// Define the webserver and path parameters
define(‘HTTP_SERVER’, ‘http://www.YOUR_SHOP.com’);
define(‘HTTPS_SERVER’, ‘https://YOUR_SECURE_SERVER.net/~YOUR_USERNAME’);
define(‘ENABLE_SSL’, ‘true’);

NOTE: As of v1.3.x, the Admin area can only secure the “login” page via SSL unless you set the HTTP_SERVER in your “admin/includes/configure.php” to an SSL URL, in which case the entire admin area will be treated as SSL rather than only selected relevant pages. This will be changing during the admin-rewrite phase scheduled for completion sometime after Zen Cart v2.0 is released.

美国空间商非常多,价格也比中国空间商便宜一大截。400RMB左右便能买到一个稳定的linux php空间,部分空间还有ssh权限。下面我将会对我用过的空间做一个全方位对比,希望对要购买美国空间的朋友有一些帮助。

  我用过的空间:ixwebhosting,bluehost(现在使用的),godaddy,dreamhost

1、价格
  价格无疑是很多人购买空间考虑的重要因素。价格过高的空间,如mt等空间,很难被接受。这几个空间价格都非常低。

  虽然BH首页的标价是$6.95每个月(买一年是$7.95每个月),但是有优惠链接,使用后只需$3.95($4.95),按现在的汇率还不到400RMB。花400RMB买一个稳定的30gb空间还是很划算的。不过续费就要原价付款了,很划不来,你可以选择搬到它的子公司HostMonster或FastDamain,同样有优惠链接,价格一样,服务参数基本上相同,性能应该也差不多。

  IX的价格最便宜,最便宜的套餐只需$3.95($4.95),用上优惠码后更便宜。

  GD的价格不高不低,deluxe那款$6.64还可以接受,用优惠码后420RMB左右,整体还行。

  DH的价格就有些高,$8.95($9.95),比其他三家高得多,都可以买一个VPS了,非常不划算。但如果用上优惠$50的优惠码,价格还是比较高,要470多RMB,不是很划算。

继续阅读

以我的helloblank模板为例,注意你所使用的 模板文件路径。

第一个地方,产品列表页的产品图片

文件位置:app\design\frontend\default\helloblank\template\catalog\product\list.phtml

在此文件中搜 “resize”,发现有两处,因为列表页有 List 和 Grid 两种显示方式,第一个resize一般是List列表显示中的产品图片,第二个resize一般是 Grid 列表显示中的产品图片。

截取代码片段:

$this->helper(‘catalog/image’)->init($_product, ‘small_image’)->resize(135, 135); ?>” width=”135″ height=”135″

代码分析:

继续阅读