PHP function file_exists problems
-
Hi,
in my php script within a WP page, a I use a file_exists if statement to check if a variable containing the path of an image thumbnail exists before proceeding. The problem is that even though the image exists and that the path is accurate, file_exists returns false, as does is_file, is_readable, or is_writable. This same image path (wp-content/image_thumbs/thumbname.jpg) works for displaying the same images in html <img> tags later on in the same script. Does file_exists assume a separate path base or is there something else I’m missing here?
cheers,
kilolima
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PHP function file_exists problems’ is closed to new replies.