Questions tagged as 'php'

1
answer

user location by IP [duplicate]

I would like to know a php library that would help me with the location of the user's IP access, well I found one on the internet and it worked well (did not exactly show the location) only 50 km of difference but at least know the city of acc...
asked by 12.01.2017 / 01:44
2
answers

mysqli_real_escape_string Prevents SQL Injection?

According to the documentation, the function: Exits special characters in a string for use in a SQL statement, taking into account the current character set of the connection. Then: Is there a possibility of SQL Injection even when us...
asked by 17.11.2017 / 13:54
1
answer

How to increase performance in PHP?

If I increase the memory_limit (default: 256MB) in PHP settings, will my application run faster or will I lose performance by consuming more server CPU processing?     
asked by 30.11.2017 / 15:45
1
answer

Get getopt ignore first argument

I'm creating a PHP CLI, and wanted to run something like this php console.php comando -a foo -b bar -d But with the function getopt I can not pass comando if not the buga function and I do not receive any of the other argume...
asked by 30.08.2017 / 22:12
2
answers

Multi-Downloads with PHP and mPDF

I'm trying to perform a function in PHP that performs multiple PDF file downloads within a repeat loop. The problem is that you only download the file independently of the size of the array. Follow the code below: $testes = array('teste','t...
asked by 31.08.2017 / 20:57
1
answer

Access object within object (SdtClass - Codeigniter)

Hello! Through ajax data: { 'objeto': JSON.stringify(_obj_devedor) } ; I am sending the following objeto to the server. And in the codeigniter, I'm converting as follows: $objeto = $_POST['objeto']; $objeto_decode = json_dec...
asked by 08.09.2017 / 14:32
2
answers

Group table data with INNER JOIN

I want to create polls on my site plus I have a problem to relate two tables. The questions are being repeated. Table pergunta    Question_id = 1: What do you think of Samsung s8?       Question_id = 2: What do you think of the iPh...
asked by 08.09.2017 / 15:17
1
answer

Laravel and Front-End

Well, I wanted the opinion of some dev's who have been through the same dilemma I'm going through now, I do not know if this is the right channel to ask that question. I have to build an application, I want to do it in Laravel, for the backEnd...
asked by 02.01.2018 / 17:17
1
answer

Controller needs to be a class?

The controllers within an MVC need to be classes? Because of what I'm seeing here, their only function is to get the information that the view is asking for, to play the model and to solve the problem, and when it's solved, it takes the soluti...
asked by 19.12.2017 / 21:01
1
answer

Multiple function in one file

I have a project in php and within this project, I have a folder named Funções . Inside this folder I have several function files. I have a file named Logado.php , where I authenticate the user and call the pages to be load...
asked by 28.07.2016 / 00:11