file_exists not working for network path

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: file_exists not working for network path

Post by johnj » Wed May 29, 2013 8:48 pm

before fcmatrix why are you using four backslashes? use two. Also, display the path and make sure it is correct before you use this path in file_exists().

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: file_exists not working for network path

Post by johnj » Wed May 29, 2013 8:51 pm

Another point - try to match directory by directory. e.g. first use file_exists() and check if \\fcmatrix is getting matched, then try \\fcmatrix\matrix and so on. This way, you will know what is not getting matched.

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: file_exists not working for network path

Post by johnj » Thu May 30, 2013 6:14 am

are you sure fcmatrix exists and you have the required permission to access it?

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests