Amazon S3 provides API for multipart upload of large files. Multipart upload allows you to upload a large object as a set of small parts/portion of the object's data. You can upload these small object parts independently. If transmission of any part does not succeed, you can retransmit it without affecting other parts.
While working on a Drupal 6 project, I came across the requirement to send some mails. Interestingly, I couldn't find any good articles or procedures on the same. So, here, I am going to explain how to send mails in Drupal 6 with attachments. If you need any business support, get in touch immediately.
There will be many situations when you need to handle files from an FTP server in PHP. PHP provides a handful of functions to do the task quite easily, but there are some hidden difficulties too. So here I am going to explain the process of connecting to and FTP server and handling files there.
This article explains a relatively new feature in php; The Built-in web server. Other languages like python and ruby already had their own simple HTTP servers where you can convert you local folders/directories into a simple HTTP server (for python: python -m SimpleHTTPServer) which serves scripts and HTML files and basically does almost everything apache does. Almost!
Before reading this, please familiarize yourself in setting up a php built-in web server. Phpmyadmin is usually installed along with apache web server. Depending on the version of apache you may have some complications along the way. Fear not, for php has introduced something known as a built-in webserver! With this, you can convert any local folder into a server and host a site locally there.
CodeIgniter is an open source PHP frame work with simple MVC pattern. CodeIgniter is lightweight, generates clean URLs and uses very simple template parser. CodeIgniter didn't require a specific template engine for website layout. Latest version of CodeIgniter is Version 3.0.0. It is a loosely coupled, faster, flexible and high performance system. It supported the database such as MySQL (5.1+), Oracle, MS SQL, PostgreSQL, SQLite, etc.
I had a requirement in one of my Drupal projects to post a picture on Facebook automatically. We have many modules in Drupal to be used for the same task but the most simplest way is to use PHP sdk. To auto post a picture on Facebook we need
A constant is a name for a simple value, which will not change at the time of execution. The main advantages are ranges from setting configuration values to saving integer values to be checked as strings (like status codes). PHP provides functions for constant values, which make the usage more easier. These functions are important in Drupal too, since we may need those when working in Drupal projects.
We needed to get the description of a site automatically from its url after parsing the HTML markup, for one of the Drupal sites we were working on. This is a task that can be easily accomplished by using the PHP curl library. Read on to know how to use a php script and curl to download the contents of a website.
To connect into MySQL database with the help of PHP based web applications we are in need of mysql_connect or by PDO method. Here i have added a common function which will be useful for the php based websites to connect into the database.
In this article I will be explaining a task I did for one of our sites in Drupal6. In this site, for every content type say event the users manually entered year along with the title in title field. So my task was to remove the year from title and save it in a seperate cck field.
I was faced with a requirement to convert number to words/string in Indian naming system with lakhs and crores. I had to generate the amount in words for printing it out on a bill. The total amount, provided to the customer, needed to be converted to string. For example, if 1345673 was to be converted to Thirteen lakh Forty Five Thousand Six Hundred and Seventy Three, these functions will have to be followed.
Comma separated values, commonly referred to as CSV is one of the most popular methods for transferring data between systems. Creating code to export data to CSV is extremely useful in many applications. If you want to know how to create CSV files using PHP then read on.
If you are a PHP programmer or a Web programmer you would eventually encounter a situation where you need to process XML. Since XML (Xtensible Markup Language) is a widely using format for exchange of information there are libraries to parse an XML file in PHP. Read on to know how to read an XML using DOM.
In one of our Drupal projects, we implemented a feature where, users can login to the site through Facebook login(fconnect button). Facebook login(Fconnect) button was implemented using fbconnect module. Client requirement was to change the landing page for each user according to their role after login through facebook.
cURL is a very powerfull system which allows us to transfer data across a wide variety of protocols. cURL is commonly used to send data across websites which includes API interaction. Using a cURL request, we can do the basic HTTP request, the more complex FTP upload or interaction with an authentication enclosed HTTPS site.
By default, all HTTP requests made out by cURL are GET requests. It simply fetches the URL and doesn't submit any POST variables. However, if we need to fetch and retrieve URL by the POST method with cURL, you will need the snippet below:
Webform is a Drupal module that can help webmasters create submission forms like survey forms, contest forms, contact us form etc without any custom programming. Usually webform submissions will result in the data being inserted as a new row into table 'webform_submitted_data'. But our client requirement was to update an existing submitted data from the table 'webform_submitted_data'. If you want to know how to update an existing webform submission then continue reading