| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Needed Explode Command|
| 2:34 pm on Jan 12, 2006 (gmt 0)|
I need an explode command to brake a directory struction into variables?
I would like dir1 to be a variable as well as dir2 but have it not to display error messages if dir2 is missing and have it not to miss up when additonal /dir#/ or filename is added.
If an explode command is what I need can you please post or if another way to do this is better than explain.
| 2:44 pm on Jan 12, 2006 (gmt 0)|
remove the first slash in your string and you'll get
| 2:54 pm on Jan 12, 2006 (gmt 0)|
The /dir1/dir2/ would be in the url, so how do this?
| 3:35 pm on Jan 12, 2006 (gmt 0)|
My preference would be to use mod_rewrite to get them.
This does the job too, but you should validate your input:
there may be more work required depending on your site.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved