Skip to main content
August 4, 2009
Answered

HTTP error 0 testing not serving php pages please help

  • August 4, 2009
  • 1 reply
  • 1593 views

Hello everyone,

I am using DWCS3, the free version of MAMP on my MacBook Pro Leopard 10.5.6.

I have built a customer registration form with a Transitional <!DOCTYPE>. I have been following the instructions from The Essential Guide to Dreamweaver CS3, using a wizard to build a registration form, in chapter 15.

When I try to preview the form in the web browser, I get a white screen.

When I click the live data button I get an; HTTP error 0 message occured while attempting to request the file http://localhost:8888/mywebsite/page_S9INUKZB.php from the testing server.

possible reasons:

1. Files in MacHD/Applications/MAMP/htdocs/mywebsite with .php extension are not being executed by the testing server.

2. The MacHD/Applications/MAMP/htdocs/mywebsite does not map to http://localhost:8888/mywebsite URL on the testing server.

I've gone over the site definitions several times and have configured MAMP differently twice, using ports 80 and 3306 and also 8888 and 8889. The same problem has happened in both instances here is my site definition info:

Local info:

Site name: mywebsite

Local root folder: MacHD:Users:myname:Desktop:mywebsite

links relative to document: http://localhost/

Remote info:

Access: Local/Network

Remote folder: MacHD:Applications:MAMP:htdocs:mywebsite

Testing server:

Server model: PHP/MySQL

Access: Local/Network

Testing server folder: MacHD:Applications:MAMP:htdocs

URL prefix: http://localhost:8888/mywebsite/

Web sharing is turned off.

Dreamweaver/Preferences/Preview in browser/preview using temporary files is turned off, yet in my HTTP error 0 message there is a string of characters after the page name, suggesting that dreamweaver is using temporary files.

I have attached a compressed copy of the customer registration form maybe the problem is the page. I have gone round and round in circles with this and I can't seem to sort it out can somebody please help me.

Thankyou.

This topic has been closed for replies.
Correct answer David_Powers

The testing server folder and URL prefix should both point to the same place. You have this:

Local info:

Site name: mywebsite

Local root folder: MacHD:Users:myname:Desktop:mywebsite

links relative to document: http://localhost/

Remote info:

Access: Local/Network

Remote folder: MacHD:Applications:MAMP:htdocs:mywebsite

Testing server:

Server model: PHP/MySQL

Access: Local/Network

Testing server folder: MacHD:Applications:MAMP:htdocs

URL prefix: http://localhost:8888/mywebsite/

Links relative to document http://localhost:8888/mywebsite/


Testing server folder: MacHD:Applications:MAMP:htdocs:mywebsite

URL prefix: http://localhost:8888/mywebsite/

1 reply

David_Powers
David_PowersCorrect answer
Inspiring
August 4, 2009

The testing server folder and URL prefix should both point to the same place. You have this:

Local info:

Site name: mywebsite

Local root folder: MacHD:Users:myname:Desktop:mywebsite

links relative to document: http://localhost/

Remote info:

Access: Local/Network

Remote folder: MacHD:Applications:MAMP:htdocs:mywebsite

Testing server:

Server model: PHP/MySQL

Access: Local/Network

Testing server folder: MacHD:Applications:MAMP:htdocs

URL prefix: http://localhost:8888/mywebsite/

Links relative to document http://localhost:8888/mywebsite/


Testing server folder: MacHD:Applications:MAMP:htdocs:mywebsite

URL prefix: http://localhost:8888/mywebsite/

August 9, 2009

Hello David,

Thanks for getting back to me, sorry for the late reply, I've been away for a few days.

I have done what you suggested, and altered the links relative to document: http://localhost:8888/mywebsite/

I have also restarted dreamweaver and mamp.

Nothing has changed when I try to view the page through the browser I get a white screen and the HTTP error 0 is still displaying, With the same message as before.

I have since created a new form, connected it to my user table, and populated the table with info, and that worked.

I then added the php validating code as suggested in chapter 15, pages 481 through to 485. I've also checked the code against your example page register_user_03.php.

However when I put the page on the testing server and try to view it, all I get is a white screen, and an HTTP error 0 the testing server is not executing pages with a .php extension. Or the URL prefix isn't mapped properly.

I have also checked all my settings in MAMP and left a question on the forum but they haven't answered.

Is there a setting or connection that I need to enable in Apache? I'm stumped.


I'm hoping you might have some tricks up your sleeve.

Thanks

August 10, 2009

I have sorted it out, there was a single quote in the php code in the wrong place.

Thanks