How to make a file_exist from a server to the local machine?
<p>how to test if a file exist on the current computer using the application ?</p>

<p>I try to put the full url at my file like this, but it doesn't work :</p>

<pre><code>if(file_exists("C:/wamp/www/project/photo/".$nom_photo))
        {
            echo "file exist";
            $extension=pathinfo("C:/wamp/www/project/photo/".$nom_photo,PATHINFO_EXTENSION);
            echo "&lt;br&gt;";
            $nom=md5($nom_photo.time().rand(0, 99999)).".".$extension;
            echo $nom;
            rename("C:/wamp/www/project/photo/".$nom_photo,"C:/wamp/www/project/photo/".$nom);
            echo "&lt;br&gt;";


        }
</code></pre>

<p>How to fix it ?</p>
