Migrating PHP
November 3rd, 2004I think the server switch over is just about complete, I have a few parts of my gallery to upload yet. While most things have been working for a while the little stylsheet switcher was failing because the new server has a different version of PHP installed and old variables weren’t working. Took me a while to figure out why Safari was refusing to go to a null address. I was under the impression it was supposed to be re-directed back to where it was. Seems $HTTP_REFERER isn’t good enough any more, you need $_SERVER[’HTTP_REFERER’]. In addition on my old server I could simply use the variable name of an item passed through the url so somepage.php?variable=true, could be referred to as $variable. No longer. Now it has to be gotten with $_GET[’variable’]. I guess that is a good thing because you really might not want your variables to have values when you think they are empty, but for crying out loud, that took me way too long to figure out.
Everyday is a learning experience. . . . election day being one of the biggest.