Redirect users to custom page with notification

In form registrations, and form operations which consists insert, update and delete actions; we often need to redirect user after a successful/unsuccessful operation(s). To inform user about the fail or success of operations, you can set flash messages, which you can set manual messages for any operations you want. Flash messages automatically destroy themselves after …

Close Popup Window and Refresh Parent Page

I needed this simple code tonight, I tried many ways, but this one worked perfectly. It firstly closes your popup window, and refresh the parent page then.

You can use it like this:

Unable to create directory /home/jamshidh/public_html/wp-content. Is its parent directory writable by the server?

I recently had a problem regarding this issue in my blog (WordPress 3.3). The problem occured when I wanted to upload an image to one of posts. When trying to upload the image, the following error occured: Unable to create directory /home/jamshidh/public_html/wp-content. Is its parent directory writable by the server? After some searchs regarding this …

Image upload with Codeigniter

1) Create upload.php file inside controller, copy and past the following code into. Also create an ‘uploads’ folder inside the codeigniter root folder.

2) Create the upload_view and upload_success files inside view folder and insert the below codes into upload_view

Upload Success

If you have any question regarding the codes above, you …

Check if a record exist in a specific table of database in MySQL

You can check if a record exist in a specific table of database in MySQL with the code block below:

The file ‘/Default.aspx’ has not been pre-compiled, and cannot be requested.

The quick solution for this problem is: Just rename the “.compiled” file from the /Bin folder and run the page. You will get the same error again, after this, rename back that “.compiled” file or .dll to its previous name. The same explanation : This is one of the temporary solution i did when i …