Well, PHP has something I sometimes find bad: Some functions throw Warning when some error occurs, and others return False or Null .
A case that exemplifies this is fopen .
fopen('non-exists.txt', 'r');
Generate...
I'm developing a class that is a collection of values.
In it I have several methods that filter the values contained in this collection. My intention is to return a new instance of this same class depending on the modification that a given metho...
In PHP 5.5, we have a new feature, which is to use list together with foreach .
$array = [
[1, 2],
[3, 4],
];
foreach ($array as list($a, $b)) {
echo "A: $a; B: $b\n";
}
Output is:
A: 1; B: 2
A: 3; B: 4
I unde...
I am making a form that sends the data by AJAX and then inserts, so far so good. Only the maximum value of INT in SQL is 2147483647, and the field I have has a maximum of 11 digits that can go up to 99999999999, what is the...
Hello, I would like to ask a question.
I am using the command:
php artisan make:repository ProjectNote
And I would like to know how to make the command understand that I want my migrate to have the name
create_table_project_notes
And t...
I am trying to show in the report the result of a INNER JOIN of 3 tables, I save the 3 values in a array and I make a foreach to go through all the records, but the following error appears:
Warning: Illegal string offse...
Today I work in a company that manages some sites with too big traffic, which is causing some server overload problems and so on. These sites are mostly news portals and are running Wordpress, these sites the more they grow in data volume the mo...
I'm trying to migrate the system to Santander's registered tickets. I was finally able to receive the 2017 manual today.
1 - When I try to access the link to generate a ticket, it says "403 Forbidden"
link
2 - Is it a SOAP request...
In my database are saved rows that are "read" by html, so they are saved with tags and those characters that do not know the name = >  , é etc ..
The problem is that in my application I will use this text to put i...
I make the following query from my apache server on a SQL SERVER database:
<?php
// Dados do banco
$dbhost = "192.168.0.100"; #Nome do host
$db = "DATABASE"; #Nome do banco de dados
$user = "root"; #N...