Dreamweaver 和通过 FTP 进行二进制 PUT
众所周知(不是吗?),Dreamweaver 上的 FTP 功能对于专业产品来说是不可原谅的,但我可以忍受,因为 Dreamweaver 还有其他比 FTP 更有用的功能。
然而,我有一个特定的 FTP 情况,这几年来一直困扰着我,希望有人能找到解决方案。
我们对某些 PHP 文件使用 ZEND 加密。 一旦执行此操作,文件就不再是文本文件(而是二进制文件)。
我的理解是,Dreamweaver 将所有内容都以二进制方式传输(也许我误解了?),但每次我使用 Dreamweaver 将这些 ZEND 加密的 PHP 文件上传(FTP)到服务器时,它们都不起作用(只是一个白屏 - 这意味着它们是腐败)。
我必须进入命令行 FTP、FTP 进入服务器,然后手动 PUT 文件(当然是在输入 BIN 之后)。 不太难,但增加了我宁愿避免的额外步骤。
是否有任何调整、工具、附加组件或任何东西可以强制 Dreamweaver 正确上传文件?
As we all know (don't we?), the FTP functionality on Dreamweaver is inexcusable for a professional product, but I bear with it because Dreamweaver has other useful stuff that overshadows the FTP.
However, I have a specific FTP situation which has been annoying me for a few years now, and was hoping someone had a solution.
We use the ZEND encryption on some PHP files. Once you do that, the files are no longer text file (but instead, binary files).
My understanding is that Dreamweaver FTPs everything as binary (maybe I misunderstand?), but each time I upload (FTP) those ZEND-encrypted PHP files to a server using Dreamweaver, they do not work (just a white screen -- meaning they are corrupt).
I have to drop into the command-line FTP, FTP into the server, and manually PUT the files (after typing BIN of course). Not too hard, but adds extra steps I would rather avoid.
Is there any adjustment, tool, add-on, or ANYTHING that will force Dreamweaver to upload the files correctly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您必须修改
FTPExtensionMap.txt
,这就是 Dreamweaver 用于选择 FTP 传输模式的内容。尽管这会使所有
.php
文件以二进制形式传输,但如果您要传回并返回,这可能不是您想要的。 Win/UNIX/Mac 其他非编码.php
文件这里是有关如何修改文件的说明。
Looks like you have to modify your
FTPExtensionMap.txt
, that's what Dreamweaver uses to select the FTP transfer mode.Although that would make all
.php
files to be transferred in BINARY, which may not be what you want if you're transferring back & forth between Win/UNIX/Mac other non-encoded.php
filesHere the instructions on how to modify the file.