Posts by Weliton Junior • 41 points
6 posts
-
0
votes2
answers37
viewsA: Use Regexiterator in directories to find folder or file
You can use the following code: <?php $find = 'min'; $directory = new RecursiveDirectoryIterator('C:\www\layout'); $flattened = new RecursiveIteratorIterator($directory); $files = new…
phpanswered Weliton Junior 41 -
1
votes2
answers37
viewsA: Use Regexiterator in directories to find folder or file
Some time ago I needed to do a search similar to yours, I used the code below to solve the problem: <?php function listarArquivos($diretorio, $nomeArquivo) { $encontrados = ""; $ponteiro =…
phpanswered Weliton Junior 41 -
0
votes1
answer64
viewsA: jQuery Datatables go to a page
Well, I solved it as follows. I added the datatables initComplete parameter and added the elements I wanted.. initComplete: function () { var criaDivElementos = "<div class=\"pull-left\">";…
jqueryanswered Weliton Junior 41 -
0
votes1
answer64
viewsQ: jQuery Datatables go to a page
I need to guess in my jQuery Datatable a function so that the user says he wants to go to page 9 and he is redirected. I used the following function: $('#btnIrAtePag').on('click', function () { var…
jqueryasked Weliton Junior 41 -
1
votes3
answers3112
viewsA: How to check if a file exists in several different folders?
I created this function to check recursively from a base directory, how often there is a file and what directory it is in.. Despite the weather, see if it helps! function listarArquivos($diretorio,…
phpanswered Weliton Junior 41 -
2
votes3
answers30995
viewsA: Insert date in Mysql via PHP
After receiving the date field of your form, you will have to reverse the date, below follows a suggestion: implode('-', array_reverse(explode('/', $data)))