Posts by Lucas Caresia • 2,663 points
185 posts
-
0
votes1
answer59
viewsQ: How to set Videojs size by percentage
I would like to define the size of Videojs as for example 40% equal if defined by CSS, and that when the browser size is changed, it adapts the new percentages. So far I have it <div…
-
0
votes0
answers14
viewsQ: libjass stops working after updating
I am using libjass, it works perfectly the first time I use, but after I update the first time it simply stops working(once in a while it works randomly), to make sure I put a code to not save…
javascriptasked Lucas Caresia 2,663 -
0
votes2
answers7773
viewsA: The mbstring Extension is Missing. Please check your PHP Configuration
I was able to solve the problem by running the command apt-get remove --purge php7.0-* and then apt-get install php7.0 php7.0-fpm php7.0-mbstring.
-
2
votes2
answers7773
viewsQ: The mbstring Extension is Missing. Please check your PHP Configuration
Even trying to install what’s missing sudo apt-get install phpmyadmin php-mbstring php-gettext, he says it’s already installed And I’ve also activated the extension extension=php_mbstring.dll, what…
-
0
votes0
answers61
viewsQ: Infinite scroll for mobile
I made a scroll infinite and worked perfectly, but when I went to test on a cell phone it just didn’t work, the method I used was this: win.scroll(function() { if($(document).height() - win.height()…
rollingasked Lucas Caresia 2,663 -
0
votes1
answer159
viewsQ: How to allow accessing only the main page by the url
Hello, for example, on /var/www/Site I have the folder paginas and the file index.php, would like when to access site.com the only folder the user had access to would be to Site which would call the…
apacheasked Lucas Caresia 2,663 -
0
votes1
answer19
viewsQ: Make it create scrollbar when two components collide
For example, I have two Ivs on the page, and they are set to width and height, but when they crash I would like me to instead of either go down or go up, just appear a scroll bar.
cssasked Lucas Caresia 2,663 -
1
votes1
answer38
viewsQ: How to make when you have talks at the same time one of them goes up in files . vtt
I’d like to know if there’s any way to get one line to the top when two lines are at the same time, but not to do it manually, but automatically.
-
0
votes1
answer227
viewsQ: How to do one function within another
Hello, I’m trying to make subtitles . ass run in a video, I managed to find this API, but need to run inside the click of a button, but when it reaches the line x.onreadystatechange = function() he…
-
1
votes2
answers79
viewsA: Require_once on ubunto does not work and returns no error
I managed to solve by putting the absolute path of everything.
phpanswered Lucas Caresia 2,663 -
2
votes2
answers79
viewsQ: Require_once on ubunto does not work and returns no error
Hello, I use the code below in windows and works perfectly, but when I use the ubuntu, the only error that returns is GET http://site.com/ 500 (Internal Server Error), already in windows works…
phpasked Lucas Caresia 2,663 -
2
votes3
answers361
viewsQ: How to define the opacity of an element from within a div larger than the div itself
As you can see, the opacity of button is larger than that of div, but still it’s in the same opacity, how could I change it ?? .div1 { width: 100px; height: 100px; background: #6a6a6a; opacity: 0.5;…
cssasked Lucas Caresia 2,663 -
1
votes1
answer222
viewsQ: How to make small animation with js
Hello, I would like to make a little responsive animation to show information. For example, I have this rectangle: <div id="mainDiv" > <div id="Rectangle" style="width: 200px; height:…
-
0
votes1
answer640
viewsQ: How to horizontally center a responsive div with multiple objects inside
I’d like to put as much as Rectangle possible within the mainDiv, and then centralize the mainDiv horizontally. For example, in this image we can see eight Rectangle within the mainDiv, however has…
cssasked Lucas Caresia 2,663 -
1
votes0
answers58
viewsQ: Force download with Header does not work in PHP
I use this code to force download, it works perfect when I run it on XAMPP, however it returns corrupted file when running on ubuntu, what can I do to fix? header('Content-Length: ' .…
-
2
votes1
answer3300
viewsQ: How to search any part of the string with mysql
Hello, I use this way to search in Mysql string%, but in a phrase "test a two three" if I use ste% it will not return the phrase, as I could search whether it contains within the sentence?…
mysqlasked Lucas Caresia 2,663 -
1
votes2
answers196
viewsQ: Field 'Hash' doesn’t have a default value
When I try to insert into a table this error appears Field 'Hash' doesn't have a default value mysqli_query($conn, "SET SQL_MODE = ''; INSERT INTO ".SQL_TABELA."(`Chave`, `Nome`, `Categoria`,…
-
0
votes2
answers78
viewsA: Does not connect to database and returns no error
Solved the problem, actually looking at the log found that mysql was poorly installed, just reinstalled and everything worked right.
mysqlanswered Lucas Caresia 2,663 -
0
votes2
answers78
viewsQ: Does not connect to database and returns no error
Hello, I made my site by xampp in windows, when I went to migrate to ubunto I realized that simply mysql did not work, and nor returned any error, for example, in the initial page of the site I…
mysqlasked Lucas Caresia 2,663 -
0
votes1
answer57
viewsQ: I cannot create zip in Debian
I can’t create a zip in Debian even with permission 777 folder, and the worst is that it returns no error. Code I use to create zip: function Compress($source_path, $chave) { // Normaliza o caminho…
-
1
votes1
answer83
viewsQ: Progress bar with Jquery counting negative
Hello, I use this code to increase the progress bar: $(function() { var bar = $('.bar'); var percent = $('.percent'); var status = $('#status'); var upload = $('form').ajaxForm( { beforeSend:…
-
0
votes1
answer74
viewsQ: How to upload by FTP instead of HTTP
I need to send files above 2GB, and I ended up reading that it is better to use FTP, searched a little and got this code: uploadFTP.php <?php set_time_limit(0); $server_ftp = 'xx.xx.xxx.xxx';…
-
0
votes2
answers1750
viewsQ: Force download with php file comes corrupted
Hello, the code even downloads, the problem is that it is corrupted, and I have no idea why it happens. The download is called so site.com/download/key .htaccess: RewriteEngine On RewriteBase /…
-
3
votes1
answer2467
viewsQ: How to compress files and directories in php
Hello, I need to compact files and folders together, for example, I have a folder called teste and it has several files and subfolders (with more subfolders inside), and I would like to compress all…
-
0
votes1
answer77
viewsQ: Amigavel URL does not allow accessing the index of the site
Hello, I have the following code on htaccess RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule (.*) index.php [QSA,L] However when I try to access…
-
1
votes1
answer85
viewsQ: How to pick variable with $_GET
Hello, in my htaccess is like this: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?url=$1 RewriteRule ^download/([A-Za-z0-9]+)$…
-
0
votes1
answer211
viewsQ: How to use Friendly Urls to create download link
Hello, I have the following database: ID | Chave | Nome | Tamanho =========================== 1 | q3T49 | Arq1 | 20 MB 2 | 56Q4u | Arq2 | 35 MB 3 | 7fa4b | Arq3 | 89 MB 4 | 13dqa | Arq4 | 49 MB And…
-
1
votes1
answer1603
viewsQ: How to make when the button is pressed it continues with different color
Hi, I’d like when you hit the button, it would change color and continue like this until another one is pressed. I tried with the :focus, but if press another element the color back. Buttons:…
-
1
votes1
answer1264
viewsQ: How to insert page . php inside an HTML element with JS
Hello, I’m calling a page .php with the method load, his problem is that when I give include into something that should stay this way include './dir/arquivo.php'; after the load loads the page…
-
1
votes1
answer150
viewsA: JS . load method does not work
The problem is that I didn’t call Jquery. I just added this line: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>…
-
-1
votes1
answer150
viewsQ: JS . load method does not work
Hi, I made this code to test, because it doesn’t work <script> $(document).ready(function(){ $("#button").click(function(){ $("#div").load('teste.php'); }); }); </script> <input…
-
0
votes2
answers135
viewsQ: How to add the size of all JS files
I have a input file that receives several files, however I only managed to get the size of the first one. I would like to know how to take the size of all and add in a variable; var sizeTotal =…
-
1
votes0
answers26
viewsQ: Upload file not following code
When I upload a file, first it makes the progress bar with JS, and then it moves the file that was uploaded to the folder. The problem is he ignores the echo 'começo' and the echo 'final', and I’d…
-
0
votes1
answer93
viewsQ: How to give include in js page to progress and return to php
Hello, I have a system to upload a file and then put the data in the database. <form enctype="multipart/form-data" method="post" class="formSendTorrent" id="formSendTorrent"…
-
0
votes1
answer203
viewsQ: Returns no error from an AJAX function
Returns a alert empty when I use this code (I picked it up on the internet): <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> <script…
-
0
votes1
answer212
viewsQ: How to make a search system with Friendly Urls
Hello, I would like to do a search system with friendly Urls, I researched a lot and tried a lot of things, not yet managed. I would like the url to be in this form site.com/home/categoria/pesquisa.…
-
2
votes2
answers564
viewsQ: How to put texts in Progress
Hello, I have a progress, but I would like to add the value of the percentage at the center of it, with some more information. <progress name="progressbar" id="progressbar" class="progressbar"…
-
0
votes1
answer1677
viewsQ: move_uploaded_file(): Unable to move
foreach ($_FILES["inputfileSendTorrent"]["error"] as $key => $error) { $arqName = $_FILES['inputfileSendTorrent']['name'][$i]; $arqTemp = $_FILES['inputfileSendTorrent']['tmp_name'][$i];…
-
-1
votes1
answer1197
viewsQ: mkdir does not create the directory
Even though I have permission, it does not create the directory and returns "not created". <?php $diretorio = 'C:/xampp/htdocs/LuckTor/arquivos/'; if (mkdir($diretorio . 'teste/', 777, true)) {…
-
1
votes0
answers37
viewsQ: .htacess does not work on the server
Hello, when I test on my pc, it works perfectly, but when I put it on the server it stops working. .htacess RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d…
-
0
votes0
answers67
viewsQ: Require is unable to retrieve the file
Hello, no require error happens: Warning: require(./funcs/FuncSQL.php): failed to open stream: No such file or directory in /opt/lampp/htdocs/Lucktor/pages/home.php on line 42 Fatal error:…
-
0
votes3
answers477
viewsQ: How to use Friendly Urls in GET method search
I’d like to make that link: meusite.com/?searchInput=Eu+fui+viajar&categorySearch=Filme&submitSearch.x=19&submitSearch.y=17 in meusite.com/category=Filme&search=Eu+fui+viajar…
-
0
votes1
answer138
viewsQ: POST method not working on the same page
While trying to upload a file it from error <form method="POST"> <input type="file" name="inputfileSendTorrent"> <input type="submit" name="submitSendTorrent"> </form>…
-
-1
votes1
answer120
viewsQ: How to use a PHP Function inside a JS Function
I have a PHP function (I read that it was recommended to make modifications to the PHP database and not JS) function insertTable() { $name = 'nome'; $categoria = 'categoria'; $download = 1000;…
-
-3
votes2
answers120
viewsQ: Error running mysql_query
When I execute the mysql_query it gives the following error(even if I manage to connect to the database without major problems) Warning: mysql_query(): Access denied for user ''@'localhost' (using…
-
1
votes1
answer194
viewsQ: Even by placing the <table> inside a <div> I cannot define margin
I put a table inside a file .html <!DOCTYPE html> <html> <link href="StyleMain.css" rel="stylesheet" type="text/css"/> <div id="tableDiv"> <table border="0"…
-
1
votes1
answer184
viewsQ: How to load multiple pages . html with ajax
I’m using this code to upload a page. html, however it does not create several as I would like, I have the feeling that it can only create it once. I would like to create several of them. for(var i…
-
-5
votes2
answers478
viewsQ: When we are a variable I passed from JS to PHP it adds up
I can pass the JS variable to PHP, but when I try to add it just goes away. <!DOCTYPE html> <html> <head> <script> var width = screen.width; var height = screen.height;…
-
2
votes2
answers52
viewsQ: When I create a Form deforms the Button
When I create a Form using JS to open at the click of a Button, the text the Button is warped. #openSendForm{ background: #0ebd64; position: absolute; width: 250px; height: 50px; right: 70px; top:…
-
2
votes1
answer63
viewsQ: How to make a GIF loop while the next scene loads
Hello, I searched some topics on the internet, but nothing did exactly what I wanted, and my little knowledge in Unity does not allow me to adapt the codes. I have a scene GUI that has a button…
unity3dasked Lucas Caresia 2,663