Support Forums


Go Back   68 Classifieds Forums > Help & Support > Modules / Plugins / Modifications

Notices

 
LinkBack Thread Tools Display Modes
Old 10-29-2008, 08:00 AM   #11
Senior Member
 
free2take's Avatar
 
Join Date: Mar 2006
Location: Ireland
Posts: 228
Rep Power: 19
free2take is a jewel in the rough
Default

Yes using shared hosting, am hoping to get it tested on live site sometime this week.

I've looked at several local classifieds that do the same thing whom I know are on shared hosting and this approach seems to work for them.

I am aware that this approach will be effected by both size and quantity of photo's, but as of yet I haven't seen anyone attempt it on 68C so fingers crossed a good middle ground can be struck...
__________________
v4.08
free2take is offline   Reply With Quote
Old 10-29-2008, 08:08 AM   #12
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 841
Rep Power: 21
bowers01 is on a distinguished road
Default

As long as it doesnt try and upload all the photos in one hit it should be right(do one a a time)? Is this correct or not?
Nick
__________________
Nick Bowers
68c v4.09 Developer Custom Template
bowers01 is online now   Reply With Quote
Old 10-29-2008, 08:45 AM   #13
Coder
 
Join Date: Mar 2006
Posts: 4,562
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by bowers01 View Post
As long as it doesnt try and upload all the photos in one hit it should be right(do one a a time)? Is this correct or not?
Nick
Most shared hosting has php.ini settings that allow areasonable sized upload so that really isnt my main concern.

What concerns me is the amount of memory shared hosting allows php scripts to use. Ive covered this in great detail on the forums before but in short jpg images need to be uncompressed to be resized. A 1 megapixel jpg image when uncompressed uses about 8 meg of memory. Many hosts only allow 16mg of memory for php use so uploading 2 images would cause the script to run out of memory, white screen, game over.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 10-29-2008, 09:27 AM   #14
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,191
Rep Power: 30
seymourjames has a spectacular aura about
Default

Clearly you know a lot about this Larry. What would you suggest? one photo at a time? You would seem to be advising that one photo is the most robust direction to take. I do not think it would be a big problem that a user uploads one photo at a time to the number allowed - as is the case now. For me it would just be nicer if we could get the process for an advert down to 2-3 steps maximum. It has to be robust though. That is the main point.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 10-29-2008, 10:16 AM   #15
Senior Member
 
free2take's Avatar
 
Join Date: Mar 2006
Location: Ireland
Posts: 228
Rep Power: 19
free2take is a jewel in the rough
Default

I am testing a workaround for this issue which should completely avoid any of the server issues associated with resizing any image or uploading multiple images. This is not without its own limitations though, if it works great it not I may make a page as per current proces to handle images.

Once tested I'll post details.
__________________
v4.08

Last edited by free2take; 10-29-2008 at 10:23 AM.
free2take is offline   Reply With Quote
Old 10-29-2008, 12:54 PM   #16
Junior Member
 
Join Date: Jun 2008
Posts: 9
Rep Power: 0
Tobzy2p is on a distinguished road
Default

A multi-image uploader works fine on shared hosting. Our site loads up to 21 images at a time. Not a big deal. Never any trouble with server overload. Guns For Sale @ GunCanyon.com
Tobzy2p is offline   Reply With Quote
Old 10-29-2008, 04:45 PM   #17
Coder
 
Join Date: Mar 2006
Posts: 4,562
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by Tobzy2p View Post
A multi-image uploader works fine on shared hosting. Our site loads up to 21 images at a time. Not a big deal. Never any trouble with server overload. Guns For Sale @ GunCanyon.com
Tell that to the guy who just posted in the support foum getting white screens when uploading images.

Just because something works for you does not mean it works for everyone. Not all web servers are configured the same.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 10-29-2008, 05:00 PM   #18
Coder
 
Join Date: Mar 2006
Posts: 4,562
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by seymourjames View Post
Clearly you know a lot about this Larry. What would you suggest? one photo at a time? You would seem to be advising that one photo is the most robust direction to take. I do not think it would be a big problem that a user uploads one photo at a time to the number allowed - as is the case now. For me it would just be nicer if we could get the process for an advert down to 2-3 steps maximum. It has to be robust though. That is the main point.
The problem is simply people do not understand how all the pieces fit together and when an image upload fails they march on castle 68C with pitch forks and torches.

The ability for 68C to process uploaded images is not a limitation of 68C at all, but how PHP is configured on your web host. If you are on shared hosting and have no control over how much memory your PHP scripts are allowed to use then you are at the mercy of the host and must adjust things on your 68C site accordingly.

68C implemented pixel dimension checks in admin so that people could specify how large of an image(in pixel dimensions) could be uploaded. If a person does a little homework they can see what their web host has the memory_limit set to and set the pixel dimensions accordingly. If they fail to take advantage of this feature of the image class which I brought to light a while back they are setting themselves up to fail or have upload problems.

Now if the upload script processes images one at a time and frees memory between them then it shouldnt be any more of a problem that the current single image upload method and thats good thing.

free2take just need to make sure he understands how these things tie together so he can explain it to people using his mod because when people start having problems they are going to be marching with torches and pitchforks on his castle
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 10-29-2008, 05:45 PM   #19
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 1,191
Rep Power: 30
seymourjames has a spectacular aura about
Default

voting for Larry - one image at a time. Best to play it safe and keep a really useful module such as this one fully robust.
__________________
TemplateCodes.com
seymourjames is offline   Reply With Quote
Old 10-29-2008, 05:48 PM   #20
Junior Member
 
Join Date: Jun 2008
Posts: 9
Rep Power: 0
Tobzy2p is on a distinguished road
Default

Quote:
Originally Posted by Lhotch View Post
Tell that to the guy who just posted in the support foum getting white screens when uploading images.

Just because something works for you does not mean it works for everyone. Not all web servers are configured the same.
I don't mean to ruffle your feathers or start a fight here, but it worked just fine on four different US based, highly rated shared hosting accounts: hostmonster, hostgator, bluehost, and webhostingpad.

I want the module for the shorter checkout processing. I would hope it has the multi image uploader built in already, or as an option.




.

Last edited by Tobzy2p; 10-29-2008 at 05:52 PM.
Tobzy2p is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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
Page cannot be displayed during checkout BigOrange v3.1 Questions & Support 3 08-29-2008 01:21 PM
Checkout Step 2 atom v4 Questions & Support 7 07-01-2008 02:14 PM
Blank User Checkout Page discguy v4 Questions & Support 4 05-04-2008 10:11 PM
Where is checkout.js? civ v3.1 Questions & Support 2 06-24-2006 02:07 PM
Checkout Problems GSP v3.1 Questions & Support 8 05-04-2006 05:16 PM


All times are GMT -4. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0