note 15771 added to function.passthru

From: Date: Tue, 02 Oct 2001 15:07:50 +0000
Subject: note 15771 added to function.passthru
Groups: php.notes 
Request: Send a blank email to php-notes+get-18470@lists.php.net to get a copy of this message
How to call a program with a parameter which includes spaces? Example: passthru("convert '$file' gif:/dev/stdout"); when this is called with $file="foo bar.jpg" convert complains: convert: Unable to open file ('foo) [No such file or directory]. convert: Unable to open file (bar.jpg') [No such file or directory]. convert: Missing an image file name. tschau, towi. -- http://www.php.net/manual/en/function.passthru.php http://master.php.net/manage/user-notes.php?action=edit+15771 http://master.php.net/manage/user-notes.php?action=delete+15771 http://master.php.net/manage/user-notes.php?action=reject+15771

« previous php.notes (#18470) next »