rahuul Posted February 12, 2010 Share Posted February 12, 2010 hi friends, can we create file on user computer using php. (like in c:\windows) pls help thanks Quote Link to comment https://forums.phpfreaks.com/topic/191856-creating-a-file-on-user-computer/ Share on other sites More sharing options...
Zane Posted February 12, 2010 Share Posted February 12, 2010 I suppose you want to know how to edit the Registry with PHP too? Change the operating system? Attach arms and legs.. make it walk; make it work at McDonald's at minimum wage for you? What are you expecting out of PHP? Quote Link to comment https://forums.phpfreaks.com/topic/191856-creating-a-file-on-user-computer/#findComment-1011217 Share on other sites More sharing options...
teamatomic Posted February 12, 2010 Share Posted February 12, 2010 Check out this site http://pablotron.org/?cid=1557 HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/191856-creating-a-file-on-user-computer/#findComment-1011227 Share on other sites More sharing options...
rahuul Posted February 12, 2010 Author Share Posted February 12, 2010 thanks for ur comment I just want to creat a system that alow user to register for one computer and then he can login using that computer only....... pls help, is their any other way..... Quote Link to comment https://forums.phpfreaks.com/topic/191856-creating-a-file-on-user-computer/#findComment-1011264 Share on other sites More sharing options...
teamatomic Posted February 12, 2010 Share Posted February 12, 2010 Aint gonna happen. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/191856-creating-a-file-on-user-computer/#findComment-1011268 Share on other sites More sharing options...
gizmola Posted February 12, 2010 Share Posted February 12, 2010 thanks for ur comment I just want to creat a system that alow user to register for one computer and then he can login using that computer only....... pls help, is their any other way..... Browsers do not support writing data to the local machine, other than cookies. There are plugin specific ways around this, but in each case it requires that the user install a plugin. I don't know how serious you are about this, or what sort of impetus users would have to use your site, but the most viable way of doing this, and actually expecting it to work is to use flash, since flash can read/write files. You could of course also use a cookie, but people routinely delete their cookies, and once that happened, a person who was "registered" would not be able to ever login again, because the file they needed would be gone. I'm not sure why this is important to you, in fact it sounds like a bad idea to me, but without a better explanation of why this "feature" is desired, there's not much else that can be suggested. Quote Link to comment https://forums.phpfreaks.com/topic/191856-creating-a-file-on-user-computer/#findComment-1011271 Share on other sites More sharing options...
rahuul Posted February 12, 2010 Author Share Posted February 12, 2010 thanks for your reply the site will work for MNC as admittance machine. User will login into the system from their workstation. and to check if he really have logined for his office system i need something like explained above. or can i track computer MAC ID pls advice Quote Link to comment https://forums.phpfreaks.com/topic/191856-creating-a-file-on-user-computer/#findComment-1011280 Share on other sites More sharing options...
gizmola Posted February 12, 2010 Share Posted February 12, 2010 Ok, so this is much more promising given the information. Is this an intranet application? From the sound of it, you could simply use $_SERVER['REMOTE_ADDR']. You can get a Mac Id, but that would require javascript calling activex which will only work on IE. Quote Link to comment https://forums.phpfreaks.com/topic/191856-creating-a-file-on-user-computer/#findComment-1011290 Share on other sites More sharing options...
roopurt18 Posted February 12, 2010 Share Posted February 12, 2010 It sounds like you are creating this for users of a company? If the users and the application are installed on the same internal network, you can make the application internal use only by adding the following to your apache configuration: <VirtualHost ...> # vhost stuff <Directory ...> Order Allow,Deny Allow from 192.168 127.0.0.1 </Directory> </VirtualHost> That will tell apache to only serve requests coming from localhost or the network 192.168. Quote Link to comment https://forums.phpfreaks.com/topic/191856-creating-a-file-on-user-computer/#findComment-1011453 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.