- Forums - Reply - Statistics - Sign Up - Search -

The Wyzz WYSIWYG Editor / Coding Discussion / writing to txt, <php inlude> in webpage issues
Author Message
enlightenmental
Member
# Posted: 28 Mar 2008 06:05


i'm using a Wyzz editor to write to a txt file

the display back in a webpage using "php include"

text file looks like this:

<p>test text</p>

webpage displays text like this:

&lt;p&gt;test text&lt;/p&gt;

what am i doing wrong?

DavidHopkins
Member
# Posted: 25 Aug 2008 21:05


wish i could answer this for you .. but it is also how I think i want to use WYZZ too.

Did you get an answer to your question??

In a nutshell, I have a 5 page website and I make changes to it at different times, so I'm not always near a PC with Dreamweaver and/or FTp client ... so a simple editor that would update a text file I can pull into the page structure using include would be good for me too.

David

phpBeta
Member
# Posted: 20 Apr 2009 16:52


webpage displays text like this:

&lt;p&gt;test text&lt;/p&gt;

what am i doing wrong?


Have you tried renaming the .txt - .html and include according-ling

&lt;p&gt; these are html tags, thus they are not related to .txt

However another way would be to tell the server to interpret .txt as .html by adding the following to a .htaccess file.

AddHandler application/x-httpd-php .html .htm .txt

I'd go with the first option :)

Your answer

Bold Style  Italic Style  Underlined Style  Image Link  URL Link  Disable BB codes *What's that?

 » Name  » Password 
 Only registered users can post here. Enter your login/password correctly before posting a message, or register first.
 

Powered by miniBB forum software © 2001-2010