Anonymous user
Check that file exists: Difference between revisions
→{{header|PHP}}
(added ruby) |
|||
Line 156:
<php>if (file_exists('input.txt')) echo 'input.txt is here right by my side';
if (file_exists('docs' )) echo 'docs is here with me';
if (file_exists('/input.txt')) echo 'input.txt is over there in the root dir';
if (file_exists('/docs' )) echo 'docs is over ther in the root dir';</php>
|