Posts by Luizinho • 342 points
24 posts
-
0
votes1
answer936
viewsQ: Animations using React.js
Currently I have researched how to make animations with React.js, but from what I understand, people use css Transitions group, there is no way to make animations simpler using only javascript, as…
-
-1
votes1
answer75
viewsQ: Similar function to imagecreatefrom for . doc/docx and pdf in PHP
I have been looking for something similar to the imagecreatefrom function, for different documents of images, like doc and pdf, but it seems that there is something of the kind. Currently I upload…
-
0
votes0
answers46
viewsQ: Is only Password Hash enough to filter the input of a password field in a register?
Currently I do as follows: $senha = strip_tags(trim($_POST['Senha'])); $senha_segura = password_hash($senha, PASSWORD_DEFAULT); I would like to know if this is the best way to protect the password…
-
-1
votes1
answer55
viewsQ: Confirmation email with password_hash
When registering on the site, the user receives an email activation of the registration, until then all right. The problem is in checking the password_hash, I know you have password_verify, but in…
-
-1
votes1
answer54
viewsA: php - reduce image size
Take a look at this video: https://www.youtube.com/watch?v=GBMXmDBXK7M It talks about how to resize images, they get smaller when resized, you can make them as big as you want and you can also limit…
-
1
votes2
answers745
viewsA: How to upload an image using ajax and PHP?
Ajax $('.arquivo').change(function() { var fileName = $(this)[0].files[0].name; var formData = new FormData($('.photo_change')); $('#modal_photo_content form img').show(); $.ajax({…
-
2
votes1
answer866
viewsQ: Reduce the size of a video with PHP
I’m creating a website where the user can post images and videos. The user can put up a video with up to 10MB initially, but I wanted to reduce this, on my site, to 1MB or less (any reduction for me…
-
0
votes1
answer79
viewsQ: Validating registration with filter validate regexp
I’m using filter validate regexp this way: filter_input(INPUT_POST, 'nome', FILTER_VALIDATE_REGEXP, array("options" => array("regexp" => "/.[a-zA-ZÀ-ú\s]+$/")) The validation works, the…
-
0
votes1
answer1551
viewsA: Start an action with voice command equal to: "ok Google"
I managed to solve the problem: window.addEventListener('DOMContentLoaded', function() { var audio = ''; var gravando = false; if (window.SpeechRecognition || window.webkitSpeechRecognition) { var…
-
2
votes1
answer1551
viewsQ: Start an action with voice command equal to: "ok Google"
I’m trying to create a system, for my site, that starts actions with voice command, but without having to click anything, the only thing the user will have to do and there is no way to enable the…
-
4
votes1
answer229
viewsQ: Speech Recognition does not recognize special characters
I tried to use result.replace("arroba", "@") javascript to change the word "arroba" to "@" as it is in the code below, but it didn’t work. I want to do this with point, comma, underline, underline…
-
-1
votes1
answer57
viewsQ: Prevent one image from overwriting another in the input file
I have this code: $img = $_FILES['file']['name']; $diretorio = "imagens/"; $tmp = $_FILES['file']['tmp_name']; move_uploaded_file($tmp, $diretorio.$img); If I put, for example: ball.png and another…
-
1
votes1
answer4647
viewsA: Local server does not update css and javascript
I managed to solve the problem. The browser is storing cache and locking. Here are some interesting things: https://stackoverflow.com/questions/5690269/disabling-chrome-cache-for-website-development…
-
-4
votes2
answers1250
viewsQ: Pass PHP variable to "file" javascript
I can pass a variable PHP for javascript if it is on the same page, but the problem is that if I throw this code to a file JS it doesn’t work.
-
0
votes1
answer4647
viewsQ: Local server does not update css and javascript
Every time I enter my development environment I have to clear the browser cache for the css and the javascript file work or put "? 1" in front of the file that pulls css and js to force the server…
-
3
votes2
answers949
viewsQ: Only take a PHP variable from another page with Jquery
To get the content of a page I use the date, but I would like to know how to get only one variable on another page. I use this code: jQuery(document).ready(function(){ jQuery('.teste').submit(…
-
2
votes1
answer49
viewsQ: How to modify all PHP7 error messages?
I am finalizing my project and soon I will put the site in my hosting. I don’t want my user to see a "Warning" message or any other. Instead I want it to appear: "An error has occurred, Contact us.…
-
1
votes0
answers72
viewsQ: Show image thumbnail or website video as soon as you type site url
I have a posting system, but if I put for example: "/questions/ask" The system will interpret it that way and print it that way. I would like to know how to do before the user post, appear a preview…
-
0
votes2
answers164
viewsA: First visit message on the site
I got it done here. Thanks for the help, but now that I saw it was easier than I was thinking. I did so: In validating: if($nVisitas->visitas >= 1){ $contagem = $nVisitas->visitas + 1;…
-
0
votes2
answers164
viewsQ: First visit message on the site
I have a system that every time the customer logs in, counts one more visit, and on the first visit a welcome message appears. But if the user reloads the page again or changes tab and goes back to…
-
5
votes1
answer8090
viewsA: What’s the difference between Varchar and Varchar2?
SWEEP Currently (up to 11G version of Oracle Database), VARCHAR is nothing more than a synonym for VARCHAR2 (since the Oracle8), therefore the Oracle recommends not to use this type of data. There…
-
0
votes2
answers544
viewsQ: On-demand paging with PHP POST button and method using PDO
I looked at some sites and saw some things about it, but I’m not getting the logic behind the page on demand. jQuery(document).ready(function(){ jQuery('#btnpaginas').click(function(){ var dados =…
-
0
votes2
answers872
viewsQ: Deck of random cards
I am creating a site for people to play cards with php. I would like to know how to create a deck of 50 cards for each person. In the database I have a table with 300 different cards and of these…
-
0
votes1
answer367
views