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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -