Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Strange Happenings with File Manager


rockwell

Recommended Posts

Hi

I am experiencing strange effects when using File Manager. Each time I edit and save a file a number of blank lines are inserted between each line of code. as you can imagine, after a few edits there are huge gaps between each line of code!

Any ideas?

Kind Regards

Garry

Link to comment
Share on other sites

the latest is here:

http://www.oscommerce.com/solutions/downloads

 

Did you download the archive from this site or from somewhere else? Usually you do the file editing locally and then upload to the server the moded files. Because you never know, if you get a problem with the connection it may corrupt the file and lose the changes. Editing locally gives you the advantage of having a backup and of course if you use version control for the changes a local copy is required.

Link to comment
Share on other sites

well you could debug the string that is saved. Its in the file_manager.php file

 

	  case 'save':
	if ($fp = fopen($current_path . '/' . $HTTP_POST_VARS['filename'], 'w+')) {
	  fputs($fp, stripslashes($HTTP_POST_VARS['file_contents']));
	  fclose($fp);
	  tep_redirect(tep_href_link(FILENAME_FILE_MANAGER, 'info=' . urlencode($HTTP_POST_VARS['filename'])));
	}
	break;

 

The $HTTP_POST_VARS['file_contents'] is the one you want to see its contents. Or you could use an external regular editor instead.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...