English 中文(简体)
我们是否可以在C或D轮驱动器中收发一个档案,或者从一个html/php方案档案中排出任何外侧驱动器(当地服务器)?
原标题:Can we acces a file in C or D drive or any out side drive from a html/php program file in in wamp webserver(localhost server)?

I have a simple html program. It has a link, targeted to a pdf file. Please see the program here filename : invoice.html

<a href="file://C:/invoice.pdf" target="_blank">My invoice</a>

在此,当我点击该链接时,pdf文档将开放。 工作良好。

Then I called the same file from my localhost wamp server. http://localhost/invoice.html.

...... 我从我的当地幽灵那里讲同样的方案,我的联系不是发挥作用!

你们可以解释一下,为什么它不发挥作用,或者我如何能够启动这一联系。 是否在阿帕奇服务器或营地中有任何选择?

问题回答

什么是“外侧驱动”?

我有一个简单的html方案。

超文本不是一种方案拟定语言——其数据构造/申报。

在此,我点击了链接...... Working well.... http:// localhost/invoice.html...not work

这是否意味着当你从档案系统直接装载超文本文档时,它就能够发挥作用?

为什么它不发挥作用,或者我如何能够启动联系

当然,它与Perl、PHP、Pharma和WAMP(你任的主角)毫无关系。 问题在于您。

是否在阿帕奇服务器或营地中有任何选择?

无,因为问题纯属客户。

我假定,目标文件存在于你管理浏览器的机器上。

如果你说,你用什么浏览器来测试,那会有所帮助。 我本会期望它工作。 你们是否收到错误信息?

did you check if apache server is running on localhost? try to stop and restart the server and check if it works.

用户方面与<代码>C:invoice.pdf的联系点。 我想知道这是你想要的。 更可能的是,你在<代码>d.conf上设立了另一个<代码>Directory 和alias,其中注明了C:,然后相应修改了链接。





相关问题
Why does my chdir to a filehandle not work in Perl?

When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...

How do I use GetOptions to get the default argument?

I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签