RE: [PHP] executing a shell command within a function
| From: | Mike Brum | Date: | Sat, 16 Aug 2003 00:41:24 +0000 |
| Subject: | RE: [PHP] executing a shell command within a function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159774@lists.php.net to get a copy of this message | ||
Why don't you try to use mkdir() instead of shell commands?
http://us2.php.net/manual/en/function.mkdir.php
-M
-----Original Message-----
From: Sævar Öfjörð [mailto:ofjord@simnet.is]
Sent: Friday, August 15, 2003 8:19 PM
To: php-general@lists.php.net
Subject: [PHP] executing a shell command within a function
Hi,
Im coding a function that will create a set of directories using execution
of shell commands within the function. Then the function saves different
sizes of images in each directory. Later in the function I open one of these
directories to list the content in them. The problem is that the directoris
dont exist when the function is trying to list the content in them. When I
execute the function again with exactly the same parameters there is no
problem, then the directories exist!
Im thinking that the shell commands are somehow set in some kind of buffer
or queue and are not executed until the rest of the php code is executed?
Could this be true? If anyone has anything to say on this Id appreciate it.
BTW I'm using RH8.0 and PHP 4.2.2
Kveðja,
Sævar Öfjörð
ofjord@reddast.is
þetta reddast - hönnunarlausnir
www.reddast.is
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php