Posts by Leo Letto • 3,303 points
170 posts
-
1
votes0
answers34
viewsQ: Smooth CSS text
I know it is impossible to make the texts to be displayed in a uniform way in all browsers, but I have the problem below that is bothering me a little, although in the images it does not seem much,…
-
3
votes1
answer1846
viewsA: Mask url path on IIS server
Using htaccess is possible to do <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^mercedita/?$ /sites/mercedita/efetuarlogin.asp [NC,L] </IfModule> So when there is /mercedita…
-
0
votes1
answer30
viewsA: Insert value in javascript by taking php-mysql
If the / script query is done on the same page you can pass the php string to javascript as follows: var minhaVarJS = <?=$MinhaVarPHP?> Before moving to Javascript use json_encode() in your…
-
3
votes1
answer142
viewsA: How to increase connection time for download?
I recently had the same problem of downloading the files to stop at 120mb and only solved after changing these settings in Apache httpd.conf: AcceptFilter http none AcceptFilter https none…
-
0
votes1
answer171
views -
2
votes1
answer117
viewsQ: Take screenshot in the middle of ffmpeg / ffprobe video?
I would like the time that Thumb was generated to correspond to 50% of the time of the episode with ffmpeg I am using this code $ffmpeg -ss 00:00:18 -i $video -vf scale=800:-1 -vframes 1 $output How…
-
0
votes2
answers895
viewsA: PHP PDO Notify user which registration name already exists
include_once 'database.php'; // Verifica se o formulário foi submetido if($_SERVER['REQUEST_METHOD'] == 'POST'){ /* Armazena os dados enviados pelo formulário em uma * variável…
-
3
votes1
answer160
viewsQ: Creation of dynamic Thumbs
How do websites like Youtube, Netflix and many other sites do this function? Are Thumbs created at the time of Mousemove / mouseenter in the Ogress bar, or have they been created before and the…
-
3
votes1
answer144
viewsA: Passing data from a form on a page to another page for textbox
Assuming the button is linked to the line that will be edited and with an ID related to it can be used jQuery('.meuBotao').click(function(){ var id = $(this).attr("id"); location.href =…
-
2
votes1
answer76
viewsQ: How to simulate this PHP function in jQuery?
The function below made in PHP will return me an array where the searched word fits, as I can do the same though with jQuery? $meuArrayMultidimensional = array(array("campo" => "teste"),…
-
1
votes2
answers341
viewsQ: Stop an ajax request and create a new one
In a search input, an ajax request is made at each letter pressed through a Keypress in the field, but at each key pressed a new request is made, ie if the user type fast, and he type a value of 10…
-
4
votes5
answers3614
viewsQ: Split array into smaller groups
I have an array in this format: meuArray = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ...]; I would like to turn it into a multidimensional array with javascript/jquery leaving it so:…
-
3
votes2
answers6203
viewsQ: Use array_search in a php multidimensional array
In a list of books within a array multidimensional, each sub_array has a column category different, I would like to search in this array by a category for example: Array "livros" ( [Livro 1] =>…
-
1
votes1
answer531
viewsQ: Restrict access by htaccess
I have a dedicated server separate from the hosting of my site, some content like image, videos, texts and etc will be pulled from this dedicated, the problem is that I would like to restrict access…
-
3
votes2
answers819
viewsQ: Show animation during loading?
I didn’t find much on that subject in tutorials, I don’t know if anyone else has noticed that services like Facebook, Netflix use a kind of "load" before showing the content, both seem to work the…
-
4
votes2
answers833
viewsQ: Change the quality of online video?
How do websites such as Youtube and Facebook offer different qualities for uploaded videos? Is there any specific tool/code to change the quality of the videos, or do they encode and save the video…
-
4
votes1
answer100
views -
0
votes4
answers1661
viewsA: Redeem name and show in option through id
Do a search in the Database by selecting all fields with the id or only the fields you need; "SELECT * FROM sua_tabela WHERE id = 'id'" And in the input you put the data you want.…
-
2
votes0
answers168
views -
0
votes1
answer154
viewsQ: Rewrite module times error 500
I’m doing a project, and I recently learned about the rewriting of URL's, I did as I saw in the tutorials but sometimes when I try to access the address the browser returns erro 500, would that some…