Invertir una fecha con php
$dias = array(‘Domingo’,’Lunes’,’Martes’,’Miercoles’,’Jueves’,’Viernes’,’Sabado’);
// $fecha = date(‘l’, strtotime(‘2016-06-09’));
$fecha = date(‘N’, strtotime(‘2016-06-09’));
echo $dias[$fecha];
// echo date(‘F j, Y’,strtotime($row[‘date’]));
echo «
«;
$fechados = ‘2016-06-09’;
$nuevaFecha = implode(‘-‘,array_reverse(explode(‘-‘,$fechados)));
echo $nuevaFecha;
echo «
«;
$anyo = substr($fechados,0,4);
$mes = substr($fechados,5,2);
$dia = substr($fechados,8,2);
$fechatres = $dia.»-«.$mes.»-«.$anyo;
echo $fechatres;
echo «
«;
$dia = substr($fechatres,0,2);
$mes = substr($fechatres,3,2);
$anyo = substr($fechatres,6,4);
$fechatres = $anyo.»-«.$mes.»-«.$dia;
echo $fechatres;
echo «
«;
$nuevaFecha = implode(‘-‘,array_reverse(explode(‘-‘,$fechatres)));
echo $nuevaFecha;
Reemplazar caracter con Smarty
COPIA
revisar
importar pediudos y clientes base de datos prestashop
mod_fcgid: read data timeout in 45 seconds
Agregar varios productos a la cesta de Prestashop
Api twitter
Testear el servidor POP usando telnet
telnet: > telnet pop.example.com pop3
telnet: Trying 192.0.2.2…
telnet: Connected to pop.example.com.
telnet: Escape character is ‘^]’.
server: +OK InterMail POP3 server ready.
client: USER MyUsername
server: +OK please send PASS command
client: PASS MyPassword
server: +OK MyUsername is welcome here
client: LIST
server: +OK 1 messages
server: 1 1801
server: .
client: RETR 1
server: +OK 1801 octets
server: Return-Path: sender@example.com
server: Received: from client.example.com ([192.0.2.1])
server: by mx1.example.com with ESMTP
server: id <20040120203404.CCCC18555.mx1.example.com@client.example.com>
server: for
server: From: sender@example.com
server: Subject: Test message
server: To: recipient@example.com
server: Message-Id: <20040120203404.CCCC18555.mx1.example.com@client.example.com>
server:
server: This is a test message.
server: .
client: DELE 1
server: +OK
client: quit
server: +OK MyUsername InterMail POP3 server signing off.
http://www.anta.net/misc/telnet-troubleshooting/pop.shtml
Mac-mini-de-Marcelo:~ kike$ telnet piruletarosa.com 110
Trying 164.132.97.193…
Connected to piruletarosa.com.
Escape character is ‘^]’.
+OK Dovecot ready. <650b.e.57bdb35c.OOzQ3a6wy4/vN2e9KI9oLw==@vps245569.ovh.net>
USER info@piruletarosa.com
+OK
PASS Mylq2&46
+OK Logged in.
LIST
+OK 2 messages:
1 5850
2 37923
.
RETR 1
+OK 5850 octets
Return-Path:
X-Original-To: info@piruletarosa.com
Delivered-To: info@piruletarosa.com
Received: from skf.com (unknown [114.227.14.129])
by vps245569.ovh.net (Postfix) with SMTP id 4B64022ADD
for
Received: from zhangchaode-PC[127.0.0.1] by ZHANGCHAODE-PC[127.0.0.1]
(SMTPD32); Sun, 14 Aug 2016 12:37:49 +0800
From: «jsczjeff5655@163.com»
Subject: Re:Re:SKF bearings and auto part 2016-08-14 12:37:49
9268E4AF-B84A-4FF5-9AC6-A40F35964F