Questions tagged as 'php'

2
answers

PHP Logout with CodeIgniter

I'm having a problem logging out my system until it is logging out correctly and destroying the sessions, but if the user clicks the back button of the browser it returns to the previous page of the system where all data is displayed again . The...
asked by 03.02.2016 / 12:35
1
answer

Meaning of the operator? [duplicate]

What is the function of by a !! in an if for example? I know that ! by itself reverses the value of a boolean result, but I tested !! and nothing changed in the result, eg: $teste = true; if(!!$teste) { echo "é verdad...
asked by 19.01.2016 / 12:19
1
answer

How to make a payment system via ticket?

I am developing an online store and I have several doubts, but the main one is:    How to make a payment system via ticket? It's nothing more than a system that generates a valid ticket, such as the eBay system. Does anyone know how to...
asked by 20.01.2016 / 19:28
2
answers

Erase everything but the smallest per day

I have a space problem and there are a lot of useless things being stored, but they are useful during the same day (you will understand). Actual problem: There are more than 2 million "lines" and this is taking up more than 1.1GB, I am u...
asked by 26.01.2016 / 15:48
2
answers

PHP Security Failure

I noticed an unusual activity on my site (e-commerce opencart 2.0.2.0) This is the command you used link I do not know exactly what it looks like exploiting a php fault and inserting a backdoor I have the code that was injected or not...
asked by 03.02.2016 / 23:54
2
answers

Weird redirect

Even without .htaccess and without the apache rewriter module active if I call mydomain.com / page it will search first page.html if it does not find it it will go to page.php. How do I disable this "redirect" because it is giving trouble in...
asked by 04.03.2014 / 01:10
1
answer

JSON returning html

I'm returning a JSON from a server using PHP with the simple code: <?php $response = array(); $response["success"] = 1; echo json_encode($response); I'm getting the answer through an android app, however with the following error:    E...
asked by 26.02.2014 / 22:24
4
answers

Check if a file exists on the remote machine via FTP in PHP

How can I check if a file exists on the remote machine using PHP through the functions of FTP in order to act accordingly? <?php $ficheiro = 'public_html/banana.xml'; $id_ligacao = ftp_connect($servidor_ftp); $login = ftp_login($id_li...
asked by 04.03.2014 / 22:17
1
answer

Check which field already exists in the table

I am making a query in Laravel to see if the user with the email, CPF or username entered already exists in the database. # Verificar se Usuário Já Existe na Base de Dados $verUser = User::whereEmail($email) ->...
asked by 18.03.2016 / 13:21
1
answer

How to avoid misuse of a REST API?

I'm developing an application that is made up of three parts: Backend (BD + API), developed with Symfony 2 + Doctrine 2 iOS Client Android client Most client requests to the API must be authenticated through a token that is obtained t...
asked by 06.01.2015 / 12:05