PHP Scripts

Useful PHP scripts as tools and examples for your PHP web development.

PHP Script For Updating Drupal Core

  • Posted on: 15 August 2013
  • By: admin

Updating Drupal core can be a difficult process because Drupal still doesn't support core update in online way. We must download the core first, extract it, then upload it to our server manually. This process can take more time because of so many manual operations. In order to solve that problem, I try to create a PHP script to make the update process easier. We just need to open a URL with some query string and then the script will download the requested Drupal core to our server. What we need to do next is run the update.php.

Tags: 

Commerce Auto Product Display

  • Posted on: 3 October 2012
  • By: admin

This module is an official contributed module for the Drupal Commerce. When the Drupal Commerce is released, I heard so many people complaining about the separation between Product and Product Display in Drupal Commerce module. So, this module is created in order to solve that problem. This module can simplify the Product Display creation process by providing option the create it at the same time with Product creation.

PHP Download Script

  • Posted on: 15 January 2011
  • By: admin

This is a PHP script that can be used to manage the download process. The advantages of using PHP script for handling the download process is we can prevent user to download the file directly, we can also limit the download speed to the desired speed, and we can also count how many times that file has been downloaded.

The script below has some features such as :

  • Configurable download speed.
  • Resumable download capability.
Tags: