Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetFolder problem 1

Status
Not open for further replies.

A1Pat

IS-IT--Management
Jun 7, 2004
454
US
Hi all,

I'd learned how to create a photo album utilizing GetFolder technique instead of what I used to do before through database and recordset calling.

Problem is the page is working fine on my desktop but lookup while opening on my laptop. (Both are located in the /inetpub/ folder and are opened by
More detail: the website is opened ok on my laptop until I want to open the photo album page... the site just pauses and stands still... forever, while such page is opened just fine on my desktop. I don't see or don't know the different in setting between the two machines. Is it somekind of error that GetFolder used to created.

Moreover, when I loaded the site to my free web hosting server, the page is loading ok except that there's no folder nor files can be opened or displayed... like there were no GetFolder coding whatsoever in that page.

I'm puzzled!!!
 
Some "free" hosts (which are never free there is always a hidden cost) disable use of the FSO (File System Object)


to debug the problem use response.write to display the paths and folder names at the points where it appears to stop.

Avoid the use of hard coded physical paths and use server.mappath to get the physical path (drive:\folders\file.ext ) from a virtual path (/folder/file.ext)

Chris.

Indifference will be the downfall of mankind, but who cares?
Woo Hoo! the cobblers kids get new shoes.
People Counting Systems

So long, and thanks for all the fish.
 
To have a better understand whether the "free" webhost server I'm using is allowing such coding, as you suggested, I added couple response.write and response.end()... and realized the code from here on have no effect in the server:

Code:
set fo=fs.GetFolder(Server.MapPath(VirtualPath))

anything is written before this line is displayed.

So, I should understand the web server does not support the FSO as you described, right?
 
The one time I have run into this issue (continual lockup not timing out) has been as the result of either an anti-virus or anti-spyware applicaiton blocking file system access. Norton used to be especially bad about doing it and you would have to disable one of the "features" in order to get any access to File System objects from scripts. Otherwise you would get a loading screen that would ignore the normal timeout and just sit there and spin.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top