Skip to content

SmartTechHub

  • Home
  • News
  • Privacy Policy

Programming

Posted in
  • Programming

PHP Script to List Enabled Extensions

Create a php script with following content “; foreach (get_loaded_extensions() as $extn) { echo $extn . … PHP Script to List Enabled ExtensionsRead more

by TechHubWriter•September 30, 2024•0
Posted in
  • Programming

Ruby On Rails

To create a ruby on rails project, run rails new

by TechHubWriter•September 30, 2024•0
Posted in
  • Programming

pm2 process manager for node.js

Auto Start pm2 on bootHow to host static site using pm2 pm2 is a process manager … pm2 process manager for node.jsRead more

by TechHubWriter•September 30, 2024•0
Posted in
  • Programming

nodemon

Node.js applications when you run with nodejs command, need to restart when a change is made … nodemonRead more

by TechHubWriter•September 30, 2024•0
Posted in
  • Programming

Laravel Database Migration Error Key too long

When doing a database migration on Laravel, I get the following error This is because MariaDB … Laravel Database Migration Error Key too longRead more

by TechHubWriter•September 30, 2024•0
Posted in
  • Programming

PHP running system commands with exec

To execure a system command on a server, use PHP exec function. For example &1″, $result); … PHP running system commands with execRead more

by TechHubWriter•September 30, 2024•0
Posted in
  • Programming

Installing golang on Ubuntu 18.04

To install golang on Ubuntu 18.04, run apt install golang -y

by TechHubWriter•September 30, 2024•0
Posted in
  • Programming

GoLang Hello World

Create a file 1.go with following content package main import “fmt” func main() { fmt.Println(“My First … GoLang Hello WorldRead more

by TechHubWriter•September 30, 2024•0
Posted in
  • Programming

Gem – Package Manager for Ruby

gem is package manager for Ruby. To get list of all install packages, run gem list … Gem – Package Manager for RubyRead more

by TechHubWriter•September 30, 2024•0
Posted in
  • Programming

HTTP 301 Redirect using PHP

You can use the PHP header() function to do redirect. To do 301 redirect, use For … HTTP 301 Redirect using PHPRead more

by TechHubWriter•September 30, 2024•0

Posts pagination

Previous 1 2 3 4 Next

Smart Tech Hub

SmartTechHub is a dedicated tech blog that brings practical Linux tutorials, hands-on guides, and insightful tips right to your screen.

Useful Links

  • Home
  • News
  • Privacy Policy
Copyright © 2026 SmartTechHub.
Powered by WordPress and HybridMag.
  • Home
  • News
  • Privacy Policy