Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 96
Trades: 0
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
 
 
Register now for full access!
Old 03-20-2006, 08:34 PM RE: include('../everything.php');ÂÂ*ÂÂ*?
Junior Talker

Posts: 185
Trades: 0
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, 09:43 PM RE: include('../everything.php'); ?
Junior Talker

Posts: 96
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 0.42241 seconds with 12 queries