Skip to content

Instantly share code, notes, and snippets.

View pranid's full-sized avatar
🎖️
Exploring

Praneeth Nidarshan pranid

🎖️
Exploring
View GitHub Profile
@pranid
pranid / smtpMail.php
Last active November 23, 2022 07:02
Send email using gmail smtp - Codeigniter
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class SMTPMail extends CI_Controller {
/**
* @author Praneeth Nidarshan
* @see [email protected]:8d54499e903d35155af6.git
*/
public function index()
{
@pranid
pranid / compare-images.php
Last active January 24, 2023 07:01 — forked from akosnikhazy/compare-images-class
Compare two images with PHP
<?php
class compareImages
{
private function mimeType($i)
{
/*returns array with mime type and if its jpg or png. Returns false if it isn't jpg or png*/
$mime = getimagesize($i);
$return = array($mime[0],$mime[1]);
switch ($mime['mime'])