|
|
|
| Title : |
Add slashes or not?
Use this code to get the PHP version and then choose add slashes to your text or not, since after PHPv4 slashes are added automatically and your data would have double escapes in it. |
| Categories : |
PHP, PHP Configuration |
 Maxim Maletsky |
| Date : |
Sep 11th 2000 |
| Grade : |
5 of 5 (graded 1 times) |
| Viewed : |
2757 |
| File : |
No file for this code example. |
| Images : |
No Images for this code example. |
|
| Search : |
More code by Maxim Maletsky |
|
| Action : |
Grade This Code Example
|
|
| Tools : |
My Examples List |
|
|
|
|
|
|
This is for your MiltiPlatform software.
<?
if (floor(phpversion())<4)
$data =addslashes($data);
?>
Maxim Maletsky. |
|
| Why do i get a "Save As" dialog box when I type in the url of a php3 file Categories : PHP Configuration, PHP, Apache, Web Servers | | | How can i see the path of the php3.ini file my php3 uses? Categories : PHP, PHP Configuration | | | This functions compares the current PHP version with a
desired version. Because of the 3 tiered version system, a
direct compare of a string to phpversion() will not be
accurate. Categories : PHP Configuration, PHP, Variables | | | What is safemode? Categories : PHP, Installation, PHP Configuration | | | Step by Step installation
manual for PHP4.1.x on Windows 2000 based systems running IIS5
using CGI or ISAPI Categories : PHP, PHP Configuration, PHP Options and Info, Windows 2000 | | | Sessions and -enable-trans-sid Categories : PHP, PHP Configuration, PHP Options and Info, Sessions | | | How can I disable the maximum time of execution of a
php3 script? Categories : PHP Configuration, PHP | | | Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP, PHP, HTML, PDF, Excel | | | What to do if PHP3 doesn't find your FreeType library. Categories : PHP Configuration, Installation, PHP | | | How to overide the Max_file_size barier Categories : PHP, PHP Configuration, Filesystem | | | forum field names Categories : Global Variables, PHP, PHP Configuration, Installation | | | Retrieve text from table and email to your e-
address in pipe delimited format. Categories : PHP, MySQL | | | Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs. Categories : Databases, PHP, MySQL, Complete Programs | | | PHP Script to find url links in a page Categories : PHP, URLs, Regexps, Arrays | | | Using $PHP_AUTH_USER and $PHP_AUTH_PW to authenticate. Categories : Authentication, PHP | |
|
|
|