FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » self-modifying program
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: self-modifying program [message #174363 is a reply to message #174362] Wed, 08 June 2011 12:17 Go to previous messageGo to previous message
jeff is currently offline  jeff   
Messages: 8
Registered: May 2005
Location: Toronto
Karma:
Junior Member
On 6/8/2011 7:50 AM, Michael Fesser wrote:
> .oO(Jivanmukta)
>
>>> Why do you need that the file is reachable through the web browser?
>>
>> BTW, my website contains also "include" folder (for class.X.php,
>> lib.X.php). Should it be placed inside public_html?
>
> No, such scripts and configuration files should be stored outside the
> document root.

Why? The public sees nothing if they hit the script.

Not that I have a problem with putting such files outside public, but
it's not uncommon to FTP to a server and just have the html root
visible. I've never seen a server fail that exposed the php as plain
text. Portability leads toward the more accessible path.

Myself, I would be far more concerned about having the MySQL user as: root.

J
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: We wholesale Amazon Kindle/ Monster Beats / Ipods / Apple products of all types
Next Topic: [newbie] datetime issues
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 09:45:41 GMT 2024

Total time taken to generate the page: 0.04188 seconds