Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    January 25th, 2008
    Posts
    61
    encoding url with php
    I like to encode following URL using PHP.

    URL: http://www.bestbuy.com/site/Sony+-+B...&skuId=9763172

    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?

  2. Thanks From:

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Create Snapshot Of URL's Using PHP
    By Uncle Rico in forum Midnight Cafe'
    Replies: 2
    Last Post: June 28th, 2010, 08:40 PM
  2. url masking using htaccess or php redirect
    By breeke in forum Programming / Datafeeds / Tools
    Replies: 3
    Last Post: April 29th, 2010, 07:48 PM
  3. 2 Questions. URL-Encoding ebay landing page, Do I have to?? And also...
    By Ghoulardi in forum Commission Junction - CJ
    Replies: 0
    Last Post: December 26th, 2007, 03:42 PM
  4. encoding url's?
    By cjk in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: May 12th, 2004, 09:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •