 |
| Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

September 1st, 2004, 04:55 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
FSO Checking if images exist
Hello
Can somebody tell me if this is a bad idea and if it would put a strain on the server or offer up another idea.
What I have is a site that deals with a lot of time based images in different categories. We upload the images to an offline holding folder, then move them over to the live folder at a specified time. Now my question is sometimes for some reason or other an image is not getting transfered and it's missing on the page. Is it a bad idea to have the FSO object check for every file when the page is hit and notify me if something is missing. The server has a lot of traffic and lot of images. Before I do anything I would just like some opinions.
Thanks
Mike
__________________
Peace
Mike
http://www.eclecticpixel.com
|
|

September 1st, 2004, 05:58 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
Iâm sure you have a good reason to do this, why would you put images in an off line holding folder?
Is it a staging server? (about the only reason I can think of)
If so the script that does the push needs to be looked at if one, or any of the images failed to get pushed out. Perhaps I have made the wrong assumption why you are using this method?
As far as straining the server resources, I'll also be interested in other more experienced opinions on this one. I guess 'allot of traffic' and 'allot of images' would have to be better defined.
BTW:
;;then move them over to the live folder at a specified time
Are these files getting moved manually by a human or a push script?
If they are getting moved by a human, automate this process to eliminate any possible human error. This way no files will failed to be pushed
Wind is your friend
Matt
|
|

September 1st, 2004, 07:16 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The images are acutally ads with prices on them. That is why they are offline as such, I do not want anybody figuring out how to look up the images early. I do have an automated script to push the images out and send me a report. There are lot of files and the other day I didn't get a report (shared server), so I am not sure what all was missed, I am looking at using the FSO If File Exist for backup, to notify me or maybe grab the file and move it at this point. This is the first time this has happened. I just dislike all the complaint emails and thought something like this could help prevent problems in the future.
Thanks
Mike
|
|

September 1st, 2004, 07:35 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
I see, very interesting post!! I am intrigued to hear what the high level p2p techos have to say on this one.
I would:
a..Not make the price part of the image, this eliminates the need to push images or have any kind of staging area for them.
b..Lay the price in an adjacent <td> to make it appear as part of the image
OR
code the price in a layer with a z index so it appears on top of the image, also making it look like it's part of the image.
NOTE: then the price can come from a DB query at a specific time:
if recordSet("dateToAppear") => "whatTimeYouWantItToAppear" then
response.write recordSet("priceValue")
else
response.write "Price comming soon"
end if
This also eliminates the need for the FSO
HTH
Wind is your friend
Matt
|
|

September 1st, 2004, 08:17 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
The ads themselves images with the prices have to be the images, due to the quantity pages and timeframe to produce them. We're talking something like 100 pages or more during holidays.
|
|

September 1st, 2004, 09:02 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
Keeping the same images on the page and populating the price dynamically with a web form would save you a huge mount of time by the sounds of things. Perhaps you understood the method I was suggesting or perhaps not.
Anyway, I would build the web form with three fields:
Image for price change : (drop down box of image names or id's)
Price : (enter price to display)
Date/time to change price: (choose date to swap old price with the new)
This way not only could you or any of your employees change any price 'remotly' at any time, you could do it sitting on kite beach in Maui while waiting for the see breezes to kick up for the day. (Beware kitesurfing is taking over the world)
Also done this way you could update 100's of prices on 100's of pages by completing a simple web form X amount of times. Then add another table to archive old prices.... etc
;;The ads themselves images with the prices have to be the images
If I may say so. You choose them to be images, providing I have understood your post I donât believe they have to be.
All this said, if your site is static and does not use a database I guess you cant do any of what Ive said.
Wind is your friend
Matt
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Need Help with FSO.GetFile |
paulnoe |
Classic ASP Basics |
4 |
December 20th, 2006 06:03 AM |
| fso error |
merck_04 |
.NET Framework 1.x |
0 |
October 18th, 2006 05:53 AM |
| Problems loading images via FSO |
nancy |
Classic ASP Databases |
5 |
April 22nd, 2005 10:53 AM |
| FSO |
mikedeepak |
Classic ASP Databases |
5 |
August 4th, 2004 05:55 AM |
| FSO |
mikedeepak |
Classic ASP Databases |
0 |
August 4th, 2004 12:35 AM |
|
 |