You may have noticed an issue while coding on CodeIgniter that even though you have destroyed the session values (invoking the $this->session->sess_destroy()) after logging out the page, the browser back button still takes you to your previous history page. Even though we may have made a provision to check empty session parameters and log out the page if the session has been destroyed, the browser back button still displays the previous pages that we have browsed.
In CodeIgniter, while implementing a search system to search your data queried from the database, you might have come across the situation when your pagination wouldn't have worked as desired.
We will find various Drupal modules to inject the Adsense to our site content. However, they do not usually allow us to add the Adsense code to the middle of our content body. Here, I have included a simple tweak to the drupal code.
Images can be stored to a MySQL database, in a BLOB datatype. While all other processes of uploading the image is the same as it is to a file, there are couple of error checking that is essential to ensure safety.
OS: Windows Server 2003
1. Download the PHP 5 installer.
Download the latest PHP version for Windows from http://www.php.net/downloads.php
The function write_log below writes the contents of an array $contentstowrite to a text file log.txt (The array and filename can be modified as required). The content to write should be an array or else it displays an error.
This simple function here checks whether the given file with the filename that we retrieved through GET method exists and prints the output in excel format by printing suitable headers to the page.
The function below forces the download of a file inside a directory 'Log' ( may be any directory Log in my case).All we do here is get the file name inside the directory through GET method and call the custom function force_download.
This function checks if the given file exists in the directory and if it does, it forces the download of the file by printing the required headers to the page. Finally the readfile function outputs the file.