Yeah - maybe that'll work. Define two connections - one local
and the other
remote....
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"darrel" <notreal@nowhere.com> wrote in message
news:e9h01a$6dm$1@forums.macromedia.com...
>> In the Connections folder, my connection file has a
MySQL server
>> definition that is a local box's IP address. What
happens when I upload
>> these pages? Do I then have to break the connection
with the local
>> database in my local files, and re-specify the
remote connection info?
>> It makes sense that I would have to do it, but it
seems awkward to have
>> to go back and forth like that.....
>
> I can't speak to the specifics of PHP and MySQL, but in
ASP.net we us a
> config file to spec the db connection and, indeed, we
usually have a
> separate config file for local testing than we do for
remote testing.
>
> Can you have two connection files and then choose which
one to use
> programatically? Maybe have some PHP code that grabs the
current URL and
> if it's your IP, uses your local config and if it's the
domain, uses the
> remote config?
>
> -Darrel
>