Forum Moderators: coopster

Message Too Old, No Replies

Newbie PHP include question

What's with all the /pars?

         

Murdoch

8:54 pm on Aug 24, 2007 (gmt 0)

10+ Year Member



I'm trying to use some includes so I can have a standardized navbar, but when I use the include I keep getting all this extra code in the output by the browser:

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Courier New;}{\f1\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs20\par

And then a /par after every line within the include. I wouldn't mind so much except that it treats the code very differently with regards to size, padding, placement, etc.

Any help would be appreciated. T'anks

jatar_k

9:01 pm on Aug 24, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



have you checked the source?

/par being paragraph maybe, not sure? reminds me of how word saves as html

where is the extra code coming from? do you have that in your source files somewhere?

track down the source and that will help us figure out what is failing.

is it
included file
main file
from nowhere

SteveLetwin

9:16 pm on Aug 24, 2007 (gmt 0)

10+ Year Member



That's RTF, Rich Text Format. My guess is someone saved the include file as rtf instead of text.

If this corrupted copy is all you have, then just open it up in OpenOffice or Word and save it as plain text (.txt).

Murdoch

5:07 pm on Aug 25, 2007 (gmt 0)

10+ Year Member



Yeah when I was editing it in Wordpad it wasn't showing but when I opened it in Notepad it was clear as day. Thanks guys.