note 119409 added to function.file-exists
| From: | mpgarin at hotmail dot com | Date: | Mon, 30 May 2016 23:16:41 +0000 |
| Subject: | note 119409 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205623@lists.php.net to get a copy of this message | ||
new to php, however the example provided does not work and I am confused on why? My example is I
loaded images with the name defaulted to the model number of a part. The <img attempts to use
the constructed path to find an image for every record, although some do not have images (*.png).
The display code works and displays every file found, and shows an error when the graphic
doesn't exist.
I was attempting to suppress when the images were not available, however the code provided, which
seems simple enough when using the same file name/path to generate the image display tells me that
none of the files are found.
----
Server IP: 72.52.91.14
Probable Submitter: 2601:603:4100:a00:3c12:a07:b69:8b5
----
Manual Page -- http://php.net/manual/en/function.file-exists.php
Edit -- https://master.php.net/note/edit/119409
Del: integrated -- https://master.php.net/note/delete/119409/integrated
Del: useless -- https://master.php.net/note/delete/119409/useless
Del: bad code -- https://master.php.net/note/delete/119409/bad+code
Del: spam -- https://master.php.net/note/delete/119409/spam
Del: non-english -- https://master.php.net/note/delete/119409/non-english
Del: in docs -- https://master.php.net/note/delete/119409/in+docs
Del: other reasons-- https://master.php.net/note/delete/119409
Reject -- https://master.php.net/note/reject/119409
Search -- https://master.php.net/manage/user-notes.php