Re: [PHP] require() in other directories?

2004-11-18 Thread Pluance
What error happen? On Thu, 18 Nov 2004 09:15:22 +0100, Peter Lauri <[EMAIL PROTECTED]> wrote: > Best groupmember, > > I have an webapplication that uses different languages and therefor I have > set up different directorys for each language. All languages use the same > classes. > > The problem

Re: [PHP] Efficency in looping arrays?

2004-11-17 Thread Pluance
You mean this? foreach ($arr as $key => $value) { echo "\$arr[${key}] = $value"; } On Wed, 17 Nov 2004 14:05:23 +0100, Peter Lauri <[EMAIL PROTECTED]> wrote: > Hey :) > > But what if the array have a unordered keystructure? What your loop do is > to call the value with key $i, or am I wrong? W

Re: [PHP] Creating a directory

2004-11-12 Thread Pluance
Use mkdir in PHP Functions. See Also: http://www.php.net/manual/en/function.mkdir.php On Fri, 12 Nov 2004 03:54:52 -0500, Danny Brow <[EMAIL PROTECTED]> wrote: > What's the best way to create a directory with PHP, I tried using: > > if (array_exists('dir',$_POST)) { >$dir_name = test123;