This file contains 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
## Exemplo PHP com Code Igniter pra filtrar próximos aniversariantes do banco MySQL | |
// Publiquei originalmente em http://dicasdobolivar.blogspot.com/2016/05/pegar-proximos-aniversarios-em-php.html | |
// ANO ATUAL | |
$ano = date('Y'); | |
// FILTRO DE DATAS | |
$data_inicial = date('Y-m-d'); | |
$data_final = date('Y-m-d', strtotime("+7 days")); | |
This file contains 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
## Copia diretórios e arquivos de um local (Origem) para o outro (Destino) | |
## No caso do arquivo já existir, copia apenas se o arquivo foi modificado, criando um novo arquivo com a data da cópia no início | |
## Criado em 2018-07-20 por Bolívar Butzke | |
## dicasdobolivar.blogspot.com | |
$data_atual = ("{0:yyyy-MM-dd}" -f (Get-Date)) | |
$Source = "F:\testescript" | |
$Destination = "F:\bkp_testescript" | |
# Getting Files/Folders from Source |