n3mesis125 Posted October 20, 2008 Share Posted October 20, 2008 Hey Folks, Is there a way I can somehow in PHP run a script or read a file that is on a users desktop? The reason I ask is because we've built a webapp with php for our work to track our employees work they do for accounts, completed work, etc. However, Cookies and Sessions isn't working the way we want for us and instead we want to store a .dat file on their pc when they login that stores all of their info about them as it will never disappear unless deleted. This part was easy to setup, the hard part now is to grab that file into php and read the contents to setup variables. Is there some way I can read a file that isn't on the webserver but on the users PC or use some sort of shell exec in php to run a program that would do this? Thanks, n3m. Link to comment https://forums.phpfreaks.com/topic/129257-php-read-desktop-file/ Share on other sites More sharing options...
discomatt Posted October 20, 2008 Share Posted October 20, 2008 No, the user has to upload the file... This would be a serious security hole. You'd need an Active-X plugin to accomplish this. Link to comment https://forums.phpfreaks.com/topic/129257-php-read-desktop-file/#findComment-670137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.