HighDots Forums  

Handling Include code?

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss Handling Include code? in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BobK
 
Posts: n/a

Default Handling Include code? - 02-13-2008 , 07:55 AM






Hello,

I have some PHP Includes on my site. The Include data comes from
another site and are written with a Transitional Doc Type. So the
results have all of the <br>'s shown as <br />.

But my site is Strict 4.01 and I get validation errors for all the <br
/>'s.

Is there a way to convert all the <br />'s to <br>'s? Can you put
something in the .htaccess file or somewhere to force a conversion?

Thanks,

Bob



Reply With Quote
  #2  
Old   
John Bokma
 
Posts: n/a

Default Re: Handling Include code? - 02-13-2008 , 09:45 AM






"BobK" <ergobob@sonic[REMOVE].net> wrote:

Quote:
Hello,

I have some PHP Includes on my site. The Include data comes from
another site and are written with a Transitional Doc Type. So the
results have all of the <br>'s shown as <br />.
Sounds more like XHTML.

Quote:
But my site is Strict 4.01 and I get validation errors for all the <br
/>'s.

Is there a way to convert all the <br />'s to <br>'s?
Yes: post-process the data in PHP. This means that instead of including
the data you have to download it and post-process it with a search &
replace. This is not 100% fail-safe though. The best way would be to parse
the XHTML (which is XML), and then convert it to HTML 4.01 strict. On the
other hand, that might be overkill.

Quote:
Can you put
something in the .htaccess file or somewhere to force a conversion?
No.

--
John Bokma http://johnbokma.com/


Reply With Quote
  #3  
Old   
Big Bill
 
Posts: n/a

Default Re: Handling Include code? - 02-13-2008 , 12:04 PM



On Wed, 13 Feb 2008 05:55:14 -0800, "BobK" <ergobob@sonic[REMOVE].net>
wrote:

Quote:
Hello,

I have some PHP Includes on my site. The Include data comes from
another site and are written with a Transitional Doc Type. So the
results have all of the <br>'s shown as <br />.

But my site is Strict 4.01 and I get validation errors for all the <br
/>'s.

Is there a way to convert all the <br />'s to <br>'s? Can you put
something in the .htaccess file or somewhere to force a conversion?

Thanks,

Bob

I think you'll have to go Loose for those pages, ergobob.

BB
--

http://www.kruse.co.uk/
http://www.fat-odin.com/
http://www.here-be-posters.co.uk/


Reply With Quote
  #4  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: Handling Include code? - 02-18-2008 , 01:41 PM



Gazing into my crystal ball I observed "BobK" <ergobob@sonic
[REMOVE].net> writing in news:47b2f6c0$0$36385$742ec2ed (AT) news (DOT) sonic.net:

Quote:
Hello,

I have some PHP Includes on my site. The Include data comes from
another site and are written with a Transitional Doc Type. So the
results have all of the <br>'s shown as <br />.

But my site is Strict 4.01 and I get validation errors for all the <br
/>'s.

Is there a way to convert all the <br />'s to <br>'s? Can you put
something in the .htaccess file or somewhere to force a conversion?

Thanks,

Bob


They are using XHTML and not HTML. What you _could_ do is for those
pages that have the include, change it to XHTML. I would also suggest,
since you are using PHP, that you also change the headers so if a
browser accepts application xhtml+xml, serve it, otherwise, server
text/html.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



Reply With Quote
  #5  
Old   
John Bokma
 
Posts: n/a

Default [OT] broken link (was Re: Handling Include code?) - 02-18-2008 , 06:36 PM



Adrienne Boswell <arbpen (AT) yahoo (DOT) com> wrote:

[..]
http://www.cavalcade-of-coding.info/...ics/index.html
http://www.cavalcade-of-coding.info/eclectia/index.php

404's here. (Also, you might want to link to /free_graphics/ instead of
index.html, ditto for /eclectia/ )

(Likes spiders too)


--
John Bokma http://johnbokma.com/

Reply With Quote
  #6  
Old   
Adrienne Boswell
 
Posts: n/a

Default Re: [OT] broken link (was Re: Handling Include code?) - 02-19-2008 , 12:29 AM



Gazing into my crystal ball I observed John Bokma <john (AT) castleamber (DOT) com>
writing in news:Xns9A48BD3827617castleamber (AT) 130 (DOT) 133.1.4:

Quote:
Adrienne Boswell <arbpen (AT) yahoo (DOT) com> wrote:

[..]
http://www.cavalcade-of-coding.info/...ics/index.html
http://www.cavalcade-of-coding.info/eclectia/index.php

404's here. (Also, you might want to link to /free_graphics/ instead of
index.html, ditto for /eclectia/ )

(Likes spiders too)


You know, I keep forgetting to remove those links, and then I say "someday
I'm going to fix that" and it forget again.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.