PHP Question

Posted by gamehawk on Feb. 23, 2006, 10:57 a.m.

I'm using PHP and it's going awesome, but I have a little problem. I have a news script working, but I can't seem to use apostrophes. I use I'll it replaces it with I'll, and that's with that's. It's weird, anyone know how to fix this?

Comments

firestormx 18 years, 10 months ago
gamehawk 18 years, 10 months ago

Thanks.

gamehawk 18 years, 10 months ago

When I use addslashes($whatever), is it safe? I recieve data and want to echo it onto the screen, the data is recieved via POST.

gamehawk 18 years, 10 months ago

Never mind.

firestormx 18 years, 10 months ago

If you're simply displaying data, then you shouldn't need to care too much about the quotations.

You might want to be careful about tags though. ([<], [>])

Someone could easily do something like

<?php

format_server();

?>

and if you display it freely on a .php page, then you'll have a problem.

gamehawk 18 years, 10 months ago

Why, don't you do that in your blogs?

gamehawk 18 years, 10 months ago

We can use html.