prcollin Posted July 9, 2007 Share Posted July 9, 2007 how do i "include(file.txt); if i have it stored on my computer for security reasons or do i have to upload it to my domain. Link to comment https://forums.phpfreaks.com/topic/59081-another-quick/ Share on other sites More sharing options...
Yesideez Posted July 9, 2007 Share Posted July 9, 2007 You need to upload the file to the same location your script is running that calls it. Link to comment https://forums.phpfreaks.com/topic/59081-another-quick/#findComment-293325 Share on other sites More sharing options...
JasonLewis Posted July 9, 2007 Share Posted July 9, 2007 You need to upload the file to the same location your script is running that calls it. note: dosnt have to be the same directory. but the file will need to be uploaded. Link to comment https://forums.phpfreaks.com/topic/59081-another-quick/#findComment-293333 Share on other sites More sharing options...
trq Posted July 9, 2007 Share Posted July 9, 2007 but the file will need to be uploaded. Not necessarily. You can include remote files providing url wrappers is enabled on your host. However... this would mean the file would need to be publicly available (ie, you would need a http/ftp server) from your local computer. Hence, doing things this way gives you no more security and in fact will open your local computer up to various vulnerabilities unless you know what your doing. Link to comment https://forums.phpfreaks.com/topic/59081-another-quick/#findComment-293340 Share on other sites More sharing options...
JasonLewis Posted July 9, 2007 Share Posted July 9, 2007 but the file will need to be uploaded. Not necessarily. You can include remote files providing url wrappers is enabled on your host. However... this would mean the file would need to be publicly available (ie, you would need a http/ftp server) from your local computer. Hence, doing things this way gives you no more security and in fact will open your local computer up to various vulnerabilities unless you know what your doing. in otherwords, it would not be recommend to do it? it would be wiser to upload the file... Link to comment https://forums.phpfreaks.com/topic/59081-another-quick/#findComment-293343 Share on other sites More sharing options...
Yesideez Posted July 9, 2007 Share Posted July 9, 2007 He's using a ".txt" file which if th filename becomes clear to a user all they have to do is type this into the browser and the file will be shown. Link to comment https://forums.phpfreaks.com/topic/59081-another-quick/#findComment-293345 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.