I am trying to attach data and time with a filename but it is not working without any errors:
$date = date('Y/m/d H:i:s');
$pdf = $date.'order_sheet.pdf';
Through this code the file didn’t become downloaded
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re using slashes and whitespaces in the filename, this isn’t a good idea. Try to replace them with some other char, like so: