HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
My source code is sometimes shown when people access my site
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML
View previous topic :: View next topic  
Author Message
susangail01



Joined: 24 Jun 2009
Posts: 5

PostPosted: Wed Jun 24, 2009 6:08 am     My source code is sometimes shown when people access my site Reply with quote

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: 3593
Location: Biloxi, MS

PostPosted: Wed Jun 24, 2009 6:06 pm     Reply with quote

Need to give a link to the problem site as my crystal ball is in the shop. Razz
susangail01



Joined: 24 Jun 2009
Posts: 5

PostPosted: Thu Jun 25, 2009 12:54 am     Reply with quote

Oops Sorry! I am new to this. The problem site is:

http://www.blissfully-content.com/

Many thanks. Laughing
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3593
Location: Biloxi, MS

PostPosted: Thu Jun 25, 2009 1:32 am     Reply with quote

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

PostPosted: Thu Jun 25, 2009 4:34 am     Reply with quote

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 Laughing
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3593
Location: Biloxi, MS

PostPosted: Thu Jun 25, 2009 5:35 am     Reply with quote

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

PostPosted: Thu Jun 25, 2009 6:15 am     Reply with quote

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: 2308

PostPosted: Thu Jun 25, 2009 7:58 am     Reply with quote

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-Cool

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

PostPosted: Fri Jun 26, 2009 2:11 am     Reply with quote

OK. Brilliant and many thanks. Laughing
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial