Quantcast

Posts tagged ‘PHP’

Detect HP Printer (HP LaserJet M1522nf MFP) Supplies Availability using FusionWidgets, PHP and curl

In my office, there are several HP printers installed and connected to the network. It’s my duty to create such as dashboard to detect the supplies availability for those printers. In this case I am using FusionWidgets v3 to visualize it. I am using FusionWidgets v3 Developer License to achieve this mission. You also can download the trial version of FusionWidgets v3 to follow this tutorial. I assume you are already familiar with the FusionWidgets v3 deployment on your system. I only use the Cylinder type widget to visualize the printer supplies status. Continue reading ‘Detect HP Printer (HP LaserJet M1522nf MFP) Supplies Availability using FusionWidgets, PHP and curl’ »

Simulate Login to Facebook with PHP and curl

In my previous article, I already demonstrate how to simulate login to Facebook through their mobile interface. But now, after request from my readers, I want to show you how to simulate login to Facebook through their web interface using PHP and curl. I read some codes from the internet but mostly failed when I tried it, perhaps because of the script not fully simulate a web browser to do a login to Facebook. Continue reading ‘Simulate Login to Facebook with PHP and curl’ »

Posting Shoutout Message to Friendster using PHP and curl

Friendster (www.friendster.com) is one of popular social network in the internet. Through this short article we will demonstrate how to post shoutout message to your Friendster account using PHP and curl. Shoutout in Friendster is just like status message in Facebook. Here is the code to post the shoutout to Friendster. Continue reading ‘Posting Shoutout Message to Friendster using PHP and curl’ »

Access to Unread Gmail Messages using Gmail’s Atom Feed and PHP

One of our readers ask me about Gmail API availability. Yes, right now there is no Gmail API from Google. They only provide Gmail Atom Feed to get the unread messages from a particular Gmail user account. How to do that? Here is the simple code using PHP libcurl and Zend_Http_Client class. Continue reading ‘Access to Unread Gmail Messages using Gmail’s Atom Feed and PHP’ »

How to Use Zend Framework without Editing php.ini File?

After reading the How to Install Zend Framework? article, some of the reader asking about how to use Zend Framework without editing the php.ini file. Yes, good question. Actually there is another way to achive this. You can use the ini_set() function to set the value on your PHP configuration option. Here is the sample of using ini_set() to change the value of ‘include_path’ on your PHP configuration. Continue reading ‘How to Use Zend Framework without Editing php.ini File?’ »

Update Status on LinkedIn using PHP

LinkedIn (www.linkedin.com) is one of the famous professional social network in the world. They connect many professionals around the world through their network. One of nice feature on LinkedIn is you can update status message. They called it ‘What are you working on?’. Here is simple PHP code that can update status message on your LinkedIn account. This code is using PHP libcurl. Continue reading ‘Update Status on LinkedIn using PHP’ »

Create a Simple ‘Forget Password’ Feature using PHP

One of very common feature on a community or social network website is ‘forget password’ feature. What the hell is that? Well, it’s seems this feature is not important, but actually it will be useful if the member of the site was forgot their password. How to create a simple but quite good ‘forget password’ feature? As usual, we will need a scenario to reproduce our problem. But before we talk about the scenario, we will cover about our ‘forget password’ mechanism first. Continue reading ‘Create a Simple ‘Forget Password’ Feature using PHP’ »

How to Edit php.ini on your GoDaddy.com Shared Hosting

Many people still confusing about editing the php.ini file on GoDaddy.com shared hosting environment. Actually it was easy to do that. For PHP 5 setting you just create php5.ini on your GoDaddy.com web root folder. Add entry to your php5.ini file and save it. GoDaddy.com will reflect the changes you have been made on the php5.ini file. This will be useful when you need to add something on your php.ini file, for example add new value on your include_path or something else that requires you to edit the php.ini file. I hope this simple information helps you. Continue reading ‘How to Edit php.ini on your GoDaddy.com Shared Hosting’ »

How to Install Zend Framework?

Zend Framework is one of the famous PHP framework in the world. It’s an open source, object oriented web application framework for PHP 5. Zend Framework is often called a ‘component library’, because it has many loosely coupled components that you can use more or less independently. Many of our readers was asking about how to install Zend Framework. This article is written based on our experience of installing this nice and powerful framework. We will assume you already familiar with PHP environment, such as how to edit php.ini file, restart Apache/web server and so on.

We will talk about general steps to install Zend Framework and it’s applicable for both Windows and Linux/Unix platform. Continue reading ‘How to Install Zend Framework?’ »

Create Realtime Chart Without Page Refresh using FusionCharts Free and Ajax (prototype.js)

We receive a request from our reader to create simple realtime chart update but without page refresh. Fortunately there are many solutions to do this, but now we will cover using a nice flash charting component called FusionCharts. FusionCharts comes with several edition, but now we will use the FusionCharts Free version. You can download it from http://www.fusioncharts.com/free/. By the time of this writing, FusionCharts Free version is 2.2. Continue reading ‘Create Realtime Chart Without Page Refresh using FusionCharts Free and Ajax (prototype.js)’ »

Posting to Twitter using PHP libcurl, Zend Framework (Zend_Http_Client Class) and curl Command Line Utility

Twitter is the most popular micro-blogging platform today. In addition to using twitter.com to post a message, then you can also use Twitter API to post your message. Here is some code to post a status message to Twitter using their Twitter API. Continue reading ‘Posting to Twitter using PHP libcurl, Zend Framework (Zend_Http_Client Class) and curl Command Line Utility’ »

Checking Garuda Indonesia Flight Schedule using PHP

Here is the PHP code to check Garuda Indonesia flight schedule. Garuda Indonesia is one of Indonesia airlines service, the national flag carrier. Make sure PHP curl library is installed on your system. We will cover both for one-way and return flight schedule. You can read the sample of usage at the end of the code. Continue reading ‘Checking Garuda Indonesia Flight Schedule using PHP’ »

Sample of Loops Best Practice

Looping is a common thing in the world of computer programming. However, we often forget (including me) in implementing best practices in looping procedures. The common thing that make our loops not effective is ‘compute something’ on the second expression in the for loop. Here is the example. Continue reading ‘Sample of Loops Best Practice’ »

Get Feeds Data (RSS) using PHP and DOMDocument Class

RSS is very popular syndication format. Many people called it ‘Really Simple Syndication’ or some others called it ‘Rich Site Summary’. Through this article we want to show about how to read RSS feeds using PHP and DOMDocument class. Suppose we have RSS feeds at http://www.sony-ak.com/feed/rss and we want to get all of the recent posts (the article title and link). Here is the code to do that. Continue reading ‘Get Feeds Data (RSS) using PHP and DOMDocument Class’ »

Checking Batavia Air Flight Schedule using PHP

Here is the PHP code to check Batavia Air flight schedule. Batavia Air is one of Indonesia airlines service. Make sure PHP curl library is installed on your system. We will cover both for one-way and return flight schedule. You can read the sample of usage at the end of the code. Continue reading ‘Checking Batavia Air Flight Schedule using PHP’ »