quick questions

    Date: 06/14/06 (PHP Community)    Keywords: php

    I'm somewhat of a novice with php. I have a script that simply writes a string to a file. But if the string contains " or ' it changes it to \" or \' onee stored in the file (I'm sure it does it to other special characters as well). How can I prevent this?

    P.S. I'm using file_put_contents() [php 5 only]. Would it be better to use fopen(), fwrite(), and fclose()?

    Source: http://community.livejournal.com/php/459910.html

« crack base64 encoding? || CakePHP Community »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home