Yep, that's what you need. My suggestion would be to read those values in a "fake" index file that just grabs the res and passes them as get variables to the real index file, which in turn sets session variables with the values that you can use throughout your site.