Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Creating directories on the fly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Creating directories on the fly

 Post Reply Post Reply
Author
engxladso View Drop Down
Newbie
Newbie


Joined: 08 October 2006
Location: United Kingdom
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote engxladso Quote  Post ReplyReply Direct Link To This Post Topic: Creating directories on the fly
    Posted: 08 October 2006 at 12:29pm
I was wondering if it is possible to capture an http request to a page in a directory address that doesn't exist and then to create the requested directory and populate it with pages at run time.
 
More specifically is is it possible to capture an http request, say on session start in global.asa and then if on determining with script that the requested directory doesn't exist at that domain, use the file system object to create the directory and then copy generic pages from another directory to that directory before redirecting the request to the requested page.
 
If this is possible, does anyone know how long this kind of manipulation would take assuming that say a maximum of a dozen new sessions were created at  the same time.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 08 October 2006 at 6:18pm
If your host allows it, you can use a custom 404 page to intercept 404's, examine the page request causing the 404, create the directory/files with fso, and then redirect to the newly created directory.



Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.