Forums

This topic is locked

A Novel Idea for an Extension

Posted 08 Feb 2001 19:46:25
1
has voted
08 Feb 2001 19:46:25 Matt Homey posted:
I really wish I had time to learn how to write extensions. Here's the first one I'd write:

When you define a connection it UD4 you would input a local and remote(s) conn string. The connection asp file (in the Connections dir) would then have a simple case select statement that says:
select case request.servervariables("SERVER_NAME"
case "localhost"
MM_Twenty_Second_Air_Force_STRING = "dsn=22af;"
case "server.com"
MM_Twenty_Second_Air_Force_STRING = "Data Source=D:\Inetpub\WWWroot\db.mdb"
(and so on)
end select

This way you could have as many connections as you want based on what server is housing the pages.

Can anyone write this extension?

Thanks for the great site.



Sincerely,

Matt

www.betaparticle.com/matt

Replies

Replied 08 Feb 2001 20:05:23
08 Feb 2001 20:05:23 Waldo Smeets replied:
I don't think that this is possible. I'm almost sure that UD doesn't understand this. In UD4 the connection info is stored in only just 1 file and UD strongly depends on it's format. So when you are using UD4 you only have to change the string once when uploading.

Waldo Smeets - www.UDzone.com Webmaster
------------------------------------------
www.UDzone.com : A Dreamweaver, Dreamweaver
Ultradev and Fireworks site by developers
for developers.
------------------------------------------

Reply to this topic