This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Path at-which you want to store your images in | |
$path = '/home/mazentheamazin/public_html/'; | |
// The URI path at which images will be accessed (change as necessary). | |
$uri = 'http://' . $_SERVER['HTTP_HOST'] . '/'; | |
if ($_FILES["file"]["error"] == UPLOAD_ERR_OK) { | |
$tmp_name = $_FILES["file"]["tmp_name"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import org.apache.commons.collections.MapIterator; | |
import org.apache.commons.collections.map.LRUMap; | |
public class CacheMap<K, V> { | |
private long timeToLive; | |
private LRUMap cacheMap; | |
public CacheMap(long timeToLive, final long timerInterval, int maxItems) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.germancoding.email; | |
/** | |
* Copyright (c) 2014 Xiaomao Chen @ IvyBits | |
* All rights reserved. | |
* | |
*(Modified version by GermanCoding) | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* 1. Redistributions of source code must retain the above copyright |
NewerOlder