Jump to content

include/fopen function


Matpatnik

Recommended Posts

Is it possible to open a file and use it with include/fopen from an other server?What I mean is I'm kind of worry about the security of my php files. Can someone take it and use it? I have a session_start() on my main page that include all the rest plus .htaccess set to denied stranger to a direct access, is it good enough?What else can I do to protect my files.Thank you to enlighten me

Link to comment
Share on other sites

If your include files end in .php then it should be fine. Try opening an include file yourself in a web browser, you will see the same thing that another server would see. If you can see your PHP code then make sure your files are .php files, if you use .inc or something that PHP does not execute then that's a security issue.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...