[PHP] Re: returning elements from array 1 not in array 2

2005-11-01 Thread Joseph Tura
What is the function to remove all of the elements from array 1 that are not in array 2 and return them. Try: array_diff($arr1, array_intersect($arr1, $arr2)); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Images outside webroot + session = safe?

2005-10-29 Thread Joseph Tura
Hi there, I am storing images outside the webroot to keep them from being accessible for unauthorized users to see. Then I use a script to show the images, like this: Now, as there is no information on the images stored in a database yet (they have just been uploaded via ftp), I need to find a