I think you're getting caught with the register_globals default being changed in the newer versions of php. You now have to do something like this
if($_GET['action'] == "read") {
try that and see if it works on your local machine. Chances are that if it does work you'll probably have to use the middle ground aproach, because your server may have an older version of php running. (which is BAD! because of the security hole found in all php versions prior to php 4.12, but maybe they ran the patch, who knows)
so you'll really want this:
if($HTTP_GET_VARS['action'] == "read") {
note that HTTP_GET_VARS is not global, so if you put it in a function you'll have to do a
globals $HTTP_GET_VARS before using it. =)
hope this helps,
-nate