In this post, we will see a Rest API of how to get Bitcoin address details and a Transaction list of any given address. The API is written in PHP but can be used in any language with related changes to that certain language. Bitcoin is a cryptocurrency invented in 2008 by an unknown person […]
Author: Web Guru
How to Build a Telegram Bot Using PHP
Telegram is a cloud-based instant messaging and voice over IP service. Telegram client apps are available for Android, iOS, Windows Phone, Windows, macOS, and Linux. Users can send messages and exchange photos, videos, stickers, audio, and files of any type. Telegram has all of the features you would expect from a modern chat platform, including […]
How to install composer
What is Composer A composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. System Requirements Composer requires PHP 5.3.2+ to run. A few sensitive PHP settings and compile flags are also required, but when using the […]
How to install Node.js on WHM server or cPanel
In this post i will explain how to install Node.js on your hosting server. Node.js is a JavaScript runtime and uses an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js’ package ecosystem, npm, is the largest ecosystem of open source libraries in the world. You can check more information on their official […]
How to get a YouTube video Image or Thumbnail
In this post you will learn how to get you tube video images and thumbnails. There are various method to get Images or Thumbnails like using url manually or getting it from API. Below you will see both methods of getting this information. Method 1. Getting images manually using URL. Each YouTube video has 4 […]
How to create logs in php
Many times we need to create logs in our Web Applications to track any certain Errors or Response. We just need to put a bunch of code where you want to Create a log. In this post you will learn how to create logs using Php Code.
1 2 3 4 5 6 7 | <?php $log = "User: ".$_SERVER['REMOTE_ADDR'].' - '.date("F j, Y, g:i a").PHP_EOL. "amount: ".$amount.PHP_EOL. "user_id: ".$user_id.PHP_EOL. "-------------------------".PHP_EOL; file_put_contents('log_'.date("d-m-Y").'.txt', $log, FILE_APPEND); ?> |
This code will check for the filename. […]
HTML helper in codeigniter
HTML Helper The HTML Helper file contains functions that assist in working with HTML. Loading this Helper This helper is loaded using the following code:
1 | $this->load->helper('html'); |
Available Functions The following functions are available: heading([$data = ”[, $h = ‘1’[, $attributes = ”]]]) Parameters: $data (string) – Content $h (string) – Heading leve $attributes (mixed) – […]
Language helper in codeigniter
Language helper The Language Helper file contains functions that assist in working with language files. Loading this Helper This helper is loaded using the following code:
1 | $this->load->helper('language'); |
Available Functions The following functions are available: lang($line[, $for = ”[, $attributes = array()]]) Parameters: $line (string) – Language line key $for (string) – HTML “for” attribute (ID […]