note 42413 deleted from function.system by nlopess

From: Date: Tue, 18 May 2004 12:53:41 +0000
Subject: note 42413 deleted from function.system by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69753@lists.php.net to get a copy of this message
Note Submitter: vk@volkerkamp.com ---- Problems with backslash: Using PHP for shell-scripting seems to require a quad-escape for backslashes. Example: system("mount -t smbfs -o username=xxx,password=xxx,uid=xxx \\\\\\\\SERVER\\\\drive ./mnt"); The string delived to "mount" is "\\SERVER\drive". So the PHP-parser needs a backslash for every backslash and system() needs it again. Hope this helps someone! Volker

« previous php.notes (#69753) next »