Skip to main content
Participant
May 11, 2017
Question

Dreamweaver PHP Errors - Serious help needed

  • May 11, 2017
  • 4 replies
  • 841 views

I sound angry - I am... this should not be this difficult.
Two new PC computers - we installed Dreamweaver 17 and we can not access our PHP pages for our site. The code for the page comes up, but the images and formatting does not.

Error Message we get:  The server folder W:/xampp/htdocs/myFCPH/ cannot be accessed or does not exist. Make sure the server folder is available or select a different on by clicking Manage Sites.Access Denied.

PDF files we have on server launch fine...so I do not believe it is a FTP connection issue...

The actual PHP file page display with a <?> aboutus.php.

We do not know if this is a server issue which we need to contact GoDADDY, or a PHP/APACHE install issue, and if it is we have no idea who to go to for help....or a Dreamweaver bug/default setting (only one person in our office who did not install Dreamweaver can access these PHP files)

We are a public health entity and its is critical we figure this out as we manage several sites.

Please respond [private email address removed by Mod]

    This topic has been closed for replies.

    4 replies

    Nancy OShea
    Community Expert
    Community Expert
    May 11, 2017

    Definine a Local Testing Server in DW.  In this example, I'm using Wamp server and the default www directory.  You're using Xampp and the htdocs directory.  Keep in mind, Xamp needs to be running and all Apache and PHP services must be working.   See screenshots.

    I honestly don't know if GoDaddy has upgraded their servers to PHP7.   I would be kind of surprised if they had.  But the latest version of Xampp is almost certainly running PHP 7 which could be a problem for legacy code.

    To find out which version of PHP and MySQL you have on both servers, copy this code into a new .php file and save as PHP_INFO.php.  Upload it to your servers and open the file in your browser.

    <!doctype html>

    <html>

    <head>

    <meta charset="utf-8">

    <title>PHP info</title>

    </head>

    <body>

    <?php phpinfo() ?>

    </body>

    </html>

    Nancy

    Nancy O'Shea— Product User & Community Expert
    Jon Fritz
    Community Expert
    Community Expert
    May 11, 2017

    Have you set up local testing servers on the new PCs on their W: drives at the location being used by your sites?

    Rob Hecker2
    Legend
    May 11, 2017

    My best guess from what you have said: Your new install is using PHP version 7, which does not recognize the short tag "<?>". You need to change the start tags to <?php>

    Participant
    May 11, 2017

    So your saying all the page files need to be renamed.... ie:

    <?> about-us.php    <?php> about-us.php

    Will that then cause a problem with the other office user using an older version of PHP?

    Rob Hecker2
    Legend
    May 11, 2017

    The start tag is not part of the file name. It is the tag within the page that tells the server to process the code between the tags as PHP. So no, you don't name your page <?>about-us.php. I have no idea where you are getting that.

    Will that then cause a problem with the other office user using an older version of PHP?

    No. The full tag (<?php>) can and should be used with all versions of PHP.

    So, no reason to be mad at Dreamweaver. This is not a Dreamweaver issue. You should note that there are other changes in PHP7 that can break code written for earlier versions; the most important of these is that the mysql extension is no longer supported and you must use mysqli or PDO for database connections.

    kglad
    Community Expert
    Community Expert
    May 11, 2017