Jump to content

using is_readable() with arrays??


loco41211

Recommended Posts

I can't work out how to use is_readable with an array of directories. Could anyone explain for me place how I could make this work?

foreach ($users as $user) {
$usernames[] = $user['username'];
$homedirs[] = $user['home_dir'];
}


if (($usernames!="")) {
if (is_readable($homedirs)) {
array_push($path_to_public,$homedirs); 
} 
}

 

I get the error:

Notice: Array to string conversion

 

Appreciate any help :) thank you in advace.

Link to comment
https://forums.phpfreaks.com/topic/200984-using-is_readable-with-arrays/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.