I plan to make a query to a php file on my server as follows:
example.com/download.php?value=7
If this value meets a certain condition, the server should respond with actual content. If the value fails this condition, I want the server to respond with some type of 'null' value. Would the best practice be to create an empty temporary file and return this, or is there a more 'standard' way to respond there is nothing to download?