Posts by Mayron Ceccon • 358 points
13 posts
-
0
votes5
answers325
viewsA: Php View Columns
Use the strlen. if (strlen($palavra) > 8) { //aqui exibi }
-
2
votes1
answer241
viewsA: PHP - know offset error
It would be like this, it would show in the logs and on the screen would not display: ini_set('display_errors',0); ini_set('display_startup_erros',0); error_reporting(E_ALL); if you replace 0(zero)…
phpanswered Mayron Ceccon 358 -
1
votes1
answer277
viewsA: Backup Incremental Postgresql PITR
Answer by: Franklin Anderson de Oliveira Souza at Postgresql Brasil You can perform basebackup using the pg_basebackup tool, once successfully it marks the last Wal with the .backup. This means that…
-
0
votes1
answer277
viewsQ: Backup Incremental Postgresql PITR
I have an incremental backup routine running daily saving the logs from Postgresql. Every morning the full backup is performed: pg_start_backup() tar -cvzf /usr/local/pgsql/pgDataPITR/pgdatabk.tar…
-
0
votes2
answers389
viewsQ: Simulate APP (Android) data search in PHP/Python
I would like tips and paths on how to simulate the search for data from an APP (Android) in PHP or Python. I found interesting this example https://github.com/victor-torres/sinesp-client, where the…
-
1
votes3
answers476
viewsA: Grouping data from a PHP Array
Something like that? $dados[] = array('CODIGO' => 231, 'NOME' => 'Mary'); $dados[] = array('CODIGO' => 188, 'NOME' => 'Bernardino'); $dados[] = array('CODIGO' => 188, 'NOME' =>…
-
1
votes1
answer376
viewsA: Check initial and final date and insert text between them!
There is the http://fullcalendar.io/, where does it automatic. The code below will help you. Make a range of dates using their initial date and their final date: function dateRange($first, $last,…
-
6
votes2
answers577
viewsA: How does Alert show when marking checkbox in a table?
Do something like that: In HTML: <input name="muda" type="checkbox" onchange="mudar(this);"> In Javascript: function mudar(obj){ var selecionado = obj.checked; if (selecionado) { alert('Tem…
-
0
votes0
answers166
viewsQ: Problem loading CSS file Sass
I am facing a problem where when generating the CSS file, where this is generated by a task done through Gulp. When interpreting Sass and generating CSS, the file on the site only changes if I…
-
4
votes2
answers386
viewsA: Assign numbers to PHP phrases
Try this way $array = array( 'Frase 1', 'Frase 2', 'Frase 3' ); $aleatorio = rand(0, count($array) -1); echo $array[$aleatorio];
-
3
votes2
answers1047
viewsQ: Validation Numeric(12,2) Postgres
I have the following question, I have a field in the Postgresql database of type Numeric(12,2) when sending a value of a form I could not find a way to validate the value in PHP to insert this value…
-
2
votes1
answer329
viewsA: Find in Bank Mongoose by Nodejs
In place of {address:{cep: req.body.cep}} Tends this way : {address.cep : req.body.cep}
-
1
votes3
answers3015
viewsA: Script to query external IP
I solved it this way function getIP() { if($_SERVER["HTTP_X_FORWARDED_FOR"]) { $proxy = ''; if($_SERVER["HTTP_CLIENT_IP"]) { $proxy = $_SERVER["HTTP_CLIENT_IP"]; } else { $proxy =…