Skip to content
Home arrow 蒙城论坛
Montreal Forum
十一月 19, 2008, 11:18:17 am *
你好! 访客. 请先 登录注册一个帐号.

请输入帐号, 密码以及预计登录时间
公告: 蒙特利尔论坛 - 新鲜出炉!
 
  首页 帮助 搜索 日历 登录 注册  
  列出帖子
页: 1 [2] 3
16  相聚蒙城 / 移民留学 / Re: 巴黎审批速度 于: 六月 20, 2007, 01:28:20 am
你查询过这个网站吗?

http://www.sinomtl.com/links/immgrant-related-website/
加拿大联邦技术移民进度查询
17  广而告之 / 房屋租售 / 蒙城接待、临时住宿 于: 六月 17, 2007, 10:11:57 pm
■和平之家临时住宿
高尚好区,意大利风格住宅,干净整洁,木地板。近地铁,步行6分钟。包水电,电话。有电视,电脑,高速网络。包洗衣机,冰箱炉头。提供新移民住宿,安家和咨询服务。适合来蒙特利尔的移民和游客短住。提供机场接送,搬家,旅游包车。我们愿为您真诚服务。请联系 514-3822188,手机:514-5768879。email: hepingliu9050@hotmail.com (hepingliu9050@hotmail.com) (upto:Feb. 7,2008)

■欢迎光临“拉拉驹之家”!
近地铁、近大MALL、近公园!Angrignon黄金地段!出游购物十分方便。为您提供全包式住宿:暖电、网络、电视、电话、洗衣、厨房电器一应俱全!真真切切提包入住。每日清洁、免费泊车!适合留学考察、短期工务、访问签证、自驾旅游、移民登陆。同时提供机场接送及新移民安家咨询服务。联系:514-3136395,手机514-9918366,中国打来可免费直拨:179710-89920-12612
Email:maryann_li@hotmail.com ,点击请看“拉拉驹之家”位置 (http://maps.google.com/maps?f=q&hl=zh-CN&q=6687+Avenue+Lamont,+Montr%C3%A9al,+QC,+Canada&ie=UTF8&z=15&om=1),点击请看 图片 (http://lalajuhome.photo.163.com/)。(Upto: Jan 08,2008)

■欢迎光临“小天使之家”
有政府执照旅馆,一分钟到PIE-IX地铁站,提供机场接送服务,全木地板,干净整洁,安全,可开发票,免费停车,包上网,电话。保证满意!如果客人对我们的服务不满意,我们将愿银奉还!点击看图片 (http://pg.photos.yahoo.com/ph/judedeng/my_photos) 和 我们的位置 (http://maps.google.com/maps?q=2665+Avenue+Desjardins,+Montr%C3%A9al,+Montr%C3%A9al,+QC,+Canada&sll=45.555575,-73.554046&sspn=0.007002,0.012918&ie=UTF8&z=16&ll=45.554268,-73.550527&spn=0.007002,0.019956&om=1&iwloc=addr)。(Licence No: 3000061912, Licence Holder: (Jude) Deng XXXX Yan)。电话:514-699-6268 Email: judedeng@yahoo.com 。(Upto: Feb 28,2008)
18  生活百事 / 电脑数码 / 细线表格的两种武器 于: 六月 09, 2007, 11:59:06 pm
<table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#FF0000">
  <tr>
    <td><table width="600" border="0" cellspacing="1" cellpadding="0">
      <tr>
        <td bgcolor="#FFFFFF">content</td>
        <td bgcolor="#FFFFFF">content</td>
        <td bgcolor="#FFFFFF">content</td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF">content</td>
        <td bgcolor="#FFFFFF">content</td>
        <td bgcolor="#FFFFFF">lcontent</td>
      </tr>
    </table></td>
  </tr>
</table>



<style type="text/css">
table{
   width:600px;
   margin:0px auto;
   font:Georgia 11px;
   color:#333333;
   text-align:center;
   border-collapse:collapse;
}
table td{
   border:1px solid #f00;
   width:100px;
   height:30px;
}
</style>

<table>
   <tr>
      <td>content</td>
      <td>content</td>
      <td>content</td>
   </tr>
   <tr>
      <td>content</td>
      <td>content</td>
      <td>content</td>
   </tr>
</table>



table{border-collapse: collapse;}
td{border: 1px solid #333;}
19  生活百事 / 电脑数码 / javascript 中四种绑定事件的方法 于: 六月 03, 2007, 04:42:31 pm
a) 直接在HTML元素标记中写入: onmousedown="divBlock_event_mousedown();"
b) 将事件函数的句柄赋值给相应的事件:document.onmousemove=document_event_mousemove; (注意赋值的函数名后面并没有括号)
c) 使用 attachEvent 方法(对于FF类的浏览器来说是 addEventListener)
d) obj.onmousedown=function(){ this.stop(); }
20  广而告之 / 工作创业 / 华人移民怎样进入会计领域 于: 五月 29, 2007, 01:02:12 am
在北美,财会领域一直被华人移民视为非常看好的职业方向,而且就业形势乐观。究其原因:一方面是电算化会计的就业前景广阔,小生意需要有自己的薄记,同时雇佣专业会计师楼做月结、年结及报税,而大中小型企业拥有自己的会计队伍,总之各类机构需要不同类型的会计人员,决定了会计职位“供大于求”;另一方面则是大部分中国人数学、财会方面的基础比较好,很容易同以往的经验接轨,切入会计行业;当然最重要的原因就是会计上升的空间比较大,成为很多移民的职业目标。但要达到此目标。必须:

一、 改变观念,重新认识自己,并确定自己的职业目标

作为一个移民, 必须改变在国内固有的观念。不论您在国内如何成功或地位优越,在加必须将自己作为一个初学者或起步者,同时重新认识评估自己,并尽早选择适合自己的职业之路。选择专业会计虽然起薪并不高,但能很快进入相关的专业领域,同时拥有很大的上升空间。可以从年薪30,000的ACCOUNTING CLERK 到年薪80,000以上的SENIOR FINANCIAL ANALYST。

二、 从零开始,充实并不断提高专业知识

北美社会注重实际操作及工作经验。大陆的教育体制偏重理论和原理,所以有意转行的移民必须根据北美的社会环境,尽快熟练掌握至少一个以上的会计软件(ACCOUNTING SOFTWARE),同时兼修尽可能多的会计软件以备工作之须。作为缺乏北美工作经验的起步者, 应具备不怕从最低级的BOOKKEEPING, A/P,A/R CLERK做起的心理准备,然后逐步追求自己的职业目标(CAREER GOAL)。

三、 理论与经验并重,提高自己的专业水平

会计专业作为一种职业在就业市场上前景广阔,涉及面广并要求理论与经验并重,建议起步者在有一个相关的工作职位后, 继续参加加拿大三大注册会计师协会(CA\CMA\CGA)的专业培训, 并成为一个专业的注册会计师, 让自己的专业水平, 工作经验和工作能力为社会所认同。目前加国的会计人才现状是初级、高级人才都相对紧缺,高级人才紧缺主要受战后婴儿潮的影响;而初级人才紧缺则主要因会计电算化,会计软件的广泛应用及更新换代而使原有人才的不适应而流失,因此拥有熟练电算操作技能的初级会计人员,如BOOKKING, A/R, A/P, ACCOUNTING CLERK 具有良好的就业前景,同时更为自己的职业生涯加多一层保险。

当然,无论您的目标是初级还是高级,现在切实可行的是脚踏实地,从学习实用财会技能开始,循序渐进地沿着职业途径向前走,您会发现,会计的职业生涯是与年龄成正比,非常公正,所有的努力都是值得的,因为是高回报。不得不说,对于愿意学习并且不断进取的中国移民来说,专业会计应是一个好的就业方向。
21  相聚蒙城 / 渔民之家 / 如何发布新钓点!! 于: 五月 04, 2007, 09:32:44 pm
  • 将地图放到足够大
  • 将地图右下角的坐标发布在这论坛里
  • 给你的钓点起个响亮的名字
  • 简单介绍你的钓点
  • 我们随后会添加你的新钓点到钓点地图当中
22  生活百事 / 电脑数码 / Re: .htaccess使用指南 于: 四月 30, 2007, 11:44:15 pm
Summary 小结

.htaccess is one of the most useful files a webmaster can use. There are a wide variety of different uses for it which can save time and increase security on your website.
.htaccess是一个站点管理员可以应用的强大工具,有更多的变化以适应不同的用途,可以节约时间及提高网站的安全性。

相关阅读:


KxS Password Encrypter
Apache .htaccess Documentation
More .htaccess Sites
Related Reading

.htaccess的特别说明


启用.htaccess,需要修改httpd.conf,启用AllowOverride,并可以用AllowOverride限制特定命令的使用
如果需要使用.htaccess以外的其他文件名,可以用AccessFileName指令来改变。例如,需要使用.config ,则可以在服务器配置文件中按以下方法配置:
AccessFileName .config 一般情况下,不应该使用.htaccess文件,除非你对主配置文件没有访问权限。有一种很常见的误解,认为用户认证只能通过.htaccess文件实现,其实并不是这样,把用户认证写在主配置文件中是完全可行的,而且是一种很好的方法。.htaccess文件应该被用在内容提供者需要针对特定目录改变服务器的配置而又没有root权限的情况下。如果服务器管理员不愿意频繁修改配置,则可以允许用户通过.htaccess文件自己修改配置,尤其是ISP在同一个机器上运行了多个用户站点,而又希望用户可以自己改变配置的情况下。虽然如此,一般都应该尽可能地避免使用.htaccess文件。任何希望放在.htaccess文件中的配置,都可以放在主配置文件的<Directory>段中,而且更高效。避免使用.htaccess文件有两个主要原因,即性能和安全。
23  生活百事 / 电脑数码 / Re: .htaccess使用指南 于: 四月 30, 2007, 11:43:41 pm
Part 3 – 密码保护

Introduction 介绍

Although there are many uses of the .htaccess file, by far the most popular, and probably most useful, is being able to relaibly password protect directories on websites. Although JavaScript etc. can also be used to do this, only .htaccess has total security (as someone must know the password to get into the directory, there are no 'back doors')
尽管有各种各样的.htaccess用法,但至今最流行的也可能是最有用的做法是将其用于网站目录可靠的密码保护。尽管JavaScrip等也能做到,但只有.htaccess具有完美的安全性(即访问者必须知晓密码才可以访问目录,并且绝无“后门”可走)。

The .htaccess File 密码保护的.htaccess文件

Adding password protection to a directory using .htaccess takes two stages. The first part is to add the appropriate lines to your .htaccess file in the directory you would like to protect. Everything below this directory will be password protected:
利用.htaccess将一个目录加上密码保护分两个步骤。第一步是在你的.htaccess文档里加上适当的几行代码,再将.htaccess文档放进你要保护的目录下:

程序代码:
AuthName "Section Name"
AuthType Basic
AuthUserFile /full/path/to/.htpasswd
Require valid-user

There are a few parts of this which you will need to change for your site. You should replace "Section Name" with the name of the part of the site you are protecting e.g. "Members Area".
你可能需要根据你的网站情况修改一下上述内容中的一些部分,如用被保护部分的名字"Members Area",替换掉“Section Name”。

The /full/parth/to/.htpasswd should be changed to reflect the full server path to the .htpasswd file (more on this later). If you do not know what the full path to your webspace is, contact your system administrator for details.
/full/parth/to/.htpasswd则应该替换为指向.htpasswd文件(后面详述该文档)的完整服务器路径。如果你不知道你网站空间的完整路径,请询问一下你的系统管理员。

The .htpasswd File 密码保护的.htpasswd文件

Password protecting a directory takes a little more work than any of the other .htaccess functions because you must also create a file to contain the usernames and passwords which are allowed to access the site. These should be placed in a file which (by default) should be called .htpasswd. Like the .htaccess file, this is a file with no name and an 8 letter extension. This can be placed anywhere within you website (as the passwords are encrypted) but it is advisable to store it outside the web root so that it is impossible to access it from the web.
目录的密码保护比.htaccess的其他功能要麻烦些,因为你必须同时创建一个包含用户名和密码的文档,用于访问你的网站,相关信息(默认)位于一个名为.htpasswd的文档里。像.htaccess一样,.htpasswd也是一个没有文件名且具有8位扩展名的文档,可以放置在你网站里的任何地方(此时密码应加密),但建议你将其保存在网站Web根目录外,这样通过网络就无法访问到它了。

Entering Usernames And Passwords 输入用户名和密码

Once you have created your .htpasswd file (you can do this in a standard text editor) you must enter the usernames and passwords to access the site. They should be entered as follows:
创建好.htpasswd文档后(可以通过文字编辑器创建),下一步是输入用于访问网站的用户名和密码,应为:

程序代码:
username:password

where the password is the encrypted format of the password. To encrypt the password you will either need to use one of the premade scripts available on the web or write your own. There is a good username/password service at the KxS site which will allow you to enter the user name and password and will output it in the correct format.
“password”的位置应该是加密过的密码。你可以通过几种方法来得到加密过的密码:一是使用一个网上提供的permade脚本或自己写一个;另一个很不错的username/password加密服务是通过KxS网站,这里允许你输入用户名及密码,然后生成正确格式的密码。

For multiple users, just add extra lines to your .htpasswd file in the same format as the first. There are even scripts available for free which will manage the .htpasswd file and will allow automatic adding/removing of users etc.
对于多用户,你只需要在.htpasswd文档中新增同样格式的一行即可。另外还有一些免费的脚本程序可以方便地管理.htpasswd文档,可以自动新增/移除用户等。

Accessing The Site 访问网站

When you try to access a site which has been protected by .htaccess your browser will pop up a standard username/password dialog box. If you don't like this, there are certain scripts available which allow you to embed a username/password box in a website to do the authentication. You can also send the username and password (unencrypted) in the URL as follows:
当你试图访问被.htaccess密码保护的目录时,你的浏览器会弹出标准的username/password对话窗口。如果你不喜欢这种方式,有些脚本程序可以允许你在页面内嵌入username/password输入框来进行认证,你也可以在浏览器的URL框内以以下方式输入用户名和密码(未加密的):

程序代码:
http://username:password@www.website.com/directory/
24  生活百事 / 电脑数码 / Re: .htaccess使用指南 于: 四月 30, 2007, 11:42:27 pm
Part 2 - .htaccess 命令

Introduction 介绍

In the last part I introduced you to .htaccess and some of its useful features. In this part I will show you how to use the .htaccess file to implement some of these.
在上一部分,我已经简单介绍了.htaccess以及它的一些有用功能,在这一部分,我将向你演示如何使用.htaccess文档去实现这些功能。

Stop A Directory Index From Being Shown 停示显示目录列表

Sometimes, for one reason or another, you will have no index file in your directory. This will, of course, mean that if someone types the directory name into their browser, a full listing of all the files in that directory will be shown. This could be a security risk for your site.
有些时候,由于某种原因,你的目录里没有index文件,这意味着当有人在浏览器地址栏键入了该目录的路径,该目录下所有的文件都会显示出来,这会给你的网站留下安全隐患。

To prevent against this (without creating lots of new 'index' files, you can enter a command into your .htaccess file to stop the directory list from being shown:
为避免这种情况(而不必创建一堆的新index文件),你可以在你的.htaccess文档中键入以下命令,用以阻止目录列表的显示:

程序代码:
Options -Indexes

Deny/Allow Certian IP Addresses 阻止/允许特定的IP地址

In some situations, you may want to only allow people with specific IP addresses to access your site (for example, only allowing people using a particular ISP to get into a certian directory) or you may want to ban certian IP addresses (for example, keeping disruptive memembers out of your message boards). Of course, this will only work if you know the IP addresses you want to ban and, as most people on the internet now have a dynamic IP address, so this is not always the best way to limit usage.
某些情况下,你可能只想允许某些特定IP的用户可以访问你的网站(例如:只允许使用特定ISP的用户进入某个目录),或者想封禁某些特定的IP地址(例如:将低级用户隔离于你的信息版面外)。当然,这只在你知道你想拦截的IP地址时才有用,然而现在网上的大多数用户都使用动态IP地址,所以这并不是限制使用的常用方法。

You can block an IP address by using:
你可以使用以下命令封禁一个IP地址:

程序代码:
deny from 000.000.000.000

where 000.000.000.000 is the IP address. If you only specify 1 or 2 of the groups of numbers, you will block a whole range.
这里的000.000.000.000是被封禁的IP地址,如果你只指明了其中的几个,则可以封禁整个网段的地址。如你输入210.10.56.,则将封禁210.10.56.0~210.10.56.255的所有IP地址。

You can allow an IP address by using:
你可以使用以下命令允许一个IP地址访问网站:

程序代码:
allow from 000.000.000.000
where 000.000.000.000 is the IP address. If you only specify 1 or 2 of the groups of numbers, you will allow a whole range.
被允许的IP地址则为000.000.000.000,你可以象封禁IP地址一样封禁整个网段。

If you want to deny everyone from accessing a directory, you can use:
如果你想阻止所有人访问该目录,则可以使用:

程序代码:
deny from all

but this will still allow scripts to use the files in the directory.
不过这并不影响脚本程序使用这个目录下的文档。

Alternative Index Files 替换index文件

You may not always want to use index.htm or index.html as your index file for a directory, for example if you are using PHP files in your site, you may want index.php to be the index file for a directory. You are not limited to 'index' files though. Using .htaccess you can set foofoo.blah to be your index file if you want to!
也许你不想一直使用index.htm或index.html作为目录的索引文件。举例来说,如果你的站点使用PHP文件,你可能会想使用index.php来作为该目录的索引文档。当然也不必局限于“index”文档,如果你愿意,使用.htaccess你甚至能够设置foofoo.balh来作为你的索引文档!

Alternate index files are entered in a list. The server will work from left to right, checking to see if each file exists, if none of them exisit it will display a directory listing (unless, of course, you have turned this off).
这些互为替换的索引文件可以排成一个列表,服务器会从左至右进行寻找,检查哪个文档在真实的目录中存在。如果一个也找不到,它将会把目录列表显示出来(除非你已经关闭了显示目录文件列表)。

程序代码:
DirectoryIndex index.php index.php3 messagebrd.pl index.html index.htm

Redirection 重定向

One of the most useful functions of the .htaccess file is to redirect requests to different files, either on the same server, or on a completely different web site. It can be extremely useful if you change the name of one of your files but allow users to still find it. Another use (which I find very useful) is to redirect to a longer URL, for example in my newsletters I can use a very short URL for my affiliate links. The following can be done to redirect a specific file:
.htaccess最有用的功能之一就是将请求重定向到同站内或站外的不同文档。这在你改变了一个文件名称,但仍然想让用户用旧地址访问到它时,变的极为有用。另一个应用(我发现的很有用的)是重定向到一个长URL,例如在我的时事通讯中,我可以使用一个很简短的URL来指向我的会员链接。以下是一个重定向文件的例子:

程序代码:
Redirect /location/from/root/file.ext
http://www.othersite.com/new/file/location.xyz

In this above example, a file in the root directory called oldfile.html would be entered as:
上述例子中,访问在root目录下的名为oldfile.html可以键入:

程序代码:
/oldfile.html
and a file in the old subdirectory would be entered as:
访问一个旧次级目录中的文件可以键入:

程序代码:
/old/oldfile.html


You can also redirect whole directoires of your site using the .htaccess file, for example if you had a directory called olddirectory on your site and you had set up the same files on a new site at: http://www.newsite.com/newdirectory/ you could redirect all the files in that directory without having to specify each one:
你也可以使用.htaccess重定向整个网站的目录。假如你的网站上有一个名为olddirectory的目录,并且你已经在一个新网站 http://www.newsite.com/newdirectory/上建立了与上相同的文档,你可以将旧目录下所有的文件做一次重定向而不必一一声明:

程序代码:
Redirect /olddirectory http://www.newsite.com/newdirectory

Then, any request to your site below /olddirectory will bee redirected to the new site, with the
extra information in the URL added on, for example if someone typed in:
这样,任何指向到站点中/olddirectory目录的请求都将被重新指向新的站点,包括附加的额外URL信息。例如有人键入:

程序代码:
http://www.youroldsite.com/olddirecotry/oldfiles/images/image.gif
They would be redirected to:
请求将被重定向到:

程序代码:
http://www.newsite.com/newdirectory/oldfiles/images/image.gif

This can prove to be extremely powerful if used correctly.
如果正确使用,此功能将极其强大。


25  生活百事 / 电脑数码 / .htaccess使用指南 于: 四月 30, 2007, 11:38:21 pm
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
http://www.thinkjam.org/zoptuno/archives/2006/04/htaccess.html

Apache服务器的.htaccess是一个非常强大的分布式配置文件,学会使用.htaccess,对虚拟主机用户来说,可以实现众多的功能。这里有一篇很容易让人理解的.htaccess介绍,作为入门文章非常的适合。文章最初来自freewebmasterhelp.com,QiRan作了简单的中文翻译,我将加以完善。

Part 1 – Introduction介绍
Part 2 - .htaccess Commande命令
Part 3 - Password protection密码保护
Part 1 – Introduction介绍

Introduction 介绍

In this tutorial you will find out about the .htaccess file and the power it has to improve your website. Although .htaccess is only a file, it can change settings on the servers and allow you to do many different things, the most popular being able to have your own custom 404 error pages. .htaccess isn't difficult to use and is really just made up of a few simple instructions in a text file.
从本指南中,你将可以学习到有关.htaccess文件及其功能的知识,并用以优化你的网站。尽管.htaccess只是一个文件,但它可以更改服务器的设置,允许你做许多不同的事情,最流行的功能是您可以创建自定义的“404 error”页面。.htaccess 并不难于使用,归根结底,它只是在一个text文档中添加几条简单的指令而已。

Will My Host Support It? 我的主机支持它吗?

This is probably the hardest question to give a simple answer to. Many hosts support .htaccess but don't actually publicise it and many other hosts have the capability but do not allow their users to have a .htaccess file. As a general rule, if your server runs Unix or Linux, or any version of the Apache web server it will support .htaccess, although your host may not allow you to use it.
这可能很难用简单的答案来回答。许多主机支持.htaccess,但实际上并不会特别声明,许多其他类型的主机有能力但并不允许他们的用户使用.htaccess。一般来说,如果你的主机使用Unix或Linux系统,或任何版本的Apache网络服务器,从理论上都是支持.htaccess的,尽管你的主机服务商可能不允许你使用它。

A good sign of whether your host allows .htaccess files is if they support password protection of folders. To do this they will need to offer .htaccess (although in a few cases they will offer password protection but not let you use .htaccess). The best thing to do if you are unsure is to either upload your own .htaccess file and see if it works or e-mail your web host and ask them.
判断你的主机是否允许.htaccess,一个标志很好的是它是否支持文件夹密码保护。为达到此功能,主机服务商需要使用.htaccess(当然,少数情况下他们虽提供密码保护功能,但却并不允许你使用.htaccess)。如果你不确定自己的主机是否支持.htaccess,最好的办法是上传你自己的.htaccess文件看看是否有用,或者直接发送e-mail向你的主机服务商咨询。

What Can I Do? 我该怎么做?

You may be wondering what .htaccess can do, or you may have read about some of its uses but don't realise how many things you can actually do with it.
你可能疑惑.htaccess到底能做些什么,或者你可能曾知道它的一些功能但并不真正了解你实际到底可以用它来做多少事情。

There is a huge range of things .htaccess can do including: password protecting folders, redirecting users automatically, custom error pages, changing your file extensions, banning users with certian IP addresses, only allowing users with certain IP addresses, stopping directory listings and using a different file as the index file.
.htaccess可以做大量的事情,包括:文件夹密码保护、用户自动重定向、自定义错误页面、改变你的文件扩展名、封禁特定IP地址的用户、只允许特定IP地址的用户、禁止目录列表,以及使用其他文件作为index文件。

Creating A .htaccess File 创建一个.htaccess文档

Creating a .htaccess file may cause you a few problems. Writing the file is easy, you just need enter the appropriate code into a text editor (like notepad). You may run into problems with saving the file. Because .htaccess is a strange file name (the file actually has no name but a 8 letter file extension) it may not be accepted on certain systems (e.g. Windows 3.1). With most operating systems, though, all you need to do is to save the file by entering the name as:
创建.htaccess文件也许会给你带来一些困难。写文件很容易,你只需要在文字编缉器(例如:写字板)里写下适当的代码。真正困难的可能是文件的保存,因为.htaccess是一个古怪的文件名(它事实上没有文件名,只有一个由8个字母组成的扩展名),而在一些系统(如windows 3.1)中无法接受这样的文件名。在大多数的操作系统中,你需要做的是将文档保存成名为:

".htaccess"(including the quotes). If this doesn't work, you will need to name it something else (e.g. htaccess.txt) and then upload it to the server. Once you have uploaded the file you can then rename it using an FTP program.
(包括引号)。如果这也不行,你需要将其先命名为其它名字(例如htaccess.txt),再将其上传到服务器上,之后直接使用FTP软件来重命名。

Warning 警告

Before beginning using .htaccess, I should give you one warning. Although using .htaccess on your server is extremely unlikely to cause you any problems (if something is wrong it simply won't work), you should be wary if you are using the Microsoft FrontPage Extensions. The FrontPage extensions use the .htaccess file so you should not really edit it to add your own information. If you do want to (this is not recommended, but possible) you should download the .htaccess file from your server first (if it exists) and then add your code to the beginning.
在使用.htaccess之前,我必须给你一些警告。虽然在服务器上使用.htaccess绝对不太可能给你带来任何麻烦(如果有些东西错了,它只是没效用罢了),但如果你使用Microsoft FrontPage Extensions,就必须特别小心。因为FrontPage Extensions本身使用了.htaccess,因此你不能编辑它并加入你自己的信息。如果确实有这方面的需要(并不推荐,但是可能),你应该先从服务器上下载.htaccess文档(如果存在),之后在前面加上你的代码。

Custom Error Pages 自定义错误页

The first use of the .htaccess file which I will cover is custom error pages. These will allow you to have your own, personal error pages (for example when a file is not found) instead of using your host's error pages or having no page. This will make your site seem much more professional in the unlikely event of an error. It will also allow you to create scripts to notify you if there is an error (for example I use a PHP script on Free Webmaster Help to automatically e-mail me when a page is not found).
我要介绍的.htaccess的第一个应用是自定义错误页面,这将使你可以拥有自己的、个性化的错误页面(例如找不到文件时),而不是你的服务商提供的错误页或没有任何页面。这会让你的网站在出错的时候看上去更专业。你还可以利用脚本程序在发生错误的时候通知你(例如我使用Free Webmaster Help的PHP脚本程序,当找不到页面的时候自动e-mail给我)。

You can use custom error pages for any error as long as you know its number (like 404 for page not found) by adding the following to your .htaccess file:
你所知道的任何页面错误代码(像404找不到页面),都可以通过在.htaccess文件里加入下面的文字将其变成自定义页面:

For example if I had the file notfound.html in the root direct
ory of my site and I wanted to use it for a 404 error I would use:
举例来说,如果我的根目录下有一个nofound.html文件,我想使用它作为404 error的页面:

程序代码:
ErrorDocument 404 /notfound.html

If the file is not in the root directory of your site, you just need to put the path to it:
如果文件不在网站的根目录下,你只需要把路径设置为:

程序代码:
ErrorDocument 500 /errorpages/500.html

These are some of the most common errors:
以下是一些最常用的错误:

程序代码:
401 - Authorization Required 需要验证
400 - Bad request 错误请求
403 - Forbidden 禁止
500 - Internal Server Error 内部服务器错误
404 - Wrong page 找不到页面

Then, all you need to do is to create a file to display when the error happens and upload it and the .htaccess file.
接下来,你要做的只是创建一个错误发生时显示的文件,然后把它们和.htaccess一起上传。

26  相聚蒙城 / 渔民之家 / 钓点评论:激流公园 于: 四月 30, 2007, 12:37:31 am
Lachine rapide(激流公园), 58路公交车到底,延着河边走一里地的样子

公布你的战果吧,有图片最好噢 偷笑
27  相聚蒙城 / 渔民之家 / 钓点评论:老港公园 于: 四月 30, 2007, 12:32:22 am
MONTREAL河流众多,如何选择岸钓地点是钓到鱼的关键之一,那么就简单分析一下MONTREAL著名的老港为何产鱼量如此之大吧:


首先,钓鱼的岛公园实际是人为堆积成的,岛屿坐落在湍急的劳伦丝河中间,岛尖下游处形成大的天然回流,沙石河底,氧气丰富,此种环境适合SM BASS,WALLEYE,SUCKER和ROCKBASS的生存,这是其一;另外一方面大石堆砌的河床又给小鱼虾们的生存提供了必要的保障,当然它们本身就是食物,勾引大鱼留恋此地。岛屿靠城市方向是深深的航道,那里停留了大多鱼友神往很久的STURGEON,当然还有著名的CATFISH和DRUM。这么优越的地形,如何不使老港成为MONTREAL最著名的钓点之一呢?!


其次,从鱼本身来讲,除了大STERGEON外(对此鱼不了解,没发言权),试想哪种喜欢氧气的鱼会成天都呆在深水急流里锻炼身体?吃肉的就要找有肉的地方,小鱼虾在哪儿就哪儿找肉吃,而这些肉也只能在有回流有石头的地方藏着,由此可见,有回流的地方你喜欢的吃荤的鱼早晚会出现,而且,它们不是饭点儿离得也不会太远。作为鱼,饭点儿进餐,其他时间睡觉健身外加业余活动,老港能够满足所有这些要求,自然成为天然鱼仓。。。

如何开车去?
从Downtown以西来: 720 East take exit Montagne/St. Jacques(You have to change to the rightest lane before entering 隧道), 然后从右侧出口出来开至Rue Notre-Dame左拐,再直行至Rue University(在此口有两个红绿灯,在第二个红绿灯处右拐上10East), …
从Downtown以东来: 想法开到Rue University,然后上10East,…
…, 在10east第一个出口(即2号口)出来, 直行在第二个红绿灯左拐(即是Av. Pierre-Dupuy, 去Casino方向),直行至上桥前,右拐至右侧小路既是目的地(旁边是蝶式公寓).往前开桥下面是停车场,下车后继续往前走两三分钟就是。
从南岸来: 10west(oust) take exit Pierre-Dupur/Casino(maybe 3), then follow above direction.

公布你在老港公园的战况吧!
28  相聚蒙城 / 渔民之家 / 钓鱼地点大放送 于: 四月 29, 2007, 09:57:12 pm
南岸的鲤鱼窝


45°25'29.79"N 73°29'18.80"W
29  广而告之 / 房屋租售 / Re: 【推荐】“鸿运”搬家机场接送服务514-996-8138 ( 潘 ) 于: 四月 20, 2007, 04:34:31 pm
建议您将这样的广告,发到 “蒙城华商黄页”!

多谢合作 眨眼
30  广而告之 / 工作创业 / PHP / MySQL Programmer 于: 四月 15, 2007, 04:41:40 pm
       
We are currently seeking experienced PHP/MySQL developers for full time employment. Must fullfil the following requirements:

Experience in developing and successfully deploying a web-based applications.
BSc Computer Science or related discipline
Advanced PHP programmer - experienced with PHP, MySQL.
Solid understanding of OOP/OOD
Proficient in XML, CSS, HTML, AJAX, JavaScript, Linux and Apache.
Must be familiar with ZEND framework and have experience in developing in this environment
ZEND Coding Standard - http://framework.zend.com/wiki/display/ZFDEV/PHP+Coding+Standard+(draft)
Experienced in e-commerce development and strong knowledge of e-commerce developing security issues.
Familiar with Web Services
Familiar with Template Engine Technology, such as Smarty.
Bilingual communication skills (English/French).
Required min. 2 + years of industry experience. Experience in working with global clients will be an advantage.
Familiar with customization of common Open Source CMS (ex. Joomla!)

Jimmelon@gmail.com
 
页: 1 [2] 3

Sponsored Links