How to hide..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sirimallamurali
Forum Newbie
Posts: 11
Joined: Sun Jun 14, 2009 10:41 pm

How to hide..

Post by sirimallamurali »

Hi everybody,

I have developed a webportal using php. In this i m using one folder called script for all phpscripts. when i run this site on internet like http://www.example.com after opening this site if i click on any one link then the url redirecting to that linked script like http://www.example.com/script/ss.php its working fine. But when i erase the ss.php from url then it looks like http://www.example.com/script/. when i press enter then its displaying all script files under this folder.. so how can i hide this....

Thanks and Regards,
KK
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How to hide..

Post by requinix »

Apache server?

Code: Select all

Options -Indexes
Put that in script/.htaccess
sirimallamurali
Forum Newbie
Posts: 11
Joined: Sun Jun 14, 2009 10:41 pm

Re: How to hide..

Post by sirimallamurali »

please can u give example code for that..
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How to hide..

Post by requinix »

I did.
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Re: How to hide..

Post by pcoder »

haha You already got the code from tasairis
:)
Post Reply