Learn how to pick the right Drupal development agency for creating a great digital identity through your website
Here we will see how we can update the HubSpot contact by using PHP code, if we know only the contact's email.
Some of you might have seen this error message while trying to upgrade Mautic in your system: "[Symfony\Component\Debug\Exception\ClassNotFoundException] Attempted to load class "ZipArchive" from the global namespace. Did you forget a "use" statement?" while upgrading Mautic version.
We can install multiple versions of PHP in Ubuntu and switch between one version to another without the need to uninstall the other.
The AWS SDK provides API for multipart upload of large files to Amazon S3. We upload large images by part using this API. Multi-part API divides the large object into small objects, uploaded it to amazon independently. After the upload completes it assembles into a single object. If we need the following requirement you can use low-level API : Change sizes of part during the upload. Size of the data in unknown in advance. We need the following procedure to upload files to the amazon bucket.
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.
We can execute system commands using SHELL. shell_exec is a PHP function that returns the output as a string or null if it is a wrong output. Note that, this function is disabled when the PHP is running in a safe mode.
Recently, when I added a cron tab, I couldn't get it work no matter what I did. The file which I had to run via cron was inside the Drupal root and I added the following code to cron tab using,
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! To use this functionality in PHP, you need to have a version 5.4 or above. Using terminal, navigate to the root of the folder where the index.php or index.html and run the following command.
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.
[Drupal] How to create a php script to add a new set of category by using existing taxonomy term as reference id in Drupal 6
In my previous article "How to create a php script to add a new set of category by using existing taxonomy term as reference id in Drupal 6 ?" I have explained upto replacing taxonomy term using term id. In this article replacing taxonomy term using term name and also how to create a crone job for executing the script in regular intervals.
Zyxware Technologies has partnered with Vocational Higher Secondary School Irimpanam, Ernakulam to conduct the 'Code for Fun' workshop for children.The first in the series of workshops will be held on May 10, 2015 at VHSS Irimpanam from 10.00 a.m.-4.00 p.m.
CSV (Comma Seperated Value) a type of file format generally used in some popular websites like google to save the contacts in a comma seperated values. CSV is also called as a character seperated values. Its a normal file type as like doc, pdf etc. In this file format the values are stored by seperating every sentences with some characters. The most used character to seperate the values is comma so it is used to called as comma seperated values rather than the character seperated values. So lets have a quick look on how to read the csv format files.
[Drupal] How to add an SQL query to the global footer in Views without directly placing the PHP code in view?
Drupal 7 Views provides an option to add php to the Views footer in a View page. The option is called Global PHP. It allows you to add PHP code to views, to modify its output without adding code in a separate php file. However this option shoud be used with caution as a php error here can bring down the whole site and it would be difficult to detect. There is an alternative though. Read on to know how to add an SQL query to the global footer in Views without directly placing the PHP code in a view.
Sometimes working on Drupal Views is very intimidating as this a very complex module serving a variety of needs. No wonder it is one of top Drupal modules. Once I had a particularly difficult time trying to figure out how to get a relationship right in Views by trying to get the user name from the users table using a userid from a field in my custom table. However I managed to figure out the soution by reading the query generated by Views. Read on to know how to add a relationship between a custom table and Users table in Views below
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.
Recently I ran into the problem of mouseovers on touch devices. In short, they doesn't exist. I had just created a layout of four images which listed at the centre of the home page as like our zyxware website. And if you check the site on mouseover the image it will expand and while clicking the image it will go to the link added. But the problem is the mouse over wont work on the touch mobile devices.
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.
If you need to import users from the data given in a file in drupal 6, then user import module is helpful. Using this module, we can upload the file in csv format, which contains user details and select the details from the uploaded file using the user import module.
In this article, I would explain how to configure Alexa API to work seamlessly with your Drupal site. We have implemented this module in our site Top Drupal Sites. This module enables you to get the details of a site by passing the URL of the website. Read on to know more