• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
logo

Tutsplanet

Free Technical and Blogging Resources

  • Home
  • Web Hosting
  • Programming
  • Plugins
  • Write For US
  • News
  • About Us
  • Tools

Programming

The 5 Biggest Challenges Facing DevOps in 2019

Feb 6, 2019 by Editorial Staff 1 Comment

The concept of DevOps has been around for more than 10 years. It’s no longer viewed as a fancy buzzword or a passing fad—today, it’s a mainstream work culture that’s applied by millions of software developers around the world every day. Nevertheless, DevOps still has some rough edges especially around how businesses adjust their departments […]

Filed Under: Programming

PHP Image resize Example Using Intervention Image Library.

Dec 27, 2018 by Editorial Staff 2 Comments

Today’s article we are showing, how to resize and upload an image in PHP using Intervention image library. As a web developer, you will have an encounter with image, upload and resize in various applications. Why is image resizing? As you know already speed is a key factor for the website ranking in Google.  A […]

Filed Under: Programming

How to detect request type in PHP?

Dec 27, 2018 by Editorial Staff Leave a Comment

When you working with forms or APIs, you will have to use GET, POST, PUT or DELETE. So how to detect which type the form actually submit. By using below snippet you can detect the request type in PHP $_SERVER[‘REQUEST_METHOD’] For example if ($_SERVER[‘REQUEST_METHOD’] === ‘POST’) { // The request is using the POST method […]

Filed Under: Programming

What is Laravel Mass Assignment, Guarded or Fillable?

Dec 26, 2018 by Editorial Staff Leave a Comment

When you work with Laravel you may have heard Mass Assignment, Guarded or Fillable. In this article, we will go through each term in detail.

Filed Under: Programming Tagged With: Laravel

React native app examples

Dec 23, 2018 by Editorial Staff Leave a Comment

React native apps dominating in the arena of Hybrid mobile apps. There are a plethora of big establishments creates react native app for their mobile presence. Find below list for react native powered mobile apps. Facebook Facebook Ads Manager Instagram F8 Bloomberg Pinterest Skype Tesla UberEats Walmart Labs Wix.com Baidu Mobile Delivery.com Discord SoundCloud Pulse

Filed Under: Programming

Laravel Image Intervention Tutorial With Example

Nov 5, 2018 by Editorial Staff Leave a Comment

How to use Intervention Image in Laravel 5 with Example. In this tutorial we will show how to use Intervention image manipulation package in Laravel. Basically we use this package to upload an image and resize it in the server. Common use cases are upload users photo or upload a product image etc. Laravel Image […]

Filed Under: PHP, Programming

Tips For Building A Scalable Technology Stack

Sep 27, 2018 by Editorial Staff Leave a Comment

Technology and the way the world works is constantly evolving, and as a result, so are businesses. Nowadays, businesses are creating and maintaining several different web and mobile applications, and these require a well thought out tech stack to work. This tech stack comprises of a framework of different programs and pieces of software, that […]

Filed Under: Programming

Manually Install APK Files In Android Studio Emulator

Aug 30, 2018 by Editorial Staff 1 Comment

This tutorial illustrates how to install the apk files manually in Android Studio Emulator.

Filed Under: Programming

How to remove file preview on the right side of Visual Studio Code Editor

Aug 7, 2018 by Editorial Staff Leave a Comment

Click on the View menu and look for Toggle Minimap, switch that off.  

Filed Under: Programming, Snippets List

Add FTP/SFTP in Visual Studio Code

Aug 7, 2018 by Editorial Staff 1 Comment

When you work with a PHP project, you want to upload a file to server time to time. Just imagine if you have the FTP in your code editor That’s what I am talking about. Follow the below instructions to add a FTP/SFTP in visual studio code editor. Search for the suitable extension in the […]

Filed Under: Programming

How to get all days and date for a given month?

Aug 5, 2018 by Editorial Staff Leave a Comment

This is to get all days and date for choosen month. Just follow the code to display all the dates for a month. $month = “07”; $year = “2018”; $startDate = “01-“.$month.”-“.$year; $startTime = strtotime($startDate); $endTime = strtotime(“+1 month”, $startTime); for($i=$startTime; $i<$endTime; $i+=86400) { $list[] = date(‘Y-m-d-D’, $i); } print_r($list);

Filed Under: PHP, Programming, Snippets List

Magento1: Get list of all Categories

Jul 31, 2018 by Editorial Staff Leave a Comment

In Magento there are many ways to get the categories. In this snippet we are showing different method to display categories.

Filed Under: Programming, Snippets List

Magento 1: How to get the Order Id from Shipping Tracking Id

Jul 26, 2018 by Editorial Staff Leave a Comment

How to get the Order Id from Shipping Tracking Id. This code would work only if the shipment has created.

Filed Under: Programming, Snippets List Tagged With: Magento

Install Apache2, MariaDB, And PHP 7.1 (LAMP) On Ubuntu 16.04 LTS Server

Jul 23, 2018 by Editorial Staff Leave a Comment

In this article we are showing how to create a development environment for your PHP + MySQL projects. LAMP is acronym for Linux, Apache2, MariaDB, PHP. I would suggest LAMP stack for the development of powerful CMS such as WordPress, Drupal, Magento. So this tutorial make sure you have the development environment ready for your […]

Filed Under: How To, Linux, Programming Tagged With: Apache2

Magento – get product id by sku

Jul 17, 2018 by Editorial Staff Leave a Comment

To get the product id from the SKU in magento1 $sku = 90909; // use your sku $productId = Mage::getModel(“catalog/product”)->getIdBySku( $sku );

Filed Under: Programming, Snippets List Tagged With: Magento1

10 Most Famous Software Programs Written In Python

Jul 14, 2018 by Editorial Staff Leave a Comment

Python is a incredible language to build web applications large scale or small scale. There are plenty of the websites or tools you use everyday is built on Python. If you are not  a tech savvy person, you may not know that.  Here are some most famous sites to use python and Django as a […]

Filed Under: Programming

How to Use reCAPTCHA in Laravel 5 Forms For Validation

Jul 14, 2018 by Editorial Staff Leave a Comment

There are plenty of options to prevent spam, but captcha is one of the best to use. When talking about captcha, the first thing will be in mind is weird characters seen on the online forms. Here we talk about Google’s Recapthca integration to your Laravel application.

Filed Under: Programming Tagged With: Laravel

Magento1:How to list all the products by a attribute value

Jul 12, 2018 by Editorial Staff Leave a Comment

In this tutorial we are showing how to list all the products related to a attribute value. For example you need to list out all those products with age group 3 year+. Required things are attribute code and attribute value ID. Let’s move to the source code that fetches all the products with in the […]

Filed Under: Programming Tagged With: Magento 1.9, Magento1 Tutorials

Magento1 :Programmatically add new customer address

Jun 20, 2018 by Editorial Staff Leave a Comment

Every developer does like to do things using programs. They don’t like the web interfaces made for common people. You can add customer address through a form located in your my account area. If you have bunch of address from an old system, it is not possible add one by one. Let’s add customer address […]

Filed Under: Programming Tagged With: Magento 1.9, Magento1

Magento 1: Delete Customer Address programatically

Jun 20, 2018 by Editorial Staff Leave a Comment

Have a look at this piece of code, which deletes the customer address based on the address ID in Magento.

Filed Under: Programming Tagged With: Magento 1.9

Magento1: Getting thumbnail image of product from order

Jun 20, 2018 by Editorial Staff Leave a Comment

In this article I will show you how to get thumbnail of a product from order  object.

Filed Under: Programming Tagged With: Magento 1.9, Magento1

Magento 1: How to get the country and region collection?

Jun 20, 2018 by Editorial Staff Leave a Comment

This article shows how to get the country list and region list in Magento1  and write to a select box. Get collection of all countries <?php $countryCollection = Mage::getModel(‘directory/country_api’)->items(); ?> <select name=’customer[country_id]’ > <?php foreach($countryCollection as $country) { ?> <option value=”<?php echo $country[‘country_id’] ?>” ><?php echo $country[‘name’] ?></option> <?php } ?> </select> Get country name […]

Filed Under: Programming Tagged With: Magento 1.9, Magento1

Magento1: How to get all addresses for a cusotmer based on email ID

Jun 19, 2018 by Editorial Staff Leave a Comment

In this article we are showing how to get list of billing address and list of  shipping address based on customer’s email. $customer = Mage::getModel(‘customer/customer’)->loadByEmail($email); //Load the customer object using email foreach ($customer->getAddresses() as $address) { print $address->getFirstname(); print $address->getLastname() } You can get customer details based on customer ID, just use the below code […]

Filed Under: Programming Tagged With: Magento 1.9

Get An Array of Country Names/Codes in Magento

Jun 19, 2018 by Editorial Staff Leave a Comment

$countryList = Mage::getResourceModel(‘directory/country_collection’) ->loadData() ->toOptionArray(false); echo “<pre>”; print_r( $countryList);

Filed Under: Programming Tagged With: Magento 1.9

How To Start An E-commerce Store Using Magento

Jun 16, 2018 by Yawer Malik Leave a Comment

Gone are the days when Brick and Mortar used to be the only way of doing business. Now, more than ever, an ecommerce stores has become the way to go and almost everyone can now create an online store to market and sell their products and services. Though, the real question is: How to start […]

Filed Under: Programming Tagged With: Magento

Get Uploads Directory Path in WordPress

Jun 12, 2018 by Editorial Staff Leave a Comment

The following code will print the uploads directory path in WordPress $upload_dir = wp_upload_dir(); print $upload_dir[‘baseurl’]; It will return the path of WordPress upload directory such as http://yourdomain.com/wp-content/uploads Basically this function will print a output like below You can write this as a function in your functions.php  to retrieve the uploads directory path. function tp_wordpress_uploads_directory_path() […]

Filed Under: Programming Tagged With: Wordpress

Redirect urls to HTTPS in Laravel 5

Jun 7, 2018 by Editorial Staff Leave a Comment

Modern internet equipped with more tools for security and easiness. Today we are learning how to redirect a url to HTTPS in laravel 5.  So we are forcing the users to use https urls  throughout  application. We can use middleware for redirect all non-https urls to https url. 1) Creates a middleware, you can create […]

Filed Under: Programming Tagged With: Laravel 5.5

Codeigniter Insert Data into Database

Jun 4, 2018 by Editorial Staff Leave a Comment

In this tutorial we will learn how to post data from a form and insert in to a database table in Codeigniter. Following steps will explain you briefly how to insert data in to database table using Codeigniter. Here we go with an example of Employee database. Create a form to fill in employee details, […]

Filed Under: Programming Tagged With: Codeigniter

Create RSS Feed For Website Using PHP

Jun 2, 2018 by Editorial Staff Leave a Comment

You may have seen a button in many website says “subscribe to RSS”. What is mean by RSS?. Short for Really Simple Syndication or Rich Site Summary, using for interacting content online. Instead of checking back every day to any website to see any new content online, just subscribe to their RSS feeds. This will give […]

Filed Under: Programming

How to insert inline JavaScript in the footer of your page with WordPress

Jun 2, 2018 by Editorial Staff Leave a Comment

You can add inline JavaScript code in to the footer of the page by using hooks in functions.php. Open your functions.php file located in the current theme. Add the below code to functions.php.

Filed Under: Programming Tagged With: Wordpress

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Interim pages omitted …
  • Go to page 8
  • Go to Next Page »

Primary Sidebar




Quick Links

  • A Simple YouTube Video Downloader Script in PHP
  • The 50 Most Useful jQuery Plugins for Frontend Development
  • Word Set 01
  • Convert PNG to JPG Online

Subscribe

* indicates required

Share

   

Hot topics

  • A Simple YouTube Video Downloader Script in PHP 13.2k views
  • Open a URL in a new tab using JavaScript 10.6k views
  • Using Third-Party Libraries in Codeigniter 8.3k views
  • Add FTP/SFTP in Visual Studio Code 6k views
  • Manually Install APK Files In Android Studio Emulator 4.6k views
  • Replace “\n” with new line characters, using Notepad++ 4.6k views
  • Upload Multiple Images and Store in Database using PHP and MySQL. 4.4k views
  • How To Install And Use CKEditor In Laravel? 4.2k views
  • Simple PHP Shopping Cart 4k views
  • Spout, an awesome library for reading and writing in Excel. 3.3k views

Categories

  • Design & Development
  • Drupal
  • Facebook
  • General
  • How To
  • ios
  • Javascript
  • Linux
  • Magento
  • Marketing
  • News
  • PHP
  • Plugins
  • Programming
  • Snippets List
  • Social Media
  • Softwares
  • Themes
  • Tips
  • Wordpress
  • YouTube

Copyright © 2021 · TutsPlanet Gene Theme on Genesis Framework · Powered By BunnyCDN