Questions tagged as 'php'

1
answer

How to communicate with the WebSockets service

I have taken the example of Chat in Socketo.me. I have the chat-server.php : <?php use Ratchet\Server\IoServer; use Ratchet\Http\HttpServer; use Ratchet\WebSocket\WsServer; use MyApp\Chat; require dirname(__DIR__) . '/vendor/autoload....
asked by 11.04.2017 / 23:20
1
answer

Obtain PROMPT values with AJAX

Good evening. How can I get the values that have been entered through a JS prompt to use that data in a database? I understand that it is with AJAX, and I have developed this code, but it does not take any action on the code. <!-- Cam...
asked by 24.05.2017 / 23:20
2
answers

How to run a PHP with Ionic 2

By making the request of my-php.php by GET of Http I literally retorted the code of the php file in a text string , what I need is that the file php be executed and I return the result of the query to the database in Json f...
asked by 25.05.2017 / 01:21
1
answer

DataTables warning: table id = T_Pd - Invalid JSON response

I have the JSON invalid response problem but the answer is correct. My problem is that I want to bring data to a JQuery DataTable, by means of an AJAX query sending 3 parameters. the part that fails is when it brings the answer in JSON format...
asked by 05.06.2017 / 22:36
1
answer

Rare characters when decoding chain in Base64

Good, I've been trying for several days to pass a chain in base64 to something worthy, I explain that I've tried to see what solution I can give you. First of all I use PHP, the string is encoded in C # with Convert.Tobase64String()...
asked by 02.06.2017 / 23:25
0
answers

First PHP associative array key does not work

In PHP, the problem I have is that when I go through an associative array like this, it shows me all the fields correctly, foreach ($documentos as $doc) { foreach ($doc as $key => $value) { echo $key .' --> '. $value . '<...
asked by 05.03.2018 / 10:04
2
answers

Laravel 5 WithInput error

I am trying to have an error in the login form return me to the record view keeping the data in the form. with a return back () -> withInput and it makes the return correctly but it does not show me my data here is the code: RegistryController:...
asked by 05.03.2018 / 12:34
0
answers

I do not see the accents in a printf in php when running it from cmd Windows on the command line

When executing the following file from a Windows cmd, the accented characters are not displayed correctly. The test.php file is recorded as UTF-8. file test.php: <?php printf ("áéíóúÑñ"); ?>    C: \ Appserv \ php \ php -f test.p...
asked by 28.07.2018 / 18:28
1
answer

Log in with FaceBook

I am trying to make the connection with FaceBook from my web application but it is not working, previously it worked correctly. This is the way I declare the script in the parent template so to speak, since I'm using the model MVC of...
asked by 25.07.2018 / 00:59
2
answers

how to select data between a range

As I can build the SELECT, to select from a table the data that are in the middle of a sequence, I need to select from the column code, the data in the sequence are between the smallest code, ie 001, and the last Bone 005, knowing that 005 could...
asked by 29.07.2018 / 01:32