explode url file name $1=
I have a url to seperate for a query
something.com/site-fun-sun.htm
how would it be possible to associate the words before the extension .htm
example:
echo "$1"; > = fun
$1=fun
$2=sun
$3=site
I have a url to seperate for a query
something.com/site-fun-sun.htm
how would it be possible to associate the words before the extension .htm
example:
echo "$1"; > = fun
$1=fun
$2=sun
$3=site
Assassin posted this at 02:30 — 13th May 2005.
He has: 77 posts
Joined: Apr 2005
Ok, what language do you want this done in? PHP, ASP, CGI/Perl, CGI/C, Java, Javascript (it's possible).
Busy posted this at 10:18 — 13th May 2005.
He has: 6,151 posts
Joined: May 2001
Variables usually can't be a number (start with a number)
If you're using PHP or something you can use mod rewrite to convert page names or variable names; ie something.com/site to site = $site (or fun or sun or whatever)
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.