Iam a php newbie.i have a url like
"http://localhost/cs/ "
I need to cut the "/cs/" portion from the above mentioned url.How can i do this?
Anyone please help.
Thanks.......
Trimming a URL portion
Moderator: General Moderators
Re: Trimming a URL portion
What do you mean by "cut"?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Trimming a URL portion
use $_SERVER['HTTP_HOST'] ?
Re: Trimming a URL portion
Thanks for the reply..