PHP

Zyxware default image4
| 1 min read
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.
Zyxware default image4
| 2 min read
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.
Zyxware default image1
| 2 min read
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.
Zyxware default image4
| 3 min read
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.
Zyxware default image4
| 2 min read
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 default image4
| 2 min read
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.
Zyxware default image4
| 2 min read
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.
Zyxware default image1
| 4 min read
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
Zyxware default image3
| 3 min read
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.