oceans Posted August 16, 2007 Share Posted August 16, 2007 Dear People, I want to Read a text file. I understand on the coding portion, but I am unsure on the actual process. Is it, we read it directly from a client computer or we have to upload to the server then read from the server. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/65195-solved-i-want-to-read-a-text-file/ Share on other sites More sharing options...
d22552000 Posted August 16, 2007 Share Posted August 16, 2007 Upload to server... use FOPEN to read file print file contents on screen OPTIONAL: (delete uploaded file) That order might be what you are looking for. Quote Link to comment https://forums.phpfreaks.com/topic/65195-solved-i-want-to-read-a-text-file/#findComment-325535 Share on other sites More sharing options...
oceans Posted August 16, 2007 Author Share Posted August 16, 2007 Thanks d22552000, I understood the sequence... Quote Link to comment https://forums.phpfreaks.com/topic/65195-solved-i-want-to-read-a-text-file/#findComment-325536 Share on other sites More sharing options...
NArc0t1c Posted August 16, 2007 Share Posted August 16, 2007 In more detail: You make an upload script using php, to upload the file to a temporary dictionary. Once it's uploaded you can read from the using various functions, it depends on what you want to do with the text file. And then delete the file using unlink or something similar, keeping the text file will result in loss of client security. Quote Link to comment https://forums.phpfreaks.com/topic/65195-solved-i-want-to-read-a-text-file/#findComment-325537 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.