Skip to main content
bruceh67871735
Participant
December 3, 2018
Answered

Dreamweaver Won't Run index.php.

  • December 3, 2018
  • 1 reply
  • 1930 views

I can open index.php in Dreamweaver and it's code appears in the lower section. But there is nothing in the upper Live section. I tried File>Device Preview>Chrome and I got four small squares that continually appear and disappear, and the cycle repeats indefinitely. I tried the URL: localhost\phptest and I get:" can't connect". phptest is the directory of index.php. (ie. C:\xampp\htdocs\phptest). I aslo tried the URL:localhost and I get the same thing. I did create a Local Testing Server. With that I get in the upper-right corner of the DW screen:

Site Testing Local Server 3 (c:\xampp\hrdocs\phptest) and the file name: index.php, but there is a question mark in front of it.

Any help is appreciated. -Bruce

    This topic has been closed for replies.
    Correct answer osgood_

    bruceh67871735  wrote

    I can open index.php in Dreamweaver and it's code appears in the lower section. But there is nothing in the upper Live section. I tried File>Device Preview>Chrome and I got four small squares that continually appear and disappear, and the cycle repeats indefinitely. I tried the URL: localhost\phptest and I get:" can't connect". phptest is the directory of index.php. (ie. C:\xampp\htdocs\phptest). I aslo tried the URL:localhost and I get the same thing. I did create a Local Testing Server. With that I get in the upper-right corner of the DW screen:

    Site Testing Local Server 3 (c:\xampp\hrdocs\phptest) and the file name: index.php, but there is a question mark in front of it.

    Any help is appreciated. -Bruce

    Is the local server running?

    Can you connect to the file if you type the files localhost address directly in a browers url field?

    1 reply

    osgood_Correct answer
    Legend
    December 3, 2018

    bruceh67871735  wrote

    I can open index.php in Dreamweaver and it's code appears in the lower section. But there is nothing in the upper Live section. I tried File>Device Preview>Chrome and I got four small squares that continually appear and disappear, and the cycle repeats indefinitely. I tried the URL: localhost\phptest and I get:" can't connect". phptest is the directory of index.php. (ie. C:\xampp\htdocs\phptest). I aslo tried the URL:localhost and I get the same thing. I did create a Local Testing Server. With that I get in the upper-right corner of the DW screen:

    Site Testing Local Server 3 (c:\xampp\hrdocs\phptest) and the file name: index.php, but there is a question mark in front of it.

    Any help is appreciated. -Bruce

    Is the local server running?

    Can you connect to the file if you type the files localhost address directly in a browers url field?

    bruceh67871735
    Participant
    December 3, 2018

    I think the local testing server is running because at the upper-right side of the DW screen, the server name is listed along with the path to it, which is C:\xampp\htdocs\phptest

    :

    I have tried tying the following as a URL in Chrome, without success: http://localhost        http://localhost/phptest    and     http://localhost/xampp/htdocs/phptest

    pziecina
    Legend
    December 3, 2018

    Have you set up your site definition, and your testing server in Dw?

    Also are you using a wordpress site, or similar cms?