Sending Huge file to Client

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

Sending Huge file to Client

Post by phpcoder »

Hi,

I got a soap service which query a database an returns a whole stock list to the client. The stock list can be in size from 800K to 1.5MB. Could somebody tell me which is the best of of returning these sort of data to the client. The client suppose to display the whole list on website suing HTML. As its a shopping cart. Please let me know which is the best way to do this.

Thanks
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

a 1.5 MB shopping list? I must be mistaken....
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

The "best" way would be a way that the customer could actually use. You generally want to avoid making customers do a lot of scrolling. If you give them a huge 1.5 MB list of items, chances are that they won't read the whole list.

You need to break things up into categories and sub categories, and then display the lists with pagination.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Is there a lot of repitition in the xml returned by your soap service? i.e if some orders 1000 of the same item does it appear 1000 times or do you specify a quantity?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

Stick it on a couple of DVDs and pop it in the post. Nothing could possibly go wrong.

:twisted:
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

pagination FTW
Post Reply