Display Folder name only in php

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 10
Joined: Tue Aug 16, 2011 10:35 pm

Thu Mar 07, 2013 2:05 am

hi friends i am new in php
I am using wamp
I have some folders and more files in folders


admin/index.php .....

if admin logged display url is project/admin/index.php

but i want display only project/admin
only project

Plz help me

User avatar
New php-forum User
New php-forum User
Posts: 11
Joined: Thu Mar 07, 2013 2:00 am

Thu Mar 07, 2013 3:23 am

Hi, You can make use of PHP SESSION.. It will be good for this type of issues.! If the session user is not given permission to view the folder make him to return back to his default page. :)

php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Thu Mar 07, 2013 12:17 pm

I think they're actually looking for how to use rewrite rules with .htaccess. Here's a quick overview of how to do a couple of things: http://kb.mediatemple.net/questions/85/ ... e+rules#gs jream also included a brief explanation of some of the common function in the 'create your own mvc' series available at : http://jream.com/learning/videos/php-oop

Post Reply