Questions tagged as 'php5'

1
answer

Run unit tests with Phpunit in lumen

Hi, I have a project of lumen with the file phpunit that comes by default that is just like this one <?xml version="1.0" encoding="UTF-8"?> <phpunit backupGlobals="false" backupStaticAttributes="false" bootstra...
asked by 28.02.2018 / 14:01
1
answer

Retrieve variable from a URL

I pass the value as follows: <td><a href="liberar.php?id='.$row["id"].'">Finalizar</a> </td> And the URL arrives in this way: 000.000.00.00/bitacora/liberar.php?id=11 id = 11 is value that I want to recover...
asked by 16.02.2018 / 00:44
1
answer

How to redirect to another server in PHP

I am using a service in PHP as a Redsys payment gateway in which it connects, performs card payment and obtains a response code. This answer needs to be redirected to another external server with the order code to notify the response given by...
asked by 09.02.2018 / 09:02
1
answer

How to connect to a WEb Service Rest

Good morning. I have to connect to a Web Service Rest to validate CURP with php, I have the url, the username and password of the WS but I have not been able to find the way in which I must connect, I attach the form in which I must send the dat...
asked by 01.12.2017 / 18:04
1
answer

Use of Callback without anonymous function in php?

I'm looking for how to do a callback function that does not pass as an anonymous function callback but an already declared function. I understand that to call a callback I can do it this way private function create($callback) { //a...
asked by 19.10.2017 / 16:47
2
answers

How to avoid erasing the form data when sending them in a POST?

Hello I have a form and I want to keep the information I capture in the inputs because when sending the information it is deleted and you have to be constantly filling in the inputs and I want to keep the information <form action="" met...
asked by 03.01.2019 / 00:12
1
answer

INSERTING A SQL SERVER DATA BASE WITH PHP

Hi, I'm trying to make an insert to a sql server database with php. I execute the program and I get the message that it was inserted correctly but when I go to look in the database it does not insert anything and I can not find the error. This i...
asked by 11.12.2018 / 20:49
1
answer

How can I return all the users of a row and not just one?

How can I make it show all the usernames and the amount they carry? so far only the first user returns and the others do not ... <?php ini_set('display_errors', 1); error_reporting(E_ALL); $ayer = new DateTime(''.date('Y-m-d', strtotime(...
asked by 14.12.2018 / 03:09
1
answer

How to validate a 404 on a page with an if

I am using the following code for($pagina=50;$pagina<60;$pagina++){ $data = file_get_contents("http://www.pagina.net/?p=".$pagina); if ( preg_match('|<h2 class="titulo">(.*?)</h2>|is' , $data , $cap ) ) { echo '<br>...
asked by 03.12.2018 / 13:17
1
answer

Problems with sending a question form with the assembly of PHP

I am having problems with setting up a PHP for a form on a website, the problem is that I do not receive the data that I am putting into each input. I wanted to know if it is well armed or if I have to take into account something to be able to p...
asked by 29.11.2018 / 16:20