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?
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 files
Here the instructions on how to modify the file.
Related
I need to download a lot of large text files. To save traffic, I came up with the idea to automatically compress them between the source server and my computer.
What services are there for this?
If you own the source server you can compress the files stored there and send the compressed files. If you do not own the source server, I don't think there is much you can do.
So the images below were originally a vb files. I have just opened it and it looks like this and the compiler won't run it. I am unsure whether this is a compiler error or whether it may have become corrupt because the project is stored on an external drive. It is just these two forms that have broken like this; I have one other form and a module in the same project that are okay but the project can't run because of the two that are broke.
Broken Login Form
Broken Diary Form
If it changes anything, the designer files for the forms are intact it is just the scripting for the forms elements that is broken.
Also, if I can't identify the cause, is there a way to revert it back to the last working version in visual studio to get my code back? Just because I put a lot of time into it.
The data in those files is most likely gone.
IMPORTANT: Do not write anything to that disk drive unless you find that you cannot recover those files.
If you are using a version control system then you can revert to an earlier version.
If you are using Windows 10 and you happen to have stored those files in a location included in what File History saves, you can recover them from that.
If you use some other form of backup, retrieve the files from that.
If you have a separate disk drive with at least as much free space as the one with the corrupted files, you could try running file recovery software as it might be that the zeroed-out file was written to a different place on the HDD.
TinTnMn pointed out in a comment that if you previously compiled the code, you should have executable files in the "obj" and "bin" folders that can be decompiled to recover most of your work
It could be quicker to re-write the code while it is still fresh in your mind.
I Have a application on Clipper,DBF.
Is It Possible to access DBF file from FTP Server Using Clipper Program?
Thanks.
No, not really.
FTP is not a "shared folder". You can create a batch file which will download file via FTP, then run your clipper application, then after application finishes copy modified .DBF back to FTP server.
Note however that it will be slow (as you need to transfer whole .DBF file even if you need just a tiny bit of it) and that you MAY NOT use it at more than one place at a time (running it in more than one place will overwrite data, including possibility of file truncation/corruption)
There are utilities that present FTP as a filesystem ("shared folder"), for example curlftpfs, but while it allows you to just run .exe directly instead of via aforementioned .bat file, ALL THE LIMITATIONS mentioned in previous paragraph still apply - it is not possible to avoid them due to nature of FTP.
In my application, i have one exe file that will do some conversion on my videofiles in a directory, and also i have used cute ftp to transfer the files present in the directory to another server.
CUTE FTP is configured to be run on every mins.
When 25% of job is over for a video file, CUTEFTP is transferred that file to other server.
What are the ways to fix this problem.
Process the file in a different directory and then move it to a place where CUTE FTP will pick it up after the conversion is finished.
[EDIT] Don't use copy, use move. Both directories must be on the same harddisk. When using the Windows Explorer, use "Cut" or just drag the file with the mouse. Make sure there is no little "[+]" when you drop it.
I have a website hosted on GoDaddy windows servers. I want to move the website to another server. I tried to download the whole website files via FTP but there are some files which named in Arabic and when my FTP client (FireFTP) tries to save them on my pc, the file name becomes underscores (e.g. _______.jpg). I cannot change the file names because they are linked from the database (the website is a DotNetNuke CMS).
I am wondering if this problem is due to the FTP server itself or the FTP client I'm using?
I finally could solve this by writing a script (in ASP.NET/C#) to rename all files to numbers (e.g. 1.jpg, 2.doc ....) and then download the renamed files though FTP. The script also genrates commands to rename the files back to the original names in Arabic.