Skip to main content
Inspiring
January 24, 2017
Answered

How should I view file changes on a testing server?

  • January 24, 2017
  • 2 replies
  • 463 views

How are people viewing their files when they are ready to test their work? Importantly, my file is pulling data from a database.

In the past, I used F12 to send a file to a testing server. From there, my file could interact with a mySQL database and I could test my code. With DW2017, pressing F12 either opens a file in localhost or as a file(i.e. file:///C:/Users/...), but the file cannot interact with the mySQL database. To do so, I have to access the changed file on the testing server (i.e. have a browser open then refresh the browser using F5).

Is there a better way?

This topic has been closed for replies.
Correct answer Rob Hecker2

It sounds like you are using a three environment workflow. Local system for development, testing server, and live server. I think most of us combine the first two--we use a webserver installed on our local computer to make the development and testing environments the same. You can also replicate your database in your local environment.

You can even use the Operating system and web server to create virtual hosts to simulate domain names on your local machine. For instance, if I have a website called thewebsite.com, typing just "thewebsite" in my browser opens the local version.

You asked for confirmation that. . .

To interact with a file on the server, you will have to type in the web address to it in your browser.

If you want to interact with the html and php pages the way a website visitor would, then yes, except that you could alternatively use the ip address, something like this:

http://12.12.247.35/~accountusername

2 replies

Rob Hecker2
Rob Hecker2Correct answer
Legend
January 25, 2017

It sounds like you are using a three environment workflow. Local system for development, testing server, and live server. I think most of us combine the first two--we use a webserver installed on our local computer to make the development and testing environments the same. You can also replicate your database in your local environment.

You can even use the Operating system and web server to create virtual hosts to simulate domain names on your local machine. For instance, if I have a website called thewebsite.com, typing just "thewebsite" in my browser opens the local version.

You asked for confirmation that. . .

To interact with a file on the server, you will have to type in the web address to it in your browser.

If you want to interact with the html and php pages the way a website visitor would, then yes, except that you could alternatively use the ip address, something like this:

http://12.12.247.35/~accountusername

BenPleysier
Community Expert
Community Expert
January 24, 2017

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
SiHoopAuthor
Inspiring
January 25, 2017

Unfortunately this does not open the file on the server. Only in localhost.

pziecina
Legend
January 25, 2017

To interact with a file on the server, you will have to type in the web address to it in your browser.