I want users to use data from an excel file on there own PC.
The URL of the file comes from an <input type='file' name='url' />
My code:
$file=$_POST['url'];
$handle = fopen ($file, "r") or die("Fout: bij openen van het bestand!");
$inhoud = fread ($handle, filesize ($file)) or die("Fout: bij lezen van het bestand!");
fclose ($handle);
If I try this i get an error "No such file or directory in ...mydomain..."
But the file is of the form "c:\file.xls" so he must not search in mydomain.
What am I doing wrong?
Thx in advance.