|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » htmlentities() » imagecreatefrompng() » site_pageranks() » imagepng() » imagestring() » imagedestroy() » imagecolorallocate() » header() » preg_match() » session_start() » getimagesize() » ob_start() » urlencode() » flush() » str_replace() » array2vars() » strpos() » fopen() » htmlspecialchars() » nl2br() » preg_match_all() » setcookie() » strstr() » ob_flush() » ereg() » preg_split() » ereg_replace() » var_dump() Our Sponsors » Weblog Community » Listen to Podcasts » Rock Music Community - meet fans Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: escapeshellarg (PHP 4 >= 4.0.3, PHP 5) escapeshellarg -- Escape a string to be used as a shell argumentDescriptionstring escapeshellarg ( string arg )escapeshellarg() adds single quotes around a string and quotes/escapes any existing single quotes allowing you to pass a string directly to a shell function and having it be treated as a single safe argument. This function should be used to escape individual arguments to shell functions coming from user input. The shell functions include exec() , system() and the backtick operator . Parameters
arg The argument that will be escaped. Return ValuesThe escaped string. Examples
Example 1. escapeshellarg() example
<?php
system('ls '.escapeshellarg($dir));
?>
Related Function(s) |