osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

easypopulate- blank lines at top of file

This is a discussion on easypopulate- blank lines at top of file within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I am getting 18 blank lines at the top of pages i get from easypopulate. i2m trying to use it ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 03-25-2008, 04:20 PM
Lurker
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
oken is on a distinguished road
Default easypopulate- blank lines at top of file

I am getting 18 blank lines at the top of pages i get from easypopulate. i2m trying to use it for xml export so i need to remove these lines for correct formatting. does anyone have any idea why these blank lines are formed on top of file?

i'm modifying froogle csv file download option by the way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03-25-2008, 05:14 PM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 143
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 2
ALElder
Default Re: easypopulate- blank lines at top of file

Did you check your database and make sure you dont have some blank data in their. Also is it completely blank or does it have something in the "v_products_model" also does it end in EOREOR? I would check the first then look at the code you added.

Adam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 03-25-2008, 11:44 PM
Lurker
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
oken is on a distinguished road
Default Re: easypopulate- blank lines at top of file

I changed the following code as follows (besides many other changes) so the file has to start with xml header, but it still adds 18 blank lines before this header and programs cannot read the xml file giving error.

there is no EOREOR at the end of lines as I changed line break to \n but these blank lines start before the products are started to be inserted into file.




if ( $download == 'stream' or $download == 'tempfile' ){
//*******************************
//*******************************
// DOWNLOAD FILE
//*******************************
//*******************************
$filestring = ""; // this holds the csv file we want to download

if ( $dltype=='froogle' ){
// set the things froogle wants at the top of the file
$filestring .= " <?xml version=\"1.0\" encoding=\"iso-8859-9\" ?> \n";
$filestring .= "<Urunler>\n";

}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 03-26-2008, 03:40 AM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 143
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 2
ALElder
Default Re: easypopulate- blank lines at top of file

What ver of Ep you on? 2.76f

Does it give you the 18 lines no matter what file your downloading?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 03-26-2008, 10:06 AM
Lurker
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
oken is on a distinguished road
Default Re: easypopulate- blank lines at top of file

i've tested this code also on the live server and there was no problem!

it makes those blank lines only on the test server on my local machine which has exactly the same database as the live version. i suspect some sort of php, mysql etc. quirkiness. i'll try to check the reason later.

anyway, my problem is solved for now, thanks everyone.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Categories Box Lines help theengineer osCMax v2 Customization/Mods 0 09-10-2007 01:24 PM
Part of file appearing at top of screen? mq-james osCMax v2 Installation issues 0 08-09-2005 02:22 PM
"Top" Link Located top left corner of catalog. bgharder osCommerce 2.2 Modification Help 1 01-30-2005 05:35 AM
Froogle file mixes languages (Easypopulate 2.72) kjedr osCMax v1.7 Installation 0 10-21-2004 07:28 AM


All times are GMT -8. The time now is 09:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax