在Windows(XP)和apache(2.2)下更改php中的磁盘驱动器 [英] Changing disk drive in php under windows(XP) and apache(2.2)

查看:89
本文介绍了在Windows(XP)和apache(2.2)下更改php中的磁盘驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是php的新手,我正在尝试开发一个php脚本,它将在我的apache服务器上的驱动器中返回有关CD上文件的信息。


opendir是指opendir。函数允许我获取我想要的文件信息,但似乎它不会打开另一个磁盘驱动器上的目录。

我也尝试从命令提示符执行此操作,结果相同。


php文档没有引用更改磁盘驱动器,我现在认为php不允许这样做。


任何人都可以告诉我如何做这个目录,或建议一些创造性的方法来实现它*没有

1.将CD复制到硬盘

2.使用"系统"写一个中间文件


谢谢,


Bob

I am a newbie at php, and am trying to develop a php script that will return information about the files on the CD in a drive that lives on my apache server.

The "opendir" function allows me to get the file information I want, but it seems that it will not open a directory on a different disk drive.
I have also tried to do this from a command prompt with the same results.

The php documentation makes no reference to changing disk drives, and I now think that php will not allow this.

Can anyone tell me how to do this "directory", or suggest some creative way to accomplish it *without
1. copying the CD to the hard drive
2. using "system" to write an intermediate file

Thanks,

Bob

推荐答案

可以你发布了你没有工作的代码?当你说opendir不能为此工作时,我不完全确定你是什么意思。
Could you post the code you have that doesn''t work? I''m not completely sure what you mean when you say that opendir doesn''t work for this.





这个程序我试图让它发挥作用是如此的骚扰,我必须让它恢复到我发布之前的工作方式,所以我会在第二天左右把它提起......


谢谢,


Bob
Hi,

This program is so hacked up from my trying to make it work, that I have to get it back to working like it did before I can post it, so I will put it up in the next day or so...

Thanks ,

Bob





我想这个是驾驶舱错误。删除所有补丁和额外的东西后,它开始在命令提示符下工作,但我仍然无法运行apache。它告诉我,我没有访问CD的权限(我知道任何输出文本都没有格式化而没有html标签)。

这是cd列表代码。如果你看错了会告诉我吗?


谢谢,


Bob


[PHP]


Hi,

I think this is "cockpit error". After I removed all of the patches and extra stuff, it started working under the command prompt, but I am still having trouble getting apache to run it. It is telling me that I do not have permission to access the CD ( I know that any output text would be unformatted without the html tags).
This is the cd listing code. If you see something wrong would you let me know?

Thanks,

Bob

[PHP]



这篇关于在Windows(XP)和apache(2.2)下更改php中的磁盘驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆