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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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... Quote Link to comment 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. Quote Link to comment 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.