Posts by Rafael Mena Barreto • 810 points
15 posts
-
0
votes1
answer137
viewsA: Local notification Ionic v1
The first error refers to the plugin not being installed. The second error, the installation (ie it is the first error) is referring to the plugin local-Notifications not working on Cordova-android…
-
0
votes1
answer241
viewsA: PHP concatenation with Dompdf
You must protect variables with quotes using keys: $html .="<td>{$_POST['interrupcao'][$i]}</td>"; $html .="<td>{$_POST['inicioint'][$i]}</td>"; $html…
phpanswered Rafael Mena Barreto 810 -
8
votes1
answer510
viewsA: How to run a callback at the end of a $http file, whether it works or not?
There is, the finally is executed regardless of the success/failure of the request this way is not necessary to repeat code: $http.get('/users/list').then(function (response) { // código para…
-
1
votes1
answer65
viewsA: Call Artisan commands directly from the code
The version of Laravel was missing but at least in 5.1 you can use the Facade of Artisan use Illuminate\Support\Facades\Artisan; and within the function: Artisan::call('down'); In the example I gave…
-
2
votes3
answers2141
viewsA: Pycharm with underlined code
File->Settings->Inspections Spelling, uncheck Typo option.
pycharmanswered Rafael Mena Barreto 810 -
3
votes3
answers1281
viewsA: How can I restrict downloading files through PHP authentication?
The logic behind this restriction consists in these steps: Remove items from public directory Create a path that receives the file as a parameter On the authenticated route we open the file and…
-
2
votes2
answers229
viewsA: Creation of Masks with javascript
The problem occurs due to failure in the loading order of the scripts. Make the following change: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>…
-
4
votes1
answer515
viewsA: PHP Mailer sends email 2 times
Assuming php code is in the same form file: This error occurs because there is no verification whether the form was posted or not (whether the user clicked on Ubmit or not). That way every time the…
phpanswered Rafael Mena Barreto 810 -
1
votes2
answers5536
viewsA: How to break page using mPDF
In the library mpdf the method to create a new page is addPage. This method can be used every time you want to create a page in a forced way, that is, when you want the new page to start…
-
1
votes2
answers192
viewsA: Login PHP and Mysql generating mysqli_fetch_array() error
You need to pass $query to mysqli_fetch_array instead of going to $user.
-
10
votes2
answers4670
viewsA: Posting system - "Duplicate entry '0' for key 'PRIMARY"
Your problem is probably in the table configuration. The ID field has to be the primary key and auto increment. The way it was done (without auto increment) php informs null mysql that saves the…
-
0
votes2
answers37
viewsA: Doctrine DBAL dev version
By error message, failed to fill in the Description field which is a small text about your software. It is mandatory if the package is redistributed. And in addition to this error there is a notice…
-
2
votes2
answers823
viewsA: Selecting a checkbox and not sorting the dataTables
Datatables itself has solution for this, using column definitions. I do like this: "aoColumnDefs": [ { "bSearchable": false, "aTargets": [ 7 ] }, This has to be done in the javascript that calls the…
jqueryanswered Rafael Mena Barreto 810 -
2
votes5
answers1314
viewsA: PHP connection problem with Mysql
The first error was explained by Matthew, there should be no single quotes in your mysql_connect. After many attempts of connection with error your host has been locked, you have to unlock it with…
-
23
votes3
answers1787
viewsA: What does the code below (written by a Cracker) do?
The Filesman is a backdoor or shell as they call it. The goal of these is to leave the "back door" always open for when the hacker needs this system. If you have not yet removed this file from your…