f9488a8cf8 Luckily, the issue is really obvious, the fix comes in two flavours and they are both very easy to implement. Why is it not recommended, then? It will break as soon as you update CI to the latest version and the helper will get overwritten by a newer version. If you set the second parameter to NULL and $filename is an existing, readable file path, then its content will be read instead. Why not make the first one! New Comment [Sign In]Name: Comment: (Some BBCode tags are allowed) Security Code: . Peter Legierski /pronounced as leg-year-ski/ Occasional workaholic, regular teaholic. PagesHome WordPress Plugins About me Contact me Privacy/Policy Categories CodeIgniter CSS HTML Java Script JQuery Magento Mix PHP Wordpress yii . Previous Topic:Directory Helper Top of Page User Guide Home Next Topic:Email Helper CodeIgniter Copyright 2006 - 2014 EllisLab, Inc.. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.
Maker of things. The script terminates without any explanation, instead of at least notifying us in error logs (or user, by displaying a message) that there’s something wrong. View Demo Download PHP force download a file Example (32 KB) Share. HTML Code: Dowload File PHP Code (download.php): Download Source CodeView Demo Recommended Posts For You Add Event to Calendar using jQuery, Ajax and PHP Load more data using jQuery Ajax and PHP from database Distance between two addresses using Google Maps API and PHP Build an event calendar using jQuery, Ajax and PHP Convert HTML to PDF in PHP with Dompdf Leave a reply CancelComment* Your Name* Your Email* Your Website ← OlderNewer →CodexWorld NewsletterSubscribe CodexWorld updates via email and get every new post delivered to your inbox. How to use this? href="domainName/downloadFile.php?file=StudentsMarks.pdf" Note:-Sometimes your file will get an error as follows. I can see 2 reasonably clean fixes and 1 hack to get rid of that problem: Fix no.1 (recommended)Create a file called MYdownloadhelper.php in application/helpers/ folder. Fat, powdered nose, indoor climber! Currently working on my personal project MRR.io. Also, this simple PHP script helps to implement a download link which downloads a file from the directory.