Reply
include('../everything.php'); ?
Old 03-18-2006, 11:54 AM include('../everything.php'); ?
Junior Talker

Posts: 96
It is a common practice to place the php script (in my case, mysql_connect.php) that connects to the database outside your web-root folder so no one can access it from the web.

It just came to me that to improve my security why not place all my script outside the the web-root and leave only html/css with include linked to these scripts?

I know that php itself does not display in a web browser, so am I being paranoid? What's your it on this? Any technical problems I did not see in this?
tromso is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 03-20-2006, 09:34 PM RE: include('../everything.php');ÂÂ*ÂÂ*?
Junior Talker

Posts: 185
if ipb and vb have their include files in a ubfolder, i'm sure you'd be fine doing the same thing. even if somebody did download those files, it probably would only give them a blank page or something similar since the source can't actually be downloaded, just the page that is displayed. i really don't see any need to be doing that.
PureEvil is offline
Reply With Quote
View Public Profile Visit PureEvil's homepage!
 
Old 03-20-2006, 10:43 PM RE: include('../everything.php'); ?
Junior Talker

Posts: 96
Quote:
Originally Posted by PureEvil
if ipb and vb have their include files in a ubfolder, i'm sure you'd be fine doing the same thing. even if somebody did download those files, it probably would only give them a blank page or something similar since the source can't actually be downloaded, just the page that is displayed. i really don't see any need to be doing that.
I'm not talking about right click--> Save Page As..but probably more subtle PHP/Javascript/whatever injections that not quite close to total server access(you're in big trouble than). Through PHP injections hackers sometimes can download all your code (just like you, the webmaster might download it from the host) that's placed within the webroot however not outside the webroot.

PHP is a server-side script therefore it does all the processes on the server than write html code accordingly which is than displayed in your browser so of course there is no PHP.
tromso is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to include('../everything.php'); ?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12592 seconds with 12 queries