Title: PHP help &#8211; decoding URLS
Last modified: August 18, 2016

---

# PHP help – decoding URLS

 *  [subspacer](https://wordpress.org/support/users/subspacer/)
 * (@subspacer)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/php-help-decoding-urls/)
 * OK, So I have a nice script set up that outputs what’s playing in iTunes to a
   templated PHP page. And just for kicks, I made it so each Artist – Song Title
   links to allmusic.com’s search page.
    Problem: AM.com doesn’t use %20, they use
   |. for example: [http://www.allmusic.com/cg/amg.dll?P=amg&opt1=1&sql=The%20Decemberists](http://www.allmusic.com/cg/amg.dll?P=amg&opt1=1&sql=The%20Decemberists)
   [http://www.allmusic.com/cg/amg.dll?P=amg&opt1=1&sql=The|Decemberists](http://www.allmusic.com/cg/amg.dll?P=amg&opt1=1&sql=The|Decemberists)
   So my question: How do i set the PHP script to output spaces as | instead of %
   20 ?

Viewing 1 replies (of 1 total)

 *  [fwolf](https://wordpress.org/support/users/fwolf/)
 * (@fwolf)
 * [21 years, 8 months ago](https://wordpress.org/support/topic/php-help-decoding-urls/#post-99281)
 * with a simple `str_replace`, I think.
    cu, w0lf.

Viewing 1 replies (of 1 total)

The topic ‘PHP help – decoding URLS’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [fwolf](https://wordpress.org/support/users/fwolf/)
 * Last activity: [21 years, 8 months ago](https://wordpress.org/support/topic/php-help-decoding-urls/#post-99281)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
