Wednesday 27 December 2017

php - Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting '(' in





$command = $_POST['cmd'];
$args =
$_POST['args'];

if($args == !empty && $command !=
'reload'){


}


Thanks
guys, got it working!


itemprop="text">
class="normal">Answer



empty is a
function.



$command =
$_POST['cmd'];
$args = $_POST['args'];

if(!empty($args)
&& $command !=
'reload'){

}


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...