I have a php file on the server. When a internet user visits the page, the html code is the one that is sent. But what is the user downloads it (as in save as or use some download manager like DAP & give the url:someurl/somepage.php) ? Is it possible for him to get the code ? I mean, if we write a vb code using the inet control I think its posible to get the code.
Thanks
Download a php file ?
Moderator: General Moderators
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
i dont know whats inet control
but php cant be d/l and saved beacuse hwen u reference it
the serverautomaticlly runs is
the serverautomaticlly runs is
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
not necessarily...
good PHP code should be safe even when downloaded by a hacker... make sure you put your .inc files (like db_conf.inc) in a seperate folder, and don't give webusers access to this folder... PHP will have access and have no problem with opening it...
Second is your database security.. make sure the user you'r using in your php script only has the necessary security settings to do only what it has to do (no drop tables and such)... also make sure that that user can only connect from a fixed IP (eg localhost)
good PHP code should be safe even when downloaded by a hacker... make sure you put your .inc files (like db_conf.inc) in a seperate folder, and don't give webusers access to this folder... PHP will have access and have no problem with opening it...
Second is your database security.. make sure the user you'r using in your php script only has the necessary security settings to do only what it has to do (no drop tables and such)... also make sure that that user can only connect from a fixed IP (eg localhost)