Category : PHP

How do we get name,size,type information of uploaded files through javascript

In this post, I am going to explain you how can we get all information of uploaded files like name,size,type  on button click. In this form,we have two button 1) Input type file button through which we can upload multiple files 2)Input type button:  On click of this button we call getFileNames() function 3)getFileNames() function gives the

Read More →

655 total views, no views today

Prepend and Append Files with .htaccess

One of the lessor known and used capabilities of .htaccess files is the ability to prepend and append includes to every page request. Doing so avoids needing to code <!–?php require(‘footer.php’); ?–> in every template file you wat to use them in. Here’s the .htaccess code:

Now don’t mistake this post as me telling

Read More →

553 total views, no views today

Retrieve Your Gmail Emails Using PHP and IMAP

Grabbing emails from your Gmail account using PHP is probably easier than you think. Armed with PHP and its IMAP extension , you can retrieve emails from your Gmail account in no time! Just for fun, I’ll be using the MooTools Fx.Accordion plugin to display each email. The CSS

  The MooTools JavaScript

Read More →

2,405 total views, no views today

How to make ajax call in wordpress plugin

AJAX handlers are easy to add. This involves two things: (1) Specify the action name in url of ajax function in JS file (2) When action name matched,it will call a  function to handle an AJAX call in php file….   JS file(Plugin folder)

In your your XXX_Plugin.php  file,

       

Read More →

583 total views, no views today

WordPress Heartbeat and heavy admin-ajax.php usage

What is WordPress Heartbeat API : It allows WordPress to communicate between the web-browser and the server. It allows for improved user session management, revision tracking, and auto saving. The WordPress Heartbeat API uses /wp-admin/admin-ajax.php to run AJAX calls from the web-browser. Which in theory sounds awesome, as WordPress can keep track of what’s going on in the dashboard.

Read More →

1,591 total views, no views today

1 2 3 4 5 9