I'm still quite a noob when it comes to programming and web development and so forth. I've limped along pretty well learning PHP and MySQL. I love it.

But now I'm getting close to launching my websites and there's been a problem I've had in Dreamweaver I can no longer ignore. The problem is this: I've changed the default PHP folder from htdocs to a folder I created called "Web Pages". Since this is the only folder that the server is pointed to for rendering PHP pages, I've had to create all of my Dreamweaver sites under this folder.

So lets say that that I have sites (folders) A, B, C, and D all created under the folder Web Pages. Lets say I'm working on site "A". I open the Site Manager in DW for Site A and I've set the site to the following:

Local Info:
[INDENT]Local Root Folder: Web Pages/Site A[/INDENT]
[INDENT]HTTP Address: Localhost[/INDENT]

Testing Server:
[INDENT]Testing Server Folder: Web Pages/Site A[/INDENT]

Results with this configuration when I try to preview the web page: Object Not Found!!!

So when I point the Testing Server Folder using the actual path, the pages of the website can't be found. But when I change the testing server folder to the following...

Local Info:
[INDENT]Local Root Folder: Web Pages/Site A[/INDENT]
[INDENT]HTTP Address: Localhost[/INDENT]

Testing Server:
[INDENT]Testing Server Folder: Web Pages[/INDENT]

...the web pages come right up when I preview them.

But that's not the end of it. When I do pull the pages up under this configuration, the pages that I've pulled up are copied into the Web Pages folder. So these pages are originally contained in Site A, then I preview them, then they get duplicated (not moved) into the Web Pages folder.

I must be fundamentally not understanding something about folder management. I'm probably doing more than one thing wrong, too. Any advice? 🙂

    In the site options there is a setting that lets you choose whether or not to create a temp file for previewing. Also for your HTTP setting it should be http://localhost/site a. or whatever site it happens to be

      ShawnK wrote:

      In the site options there is a setting that lets you choose whether or not to create a temp file for previewing. Also for your HTTP setting it should be http://localhost/site a. or whatever site it happens to be

      Thanks for the reply. I can't find the temp file option. I tried your 2nd suggestion and I can now preview the web site from the correct folder. But its still copying the previewed pages inside the folder. For example, when I preview a page in Site A, DW creates a new folder in Site A called "Site A" and copies all previewed pages into it.

      So....😕

        Ah I found it goto Edit > Edit Preferances > Preview In Browser Tab, then there is an option that says: Preview Using Temporary File, uncheck that...thats what did it for me.

          14 days later

          You should look into vertual servers as it can solve a lot more problems than the one you're talking about, for eg links reletive to site like

          /yourdocument.html 

          instead of

          ../yourdocument.html

          another benifit is that you can have multiple domains on your local machine eg

          http://yoursite, 
          http://anothersite, 
          http://onemoresite

          These are just a few benifits. There is a lot more vitural servers can do

            Write a Reply...