I'm having trouble with my filepath when using opendir()
. I get the following warning:
PHP Warning: opendir(/uploads/users/405/images/profile/profilepic/) [function.opendir]: failed to open dir: No such file or directory in /home/my_folder/public_html/models/photos.php on line 1059
line 1059 in photos.php
has the following:
if ( ( $handle = opendir( $profile_pic_path ) ) ) { // do stuff }
where:
$profile_pic_path = '/uploads/users/405/images/profile/profilepic/';
I've tried several different things, but I can't get it to work (I keep getting the PHP Warning message in my error log).
What am I doing wrong?