I was just browsing a forum and someone asked about a php file they had found on the web. It has several spots like this in the code:
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
I have always thought brackets are needed to enclose what you want to do if the condition is true. Is there some other alternative, such as if it is on the same line you don't?
There is also another line like this:
IF ($action != ""):
mail("$adminaddress","Visitor Comment from YOUR SITE",
My instinct is to say this wouldn't work, but I also don't know if it is an outdated php file and it used to work?
Any input would be great.
Thanks, Levi