vendredi 30 octobre 2015

PHP - open text file from another Drive

I am trying to open text file through PHP. The below code is working fine when I have text file inside the Project folder htdocs.

   $myfile = fopen("Updates/updates.txt", "r") or die("Unable to open file!");
   echo fread($myfile,filesize("HRupdates/updates.txt"));

Now I would like to open file from another drive from drive D.

I tried like this D:/Updates/updates.txt it is not working. any other ways?

Aucun commentaire:

Enregistrer un commentaire