[PHP] Can someone explain this please...

2002-08-15 Thread Gandalf
Hello! I am doing this $newpath = "./uploads/newdir/"; if (!is_dir($newpath)) mkdir($newpath, 0666); $decperms = fileperms($newpath); $octalperms = sprintf("%o",$decperms); $perms=(substr($octalperms,2)); echo $perms; if ($perms != 777) { rmdir ($newpath); } This will not delete the dir crea

[PHP] Please someone help me!

2002-08-11 Thread Gandalf
Hello! First of all, i am trying to solve this problem for more then a week now, i looked through php.net for hours and have posted on numerous boards but nobody could come up and tell me what is going wrong. Basically, i have two multidimensional arrays, and i want to compare those two usi

Re: [PHP] Please help with array_diff()

2002-08-09 Thread Gandalf
Well of course $foo[0] contains the first dimension of the $foo array and the same goes for $bar[0]. It is still not working as it should, i am close to going nuts. At 11:43 09.08.2002 +0800, you wrote: >On Friday 09 August 2002 06:14, Gandalf wrote: > > > > > $diff = array_

[PHP] Please help with array_diff()

2002-08-08 Thread Gandalf
Hello! Please have a look at the following sample code and help me out if you can $db = new db_SQL(); $sql = "SELECT Name, Email FROM whatever WHERE whatever=whatever"; $db->query( $sql ); while ($db->next_record()) { //This is my first array $foo[] = array ("name"=>$db->f("Name"),