I am trying to get the URL of my webpage into a script, but for some reason.. either I am a total dumbo, or there's something fishy with my PHP service..
Here's what I have:
But there is nothing displayed. Does anyone know if the NetNation hosting service has some sort of funny PHP installation?
i did a copy and paste with absolutely no changes and it gave me exactly my url back.
What it does not do is identify any directories below the url. I tried it in public_html, one secure dir and one unsecure dir and all came back with just the same http://www.noevalley.com never did see a dir.
have no idea why it does not work for you.
Do you think that NetNation has some sort of problem with their PHP configuration? What would cause these variables to NOT work?
Any help would be appreciated, since I am planning to phone them and ask why it doesn't work.. it's unlikely they're PHP experts, and neither am I.. so it's kind of like the blind leading the blind on this one.
What configuration options would be set (or not set) that would disable these variables?
The environment variables that are exposed in PHP are largely dependant on what version of PHP is being used (CGI, ISAPI, or Apache Module), and what Web server is being used (Apache, IIS, Sambar, etc.). Unfortunately, if NetNation's server isn't making those variables available, there probably isn't a lot you can do about it. A work-around should be possible, however.