Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Dynamic Incude
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dynamic Incude

 Post Reply Post Reply Page  123>
Author
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Topic: Dynamic Incude
    Posted: 10 February 2004 at 2:45am

Hi, I looked and some of the other threads, talking about the Dynamic Include in ASP, but they didn make it to any conclusion..

I am making something lyk Multiple skins for Web WIz Forums, I'm not working on a mod or something like that, any how, i want to dynamic include the navigation button inc file, i am gona work out about 100 Skins so i cannot use the "Case" thing, Server.Execute, Atleast with my server, works perfect, and even if i use Variables, it still executes it, but the problem is that my PWS dosent support this... and i need to test my work of 100 skins before i upload it, and upload is a big troubble for me, there are lots of files etc, but what i wana ask is

Can i make my PWS to be able to run the Server.Execute command ?

is there any way i can Dynamically Include a file ?

P.S I'm gona read the file name variable from the DB

Please Help!! I'm STUCK right in the middle of my site

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2004 at 5:05pm
The only way to do a dynamic include is Server.Execute variable. And it should work in PWS.
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2004 at 5:36pm

its not possible to dymamically include a file with the #include statement, as thats preprocessing..

server.execute and server.transfer wont work the same way, as the variables in a executed page wont affect the executing page and vice versa..

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2004 at 7:26pm

so let's sum this topic up right now so there's no confusion...

THIS IS HOW YOU SOLVE THE DYNAMIC INCLUDE PROBLEM IN ASP!!! IF ANYONE ELSE ASKS THIS QUESTION I'M GOING TO EXPLODE!

Server.Execute("/folder/subfolder/" & myVariableContainingFileName)

 

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: 10 February 2004 at 8:00pm
Originally posted by pmormr pmormr wrote:

so let's sum this topic up right now so there's no confusion...

THIS IS HOW YOU SOLVE THE DYNAMIC INCLUDE PROBLEM IN ASP!!! IF ANYONE ELSE ASKS THIS QUESTION I'M GOING TO EXPLODE!

Server.Execute("/folder/subfolder/" & myVariableContainingFileName)

Do it on a webcam. Sell subscriptions

For coming up with this great little money maker, I get tto be the one who asks the question!


Lead me not into temptation... I know the short cut, follow me.
Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 1:04am
Originally posted by pmormr pmormr wrote:

so let's sum this topic up right now so there's no confusion...

THIS IS HOW YOU SOLVE THE DYNAMIC INCLUDE PROBLEM IN ASP!!! IF ANYONE ELSE ASKS THIS QUESTION I'M GOING TO EXPLODE!

Server.Execute("/folder/subfolder/" & myVariableContainingFileName)

LMAO. In a way, I'm disappointed that I don't have as much time to spend around here these days, however when I see posts like these.. I'm relieved. 

The number of times I answered this particular question, and especially trying to convince other members that this was not possible (ie. MadDog who swore it was possible and even had an article about it on his site) makes you wonder!

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 5:16am
Originally posted by pmormr pmormr wrote:

so let's sum this topic up right now so there's no confusion...

THIS IS HOW YOU SOLVE THE DYNAMIC INCLUDE PROBLEM IN ASP!!! IF ANYONE ELSE ASKS THIS QUESTION I'M GOING TO EXPLODE!

Server.Execute("/folder/subfolder/" & myVariableContainingFileName)

 

Server.Execute DOSE NOT work on PWS

I just wrote that above

Back to Top
neotrix View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 09 November 2003
Location: Pakistan
Status: Offline
Points: 433
Post Options Post Options   Thanks (0) Thanks(0)   Quote neotrix Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2004 at 5:19am
Originally posted by Bunce Bunce wrote:

Originally posted by pmormr pmormr wrote:

so let's sum this topic up right now so there's no confusion...

THIS IS HOW YOU SOLVE THE DYNAMIC INCLUDE PROBLEM IN ASP!!! IF ANYONE ELSE ASKS THIS QUESTION I'M GOING TO EXPLODE!

Server.Execute("/folder/subfolder/" & myVariableContainingFileName)

LMAO. In a way, I'm disappointed that I don't have as much time to spend around here these days, however when I see posts like these.. I'm relieved. 

The number of times I answered this particular question, and especially trying to convince other members that this was not possible (ie. MadDog who swore it was possible and even had an article about it on his site) makes you wonder!

Can u please read the question before you include it in the list of other 10,000 questions you answered

Back to Top
 Post Reply Post Reply Page  123>

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.