How would I get an ASIN to go like www.mysite.com/product/ASIN ?
I'm using the code from Dev Shed.
Printable View
How would I get an ASIN to go like www.mysite.com/product/ASIN ?
I'm using the code from Dev Shed.
Make sure you have the "product" file set up in .htaccess to be parsed by PHP.
then in product do:
$var_array = explode("/",$PATH_INFO);
$asin = $var_array[1];
I'll try...
You on AIM or ICQ chromate?
In product it should be $asin = $var_array[2]; shouldn't it chromate?
The numbering will start at 0, so the second one is $var_array[1].
Not unless the asin occurs two slashes after the file name it's been referred to from. lol. If you follow that! :)
Incka, I'm on MSN Messenger but that's it.
OK, My MSN is sean@incka.com, but it only works 2 out of 4 days.
I'm using the same format, mysite.com/products/asin, and I use $var_array[2] that's all.
Mike, fancy sharing your code with lil ol' moi?;)
Come on MSN Mark :)
Damn - just missed you. :)
What! You wouldn't show me your code...
I can't get mine to work..
Mark has given me free advertising on his site though. If I had to pay it would be quite expensive I would have thought, so the least I can do is give him the script I am using.
Um, Want some free advertising on Games2Go?