PHP Script is not working as expected -
i trying make own script verify's websites url , have tired add key verification user of monthly payment clients use admin system since have add key script not work how want to, code please note not added database connections yet
<?php $site ='site url'; $key = '12534'; if($server==$_server['http_host'] && $key != $site && $key!=(1245)){ echo 'sorry u not have correct permission'; }else{ echo 'correct permission'; } ?>
i keep getting sorry u not have correct permission
there typo in code
if($server=$_server['http_host'] && $key != $site && $key)
should be
if($server==$_server['http_host'] && $key != $site && $key)
Comments
Post a Comment