CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Move locale files into subdirectory?

Print topic Send  topic

Author Message
Gena

Posts: 591
Posted: 07/29/2008, 3:04 AM

I'm using Internationalization features so I have translation files (like en.txt, it.txt etc). Now all are located in the current directory and anyone can download it without my permission.

So I would like to move that files into some subdirectory. In the Classes.php I found $Dir variable so I assume I can use it. Could anyone give an idea how to implement it?
_________________
Gena
View profile  Send private message
datadoit
Posted: 07/30/2008, 5:32 AM

Gena no solution for you on moving the language files to subfolders. I
like the idea though, just to keep the root folder 'clean'.

Nevertheless, there is a problem with your web server configuration if
users are able to download files from your root folder. May want to
look into that first.
Gena

Posts: 591
Posted: 07/30/2008, 5:58 AM

But translation files are just txt file so how I can "protect" it from download?
_________________
Gena
View profile  Send private message
jjrjr1


Posts: 942
Posted: 07/30/2008, 8:33 AM

Hi

I agree with Data. The only reason to do that is to keep the root clean. How will moving the translation files to a subdirectory prevent downloading?

You could possibly modify .htaccess to prevent the server from serving up txt pages.


_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com
View profile  Send private message
datadoit
Posted: 07/30/2008, 9:23 AM

As John suggested... .htaccess if on Apache. Also look at httpd.conf.
Gena

Posts: 591
Posted: 07/30/2008, 9:40 AM

thank you, guys!
_________________
Gena
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.