Skip to content
Tareq Hasan

TagPHP

CRUD Generator for WordPress

I have written countless number of plugins in the last 7+ years after I started working with WordPress and created other web applications. No matter what type of applications you are building, simple or complex, small or big, one thing is common, you have to insert some data into the database, fetch them, update them …

WordPress plugin: User Login Statistics

It's a tiny plugin that logs the user login count. I made this about two months ago for a client. Now I am making it open source. You can view how many registered users logged in in your site every day. There are no other options for this plugin. Just install and it'll log the …

Simple server to server file downloader script

About a month ago I wrote a script for my own need. It can download files from another server to your server. I just wrote it for my own purpose and it's pretty simple and stupid enough. But hey, it works ;) This script has a form input field to make the operation simpler. The …

Locate phone location with GP Aloshbei location API and visualize with google maps API

We have built our main Aloashbei class in the previous post. Now we will extend it to locate any GrameenPhone number. But currently, as a developer you can only track your number for testing purpose. File Structure: class.Aloashbei.php class.AloashbeiLBS.php location.php includes/WebService_Aloashbei_LBS_WS.wsdl So we have "class.Aloashbei.php" and "class.AloashbeiLBS.php". Now we need to get the wsdl file. …

Bangla date as a PHP class

I worked with Bangla date a long time ago. The first initiative was to make an extension for forum engine punBB. After that, I made a javascript widget to display Bangla date in any site. The third initiative was to make a facebook application that shows current Bangla date to your facebook profile. I …

Create your own twitter image signature

Many days ago I built two image signatures as my forum signature. One of the signatures shows the latest post from my blog and another shows my latest twitter update. I was inspired to do that signature by seeing Shiplu Vai's signature. Originally he was using them and I copied the concept :D Anyway, here …

Sending mail with Gmail's SMTP server with fsockopen

Today I was trying to find a way to send mail from my localhost (xampp) with Gmail's SMTP server. I found some code in popular and also fastest forum engine - punBB. I got the codes and did some cleanup for working fine as an external script. Here are the codes -

Image upload & Validation: My first class to phpclasses.org

Recently i had to work with image uploading on my some projects. The issue was to upload the user avatar and rename the avatars with their userid. So that it will be easy to work with avatar system. I first used this idea to one of my project and i did this with procedural method. …

Playing with twitter JSON using PHP

Now twitter is playing a major role to our day. Many of us are using twitter. Now let's play something with it. Today i will use JSON to play with twitter LOL. Let's play with our statuses. If you are using twitter, then your status url is http://twitter.com/status/user_timeline/YOUR_USERNAME.json. So if your twitter id is tareq_cse …