Trouble with getenv('QUERY_STRING')
Posted: Thu Nov 26, 2009 5:06 pm
Hi, I wasn't sure if I should post this in the PHP forum or the JS forum but I'm pretty sure the problem is PHP related.
I have been using YUI 2.7.0 (http://developer.yahoo.com/yui/), and I have been trying to make something similar to this:
http://developer.yahoo.com/yui/examples ... ather.html
The code as it is, WORKS fine.
It's a pretty simple example, and I tried working my way implement something similar but I kept having getenv('QUERY_STRING') being nothing (i.e. empty). I went to the extend of just using the exact same code as given there with just one change in the php file.
This line of code:
was changed with this:
With just changing 1 line in the PHP file, the getenv('QUERY_STRING') becomes nothing and the XML returned gives me an error because of this. It just stops working just by changing a single line, which is a valid url. How is that possible? I can't understand this.
I have been using YUI 2.7.0 (http://developer.yahoo.com/yui/), and I have been trying to make something similar to this:
http://developer.yahoo.com/yui/examples ... ather.html
The code as it is, WORKS fine.
It's a pretty simple example, and I tried working my way implement something similar but I kept having getenv('QUERY_STRING') being nothing (i.e. empty). I went to the extend of just using the exact same code as given there with just one change in the php file.
This line of code:
Code: Select all
$url = 'http://xml.weather.yahoo.com/forecastrss?'.getenv('QUERY_STRING');Code: Select all
$url = 'http://developer.echonest.com/artist/'.getenv('QUERY_STRING').'/audio.rss';