note 29997 deleted from function.system by irchtml
| From: | irchtml@php.net | Date: | Tue, 17 Feb 2004 14:11:57 +0000 |
| Subject: | note 29997 deleted from function.system by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65285@lists.php.net to get a copy of this message | ||
Note Submitter: cpmorris@hotmail.com
----
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.