Security issues with PHP's Readfile method -


hey. there security issues should worry when using readfile method in php? i'd use readfile method takes in url of file stored on various third party servers. serve file user. intuitively, seem there risk url point file. on other hand, i'm using readfile method (after processing file-independent data) , not sure if allow malicious execute on server. also, according manual, seems if want use url readfile, need enable fopen wrappers. thanks.

readfile not execute code on server there no issue there.

however, strange folks use server perform web requests in order server trouble making unauthorized requests or cause overloading you'll want keep in mind when coding type of functionality.

according manual, seems if want use url readfile, need enable fopen wrappers

yes, you'll need make sure allow_url_fopen on. if isn't, you'll have using curl.


Comments

Popular posts from this blog

sql server - python to mssql encoding problem -

java - SNMP4J General Variable Binding Error -

c# - BasicHttpBinding equivalent CustomBinding using WCF Client and PHP WebService -