Installing and configuring PHP Variable Handling Functions
In this page, we will discuss installing and configuring PHP Variable Handling functions.
PHP Variable Handling functions do not require any external library files.
Since PHP Variable Handling functions are part of the PHP core, they don't require any installation.
You don't need to add any directive in php.ini for running PHP Variable Handling functions.
PHP Variable Handling functions have no defined resource types.
In the following table, we have given a list of constants which are part of the PHP core.
PHP Variable Handling function has no constants defined.
PHP: Tips of the Day
SQL injection that gets around mysql_real_escape_string()
Consider the following query:
$iId = mysql_real_escape_string("1 OR 1=1"); $sSql = "SELECT * FROM table WHERE id = $iId";
mysql_real_escape_string() will not protect you against this. The fact that you use single quotes (' ') around your variables inside your query is what protects you against this. The following is also an option:
$iId = (int)"1 OR 1=1"; $sSql = "SELECT * FROM table WHERE id = $iId";
Ref : https://bit.ly/32q3bJ7
- New Content published on w3resource :
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework