Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Display Folder name only in php

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Display Folder name only in php

Postby manognatha » 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

Folders
admin
master

files
admin/index.php .....

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

but i want display only project/admin
OR
only project

Plz help me
manognatha
New php-forum User
New php-forum User
 
Posts: 9
Joined: Tue Aug 16, 2011 10:35 pm

Re: Display Folder name only in php

Postby aravindoptimus » 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. :)
User avatar
aravindoptimus
New php-forum User
New php-forum User
 
Posts: 11
Joined: Thu Mar 07, 2013 2:00 am

Re: Display Folder name only in php

Postby seandisanti » 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
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP coding => General

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.