Archive for the ‘Curl’ Category

Simulate File Upload with PHP and curl

In this article, I will explain how to simulate file upload using PHP and curl. First I will create the complete but simple normal upload in PHP. Here is the code to do a normal file upload on PHP.
Normal file upload mechanism using PHP

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
// script name: upload_file.php
// coder: Sony AK Knowledge [...]

Create Simple Whois Service with PHP and curl

My friend ask me to create simple generic top-level domain whois service. It’s easy actualy, I remember that there is simple whois service that I usually use to check domain availability. It’s called Fonetrek.mobi. Let’s go to use it as our simple whois service using PHP and curl library. The URL to check domain whois [...]

Downloading a Remote File With cURL and PHP

By Quentin Zervaas. In this PhpRiot Snippet I will show you how to download a file from another web site and save it to disk.

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 [...]

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 [...]

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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
// script name: [...]

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 [...]