Category: PHP

Post Pic

Posting values through AJAX using jquery and getting a dynamic validation response without refreshing the page

It is now very simple to post values through AJAX using jquery for doing so we will use the following Jquery code

Post Pic

How to solve ‘cannot modify header information – headers already sent’

if you have used header something like this header(“Location: /redirect.php”);

Post Pic

Clear or clean output buffer not the headers

If you would like to clear the output buffer, but not the headers you can use the following code:

Post Pic

Counting variables in php

The easiest way to count variables in php is by using the following code:

Post Pic

Rss friendly datetime, php and mysql

Converting mysql datetime data to proper rss valid data like : Wednesday, July 14, 2010 7:27 AM

Post Pic

How to delete all files in directory using php.

Just use the following php code to delete all the files in a directory.

How to show posts of category and not its children in wordpress

If you are stuck with alot of children categories and only want to show posts of the category that user has clicked than you can use the following code.