| View previous topic :: View next topic |
| Author |
Message |
susangail01
Joined: 24 Jun 2009 Posts: 5
|
Posted: Wed Jun 24, 2009 6:08 am My source code is sometimes shown when people access my site |
|
|
|
I have built a website and although I have not had any problems reported I have today received an email from a lady to say that when she goes to my website all she can see is the HTML code that I have written on it and nothing else.
I have checked to see if I have the same problem on my PC and also asked friends to do so with their PC's but they say that my website is fine and they do NOT get any problems.
I am therefore wondering if it is just a problem with the lady's PC who is trying to access my site and if so is there a solution for her?
Thanks,
Sue |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 3599 Location: Biloxi, MS
|
Posted: Wed Jun 24, 2009 6:06 pm |
|
|
|
Need to give a link to the problem site as my crystal ball is in the shop.  |
|
susangail01
Joined: 24 Jun 2009 Posts: 5
|
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 3599 Location: Biloxi, MS
|
Posted: Thu Jun 25, 2009 1:32 am |
|
|
|
She is indeed correct. This link gives all the code:
Your _URL.phtml
Need to look at all your pages and correct the "phtml" part by removing the "p". Or correct the PHP script for your site. I image your pages are PHP generated via the script, but just about every link from home page gives the html code.
What is PHTML ? Is it the same thing as PHP ? |
|
susangail01
Joined: 24 Jun 2009 Posts: 5
|
Posted: Thu Jun 25, 2009 4:34 am |
|
|
|
Hi Ron,
Many thanks for your fast response.
<filename>.phtml is just another extension that dreamweaver uses instead of <filename>.htm but it looks as though it is now not working properly!
As, for some reason, I am not able to recreate the problem myself I have now changed all of the pages coming from the 'Handbag' menu icon to have an extension of <filename>.htm INSTEAD of <filename>.phtml.
I have NOT changed any of the other pages yet as I was wondering if you would not mind just checking these 4 pages for me from the 'Handbag' menu option to see if the problem is now solved with those pages? If they are then I will change all of the other pages to have a <filename>.htm extension.
Many thanks for all your help.
Sue  |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 3599 Location: Biloxi, MS
|
Posted: Thu Jun 25, 2009 5:35 am |
|
|
|
| The pages all worked for me here. Were you trying to set up site using a PHP script? If not, you need to go into DW's options and set the correct default extension to use. |
|
susangail01
Joined: 24 Jun 2009 Posts: 5
|
Posted: Thu Jun 25, 2009 6:15 am |
|
|
|
Many thanks Ron.
I am not sure what you mean by:
"go into DW's options and set the correct default extension to use"??
Thanks,
Sue |
|
sticks464

Joined: 31 Dec 2006 Posts: 2311
|
Posted: Thu Jun 25, 2009 7:58 am |
|
|
|
In Dreamweaver from the main menu...
1.) Choose Edit > Preferences or (ctrl+U)
2.) Choose New Document in the Category window (left side)
3.) In the New Document window... (right side)
Default document: HTML
Default extension: should be .html (or .htm)
Default Document Type (DTD): select your choice of html or xhtml documents types
Default encoding: Unicode (UTF-
Click OK.
The smiley face is the number 8.
There is no option for iso-8859-1.
The Default Document Type (DTD) is the document type that shows in the DocType: dropdown box (lower right side) of the New Document window that appears when you choose File > New (or ctrl+N) to create new pages. You can change the doctype in this dropdown box to meet your needs. |
|
susangail01
Joined: 24 Jun 2009 Posts: 5
|
Posted: Fri Jun 26, 2009 2:11 am |
|
|
|
OK. Brilliant and many thanks.  |
|
|