PDA

View Full Version : FTPing & Editing PHP Files


Curt
02-23-2001, 02:38 PM
In my past life I did some work with Perl and I had to use ASCII mode to FTP the CGI files to my server. My question is does it matter if I FTP the PHP file in ASCII or Binary?

My second question is what program (other then note pad) have you all found useful for editing PHP files? I am looking for something that will display the line numbers?

Thanks,

Annette
02-23-2001, 03:58 PM
For purposes of our servers, the only files that always, without exception, must be transferred in ASCII are cgi scripts with extensions of .cgi and .pl. If you up/download a cgi script in binary and then open it in notepad (or your favorite text editor), you'll see control characters that have been inserted at the end of each line. This kills the script's ability to function properly. With regular server-parsed text files (.htm/l, .php/3), any control characters that are inserted by the up/download process do not affect the functionality of the file itself.

Another good text editor is editpad, which you can see here:
http://www.editpadpro.com/editpadclassic.html