note 29997 added to function.system
| From: | cpmorris at hotmail dot com | Date: | Mon, 03 Mar 2003 16:05:30 +0000 |
| Subject: | note 29997 added to function.system | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44787@lists.php.net to get a copy of this message | ||
After banging my head against the wall for several hours (not consecutively thankfully), I
discovered that the program execution functions do not support long file names in Windows. Either
that or they do not support paths with spaces in them. For example, I was trying to call
Apache's htpasswd utility to add users to an htpasswd file:
c:\program files\apache group\apache2\bin\htpasswd
but whenever I tried using system to call this, I got no output and an error code. So I eventually
I tried this:
c:\progra~1\apache~1\apache2\bin\htpasswd
and it worked like a charm.
Hope this helps someone.
--
http://www.php.net/manual/en/function.system.php
http://master.php.net/manage/user-notes.php?action=edit+29997
http://master.php.net/manage/user-notes.php?action=delete+29997
http://master.php.net/manage/user-notes.php?action=reject+29997