The Microsoft Hotmail Mail service now offers standard POP3/SMTP access.
- SMTP - smtp.live.com (TLS enabled, port 25)
- POP3 - pop3.live.com (SSL enabled, port 995)
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
<?php | |
/** | |
* System messages and redirect proxy | |
* | |
* @package Cotonti | |
* @version 0.9.0 | |
* @author Cotonti Team | |
* @copyright Copyright (c) Cotonti Team 2008-2012 | |
* @license BSD |
<?php | |
$filename = 'header.php'; // File name | |
$search[] = 'mail('; $replace[] = 'mb_send_mail('; | |
$search[] = 'strlen('; $replace[] = 'mb_strlen('; | |
$search[] = 'strpos('; $replace[] = 'mb_strpos('; | |
$search[] = 'strrpos('; $replace[] = 'mb_strrpos('; | |
$search[] = 'substr('; $replace[] = 'mb_substr('; | |
$search[] = 'strtolower('; $replace[] = 'mb_strtolower('; | |
$search[] = 'strtoupper('; $replace[] = 'mb_strtoupper('; |
<?php | |
$a = array('a1'=>'1','a2'=>2); | |
// changes all array keys to keys with prefix | |
$prefix = 'page_'; | |
$a = array_combine(explode(',', $prefix.implode(','.$prefix, array_keys($a))), array_values($a)); | |
print_r($a); | |
/* |
<?php | |
/* The following code snippet with set the maximum execution time | |
* of your script to 300 seconds (5 minutes) | |
* Note: set_time_limit() does not work with safe_mode enabled | |
*/ | |
$safeMode = ( @ini_get("safe_mode") == 'On' || @ini_get("safe_mode") === 1 ) ? TRUE : FALSE; | |
if ( $safeMode === FALSE ) { | |
set_time_limit(300); // Sets maximum execution time to 5 minutes (300 seconds) |
<?php | |
function rome($N){ | |
$c='IVXLCDM'; | |
for($a=5,$b=$s='';$N;$b++,$a^=7) | |
for($o=$N%$a,$N=$N/$a^0;$o--;$s=$c[$o>2?$b+$N-($N&=-2)+$o=1:$b].$s); | |
return $s; | |
} | |
?> |
<?php | |
/* | |
Convert an arbitrarily large number from any base to any base. | |
string convBase(string $numberInput, string $fromBaseInput, string $toBaseInput) | |
$numberInput number to convert as a string | |
$fromBaseInput base of the number to convert as a string | |
$toBaseInput base the number should be converted to as a string | |
examples for $fromBaseInput and $toBaseInput |
A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).
В данной инструкции кратко расскажу о настройке программного окружения для простой и удобной разработки под CMF Cotonti (для ОС Windows).
Конкретно этот материал будет на примере программ NetBeans + OpenServer (WAMP).
Основной упор сделан на краткость и начинающий уровень пользователя. Задача настроить сервер, установить сайт, и отлаживать его в IDE с помощью удобного отладчика.