Skip to content

Instantly share code, notes, and snippets.

View oritromax's full-sized avatar
💭
Working !

Oritro Ahmed oritromax

💭
Working !
View GitHub Profile
@oritromax
oritromax / download.php
Created January 28, 2013 23:39
A simple PHP file Downloader
<?php
// Main Script by: Armand Niculescu ( http://www.richnetapps.com/php-download-script-with-resume-option/)
// Re-Developed by Oritro Ahmed ( http://facebook.com/theoritro)
// This will Stop Showing Any Error MSG
@ini_set('error_reporting', E_ALL & ~ E_NOTICE);
//This will turn off Server Side Compression.
@apache_setenv('no-gzip', 1);
@ini_set('zlib.output_compression', 'Off');
@oritromax
oritromax / layout.html
Created January 6, 2013 14:04
A Wordpress theme Development Tutorial
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
<title>Oritro New theme!</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
body{
background-color:#dc8;
font-size:16px;
margin:0;
@oritromax
oritromax / index.html
Created November 12, 2012 09:24
HTML test
<html>
<head>
<title> Test </title>
</head>
<body>
<h1> test </h1>
@oritromax
oritromax / db.php
Created November 9, 2012 20:05
PHP Secure Form Project-Oritro Ahmed
<?php
// PHP Simple Secure Form Project- Oritro Ahmed
// 11 November, 2012
// Released Under Mozilla Public license (http://www.mozilla.org/MPL/2.0/)
// We are using some Constant to work easily everywhere
define('DB_HOST', 'localhost'); // Database host
define('DB_USER', 'root'); // Database User
define('DB_PASSWORD', ''); // Database User Password
define('DB_DATABASE', 'secureform'); // Database Name
@oritromax
oritromax / SmtpClass.php
Created September 29, 2012 22:07
PHP Mail Using SMTP
<?php
class SMTPClient
{
// A function for Setting up SMTP
function SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $from, $to, $subject, $body)
{
$this->SmtpServer = $SmtpServer;
$this->SmtpUser = base64_encode ($SmtpUser);
$this->SmtpPass = base64_encode ($SmtpPass);
@oritromax
oritromax / fetch.php
Created September 5, 2012 22:25
A simple Function to Fetch Webpage Title and Description And Excerpt
<?php
// The Use of fetcher.function.php - Oritro Ahmed
//[www.oritro.com]
//Filename: fetcher.php
//Usefull for Link Shortener, link generator, Backlink generator
// A part Of Tankz Easy PHP Use Scripts
$url = 'http://www.oritro.com/';
$content = file_get_contents($url);
@oritromax
oritromax / imageresize.function.php
Last active October 10, 2015 06:07
A Simple Image Resizer Function Using PHP
<?php
//Simple Image Resizing Script Using PHP- Oritro Ahmed
// [www.oritro.com]
// > Require GD library 2.x
// $image is the image file you want to resize
// $type is the type of image file, this function support image/jpeg, image/gif, image/png
// $dest is the Destination of the Generated image