Questions tagged as 'php'

1
answer

Create xls file and save to a folder

I have my file gerar_xls.php and you are creating a file .xls and I want to save it in a folder. What you are doing now is the file download. I have the following: header("Content-type: application/vnd.ms-excel"); header("Content...
asked by 24.09.2014 / 17:20
1
answer

How to work safely on an API + Android?

I need to develop an API that will receive the data of a user in json via $ _GET with PHP, which will do the verification of the data and return a true or false value for the Android application. I am currently using AES encryption to send js...
asked by 17.10.2014 / 19:09
2
answers

PHP and MySqli. Problem connecting to table

I'm following a toturial, everything looks the same. My problem is that I can not connect to the table. connect.php: <?php $db = new mysqli('127.0.0.1', 'user', 'pass', 'app'); if ($db -> connect_errno) { die ('Sorry...
asked by 23.06.2014 / 14:05
1
answer

How to create country redirects?

How can I do to create country redirects? I mean, let's suppose I get a visitor to Mexico , so I would have to redirect to meusite.com/mx/ , since if I get a visit from Brazil go to meusite.com/br/ or even if you receive a Po...
asked by 29.06.2014 / 21:37
1
answer

Password - Binary Modular Crypt Format

I find myself at this point reducing the size of a database and several techniques are used. However I have a question about the decision to make at one point and I would like someone to help me. In the model in question and in the user table...
asked by 16.09.2014 / 15:41
3
answers

Test equality of values (date) in PHP

Hello, I need to test if two dates are the same in PHP (current date vs. last day of the month), both are strings, but I'm not getting the result using the following code: if(strcmp($ultimo, $hoje) == 0) echo "<br><br>As duas...
asked by 31.07.2014 / 23:00
2
answers

PHP Settings Required for Local Server

I'm starting development in PHP, and I've started to have some incompatibilities in my code. I say in case something works locally and when I upload it to the server, something goes wrong. On the server, the PHP version is: PHP Version 5.2....
asked by 17.08.2014 / 21:50
1
answer

Get variable on another page

After searching the data in mysql with php and displaying them on the page, I would like to know how to get the same results from this page where it is displayed and display them on another page. <?php //Cria a variavel telefone enviada...
asked by 05.03.2015 / 04:25
2
answers

Function not recognized

Hello, I have the following code:    Old code: public function historicoAction() { $entity = new Intervencao(); $em = $this->getDoctrine()->getManager(); $entities = $em->getRepository('RoqSysControlManutencaoBun...
asked by 25.02.2015 / 12:11
1
answer

Authentication and external redirect for wordpress sites

I am creating a simple login system that redirects a client to your area. It will contain links to your projects, that is, by clicking, it will be redirected to your site. EXAMPLE: I have a folder named sites_clients in this hierarchy:...
asked by 03.03.2015 / 15:21