Posts by Jefferson Costa • 335 points
5 posts
-
3
votes1
answer48
viewsA: Redirecting of Urls
Through . htaccess you can redirect Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^DOMINIOANTIGO\.com$ [NC] RewriteRule ^(.*)$ http://NOVODOMINIO.com [R=301,L]…
-
3
votes2
answers130
viewsA: Check if the date is within the PHP limit
What you should do is add 90 days to the current date, not $_POST /* VERIFICACAO DE DATA */ $data_inicio = date("Y-m-d"); $data_post = date('Y-m-d', strtotime($_POST['data_post'])); $data_fim =…
phpanswered Jefferson Costa 335 -
1
votes4
answers1114
viewsA: How to create multiple folders with mkdir
It may be because of the intercalation of texts with variables, try the code below: <?php $nome_user = "Joaquim Sauro"; $tipo = "FGTS"; $categoria = "Abertura"; $pdf = "pdf.pdf"; $pathName =…
phpanswered Jefferson Costa 335 -
1
votes2
answers1198
viewsA: Run query sql
Now just use a repeat loop (while) to work with the results: $result = mssql_query($sql); while ($results = mssql_fetch_array($result)) { $nome = $results['nome']; $endereco = $results['endereco'];…
-
10
votes4
answers2392
viewsQ: NPM, Bower and Composer, which one to use?
Can someone explain to me the difference between NPM, Bower and Composer. They are all package managers, correct? But when each must be used?