Learned or Solved Something Today?

Dump it here! Let others learn from you

Write a php hack
Showing 11 of 11 from page 1

metabox posted in #php #oop #codingchallenge #interviewquestion #interview

OOP Exercise - Implementing Missing Code in Chicken Egg Bird Class Interface Problem Using PHP

This a classic OOP Object Oriented Programming problem for interview and coding challenge where you will be given a bird interface to implement and egg class to be completed Here s how I solved it usi

ashikp posted in #php #wordpress #nginx #apache #tutorial

How to fix the TOO_MANY_REDIRECTS error in WordPress

Today I will share a problem I solved As WordPress developer like us always face a problem The Problem is called Too Many Redirect or ERR TOO MANY Why this problem come Before that let s learn why thi

anonymous posted in #php #snippets #wordpress #woocommerce #plugins

Simple Function To Add / Create Custom Order Status For Your Wordpress WooCommerce Store

Order status offered by woocommerce were not enough for my project I wanted to create some new custom statuses for my shop Here s a simple and easy code snippet that I ve used to introduce new order s

akibal posted in #php #snippets

Email send with Attachment in PHP

From some of line code we can easily send file text email from us to other Files like pdf txt etc Provide receiver email address in to variable Provide your name and email address in from variable Pro

akibal posted in #php #snippets

Image and HTML Mail sent in PHP

From some of line code we can easily send simple text email online image and HTML email from us to other Provide receiver email address in to variable Provide your name and email address in from varia

akibal posted in #php #snippets

Simple text Mail send in PHP

From some of line code we can easily send simple text email from us to others Provide receiver email address in to variable Provide your name and email address in from variable Output This is Subject

ashikp posted in #php #snippets #wordpress

Disable development mode in Wordpress Jetpack Plugin

Intro I am working with WordPress from long time There are lots of thing it s hard to find Today I solve a problem In most of WordPress site we use jetpack by WordPress com It s a good plugin but some

akibal posted in #php #hash #encryption #snippets

How to generate MD5 hash for your password in PHP

Today I ve shared how I have generated MD5 hash with Salt in php to secure passwords Salt As most common MD5 hashes can easily be found in Rainbow table it s better to make your original text hard to

akibal posted in #php #encryption #decryption #snippets

Asymmetric Encryption in PHP

Data encryption and decryption using public and private key by openssl Firstly need to install openssl in your device For check openssl go to Terminal or PowerShell and type openssl If you have openss

pronab posted in #php #tutorial #mysql #beginners

Easy way to solve PHP Fatal error: Class 'mysqli' not found

Recently I was doing PHP a project and got some issuse in connecting the MySQL database connection. It was giving my fatal error saying mysqli not found. My current System Info Ubuntu 20.04 PHP 7.4.7

ikrum posted in #php #wordpress #woocommerce #snippets

Hide woocomerce product price, quantity, add to cart button for guest (not logged in) users | Wordpress Hacks

This is very simple gist to disable or hide product prices for guest users. Only logged in user can see product prices, quantity and add to cart button. Only registered & logged in user can add to cart and make order I've encountered a situation whe

fb