<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged file_exists-function-php</title>
<link>https://www.question2answer.org/qa/tag/file_exists-function-php</link>
<description>Powered by Question2Answer</description>
<item>
<title>Do exist an q2a function that it say me if a file or image exist? (Except the file_exists function of PHP)</title>
<link>https://www.question2answer.org/qa/51394/exist-function-that-image-exist-except-file_exists-function</link>
<description>Hello to everyone, I'm going to share with you a scenario that I have, because maybe you can help me.&lt;br /&gt;
&lt;br /&gt;
I'm building a code for to do something if it find an image and to do another thing if it not find it.&lt;br /&gt;
&lt;br /&gt;
I'm using the rooturl parameter of the qa-theme class to get the relative path to my site, then I join it with the additional path where the image should be located.&lt;br /&gt;
&lt;br /&gt;
After, I need to check if the image exists, but I'm using the file_exists function of PHP and it always retunrs false, maybe because it not recognize the relative path of the site.&lt;br /&gt;
&lt;br /&gt;
Now, I think that I must to use an q2a function that it whether recognize the relative path and it return true when the image exists.&lt;br /&gt;
&lt;br /&gt;
Thank you so much for your support!</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/51394/exist-function-that-image-exist-except-file_exists-function</guid>
<pubDate>Sat, 16 Apr 2016 20:38:06 +0000</pubDate>
</item>
</channel>
</rss>