Help with <> in php.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
matt546
Forum Newbie
Posts: 1
Joined: Mon Aug 16, 2004 11:14 pm

Help with <> in php.

Post by matt546 »

I am new to php. I wanted to add the following to the bottem of a page: The <TAC> File server. Im hosting files for my clan members to download. But when i make it, it doesnt place the <TAC> because its reading it as html. How do i escape this?
This is what I have:

Code: Select all

$bottemline = "The <TAC> File Server © 2004";
How would i change it to say that without it thinking <TAC> as html.
Thanks ahead of time.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

[php_man]htmlentities[/php_man]
Post Reply