This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > PHP document opening as HTML files





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PHP document opening as HTML files
trufla

2004-08-23, 7:16 pm

OK, this is a crap noob question:

I have been coding in PHP all afternoon in DW, and suddenly when I try an
preview the docs in the browser they either open has temporary htm docs (or
rather they do not open) or open as a code view , not the code output.

I have obviously enabled/disabled without realising.

Can anyone help?

DaveBlues

2004-08-23, 7:16 pm

PHP is "server side" code.
They are converted, by a web server, into HTML which is "Browser side" code.
The PHP is not sent to a browser. Only the html results it generated within
the server.

So whenever you code in php, the results will always show as html.

trufla

2004-08-24, 7:14 am

Aah, Dave I'm a numbskull!

Folder structure issue, thus localhost wasn't mapped to correct path!

More coffee needed for me!
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews