[PHP] Remove duplicate values in an array

2005-03-29 Thread Alexandru Martin
How can I remove duplicate values from an array ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] redirection, same host, two domains

2005-03-25 Thread Alexandru Martin
and if they type mysite.com to display the page. I'm guessing it should be something like this : if ( refferer = mysite.domain.com ) { redirect to mysite.com } else { my html code } P.S: I need this because I don't want google to think it's a duplicate site. Thank you, Alexandru

[PHP] Listing directory, return none if only one file

2005-03-24 Thread Alexandru Martin
I have a script that lists the files in a directory, but when i have only ONE file , it won't display it ( here is the code : http://www.pastebin.com/262050 ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php