Is it ok if I use it to check if some file exist, like 10-15 css/js/php files? This would be done on each page load.
How much would it slow it down?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
assuming that it is local file (and not nfs mount), it won’t slow anything down, and it may be even faster then issuing request to a file that is not readable. Also,
is_readablecaches the results (you cave to callclearstatcacheif you want to dismiss the cached results). Sure, the best way to check is to profile your page after adding theis_readablecall, but I bet it won’t make any difference