I have the following code, what is the easiest way to check if $data has something in it?
$handle = fopen($_FILES['uploaded_file']['tmp_name'], "rb");
$data = fread($handle, filesize($_FILES['uploaded_file']['size']));
when I do
file_exists($_FILES['uploaded_file']['tmp_name']
it prints out 1? does 1 mean exists?
in some languages 1 and 0 represent boolean values
1astrue0asfalseequal to