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!
When items get uploaded to one of my sites, if they have a single quote ' in it, the file always gets renamed to \'. (Eg; dale'ssong.mp3 when uploaded ends up as dales\'ssong.mp3) is there a way to stop this?
If you have the power to do so, turn off magic_quotes_gpc and the other magic quotes settings in php.ini. If not, use stripslashes(). For portablitity to other servers you may want to check if magic quotes is turned on by using the get_magic_quotes_gpc() function