Join Up!
104887 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousSpouštění Programůescapeshellcmdnext
Last updated: Sun, 27 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Finnish | German | Spanish

escapeshellarg

(PHP 4 >= 4.0.3)

escapeshellarg -- ouvozovkování řetězce pro použití jako argument shellu

Popis

string escapeshellarg ( string arg)

EscapeShellArg() přidá jednoduché uvozovky na začátek a konec řetězce a ouvozovkuje/escapes všechny výskyty jednoduchých uvozovek, takže tento řetězec můžete přímo předat shell funkci, přičemž tento bude brán jako bezpečný argument. Tato funkce by se měla používat k oescapování jednotlivých argumentů určených pro shell funkce pocházejících z uživatelského vstupu. Shell funkce zahrnujíc exec(), system() a backtick operator. Standardní použití:

system("ls ".EscapeShellArg($dir))

Viz také exec(), popen(), system(), a backtick operátor.

User Contributed Notes
escapeshellarg
add a note about notes
There are no user contributed notes for this page.
previousSpouštění Programůescapeshellcmdnext
Last updated: Sun, 27 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST