Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

download problem (files without linebreaks)


Rolf

Recommended Posts

Hello,

when i download the zipped file and unkompress it on my computer i get files without linebreaks in it.

I tried with differnet browsers - same result. :cry:

Code is not readable while there are no breaks at the end of the line.

Is there any ftp-site where i can do a download in ASCII Mode?

Link to comment
Share on other sites

It's not a browser problem. It's an editor problem.

 

Different operating systems use different markings to indicate an end of line in a text file.

 

DOS/Windows use two characters, sometimes noted "r" and "n". Unix/Linux use only one of these, "n".

 

osCommerce uses the Unix convention. This is why some Windows editors (notepad comes to mind) are confused. They expect "rn" and get only "n".

 

Use a so-called programming editor. They all understand the Unix convention. I use UltraEdit and PHPEdit, but there are many others.

Christian Lescuyer

Link to comment
Share on other sites

Another possiblity I just ran into this past weekend when doing development on a another machine (MAC G4) was that the FTP tool in this case Fetch was configured wrong.

 

We also has some major issues with Dreamweaver MX on the FTP side of things. Once we changed the settings on the FTP tool we were able to see the code the proper way.

 

Dreamweaver MX has a auto format feature that restores formatting.

 

Try setting your FTP tool to ASCII mode rather than Binary mode.

 

I like HomeSite or PHPEDit as an editor

Loren

 

 

The great thing about beating your head against the wall is that it feels SO GOOD when you stop!

Link to comment
Share on other sites

Also, try Wordpad instead of Notepad. Wordpad will format it correctly. Though you really should get a proper editor. Having line numbers on the left hand side makes things a lot easier.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...