PDA

View Full Version : سوال: توابع در php



blueboy
شنبه 25 خرداد 1387, 19:46 عصر
با سلام خدمت دوستان
می خواستم ازتون بپرسم که توابع زیر چه کاری انجام میده؟






()get_magic_quotes_gpc

;(GET_$ = array_map('mysql_real_escape_string', $_GET
()strip_tags



با تشکر
__________________
بی سرزمین تر از باد


Imagine

Imagine! Even if it is hard to imagine

A world where each person is truly fortunate

Imagine a world where money race, and power have no p

vahid4134
یک شنبه 26 خرداد 1387, 12:19 عصر
http://ir.php.net/manual/en/function.get-magic-quotes-gpc.php
get_magic_quotes_gpc — Gets the current configuration setting of magic quotes gpc
http://ir.php.net/manual/en/function.array-map.php
array_map — Applies the callback to the elements of the given arrays
http://ir.php.net/manual/en/function.mysql-real-escape-string.php
mysql_real_escape_string — Escapes special characters in a string for use in a SQL statement
http://ir.php.net/manual/en/function.strip-tags.php
strip_tags — Strip HTML and PHP tags from a string
همه این موارد برای جلویگری از sql injection هست
http://en.wikipedia.org/wiki/SQL_injection