Results 1 to 1 of 1
August 10th, 2010, 12:11 AM #1
encoding url with php
- Join Date
- January 25th, 2008
I like to encode following URL using PHP.
Encoded URL: http%3A%2F%2Fwww.bestbuy.com%2Fsite%2FSony%2B-%2BBRAVIA%2B46%2522%2BClass%2B%2F%2B1080p%2B%2F%2B120Hz%2B%2F%2BLED-LCD%2BHDTV%2F9763172.p%3Fid%3D1218170031942%26skuId%3D9763172
I used urlencode in php but it doesn't work. it gets following output.
using urlencode: http%3A%2F%2Fwww.bestbuy.com%2Fsite%2FSony+-+BRAVIA+46%5C%22+Class+%2F+1080p+%2F+120Hz+%2F+LED-LCD+HDTV%2F9763172.p%3Fid%3D1218170031942
If you notice + doesn't get encoded with urlencode, how do it get that to work? rawurlencode also doesn't work. Any thoughts?
By Uncle Rico in forum Midnight Cafe'Replies: 2Last Post: June 28th, 2010, 07:40 PM
By breeke in forum Programming / Datafeeds / ToolsReplies: 3Last Post: April 29th, 2010, 06:48 PM
By Ghoulardi in forum Commission Junction - CJReplies: 0Last Post: December 26th, 2007, 02:42 PM
By cjk in forum Programming / Datafeeds / ToolsReplies: 1Last Post: May 12th, 2004, 08:35 AM