Questions tagged as 'php'

1
answer

What does (-X, -H, -d) mean for this command (curl -X POST -H "Content-Type: application / json" -d) and how to do it from the php file?

curl -X POST -H "Content-Type: application/json" -d I need to perform this command and send a JSON to a particular API that will return a response but I do not know how the structure of that would look in a PHP file and what that data means (-...
asked by 30.07.2016 / 13:06
1
answer

How to document parameters received by function "func_get_args"?

How can I be documenting parameters that are received through the func_get_args function? The reason is to be able to pass several parameters to the function for the same purpose! /** * Gets a smart text filtered and formatted of ac...
asked by 25.07.2016 / 21:11
2
answers

Criteria on dynamic inputs

I have a dynamic input that checks the date the user selects and then returns the available hours for scheduling, however when the user selects the date of the day (data = hoje) I would like the hours that have passed to be deleted from t...
asked by 28.06.2016 / 21:15
1
answer

Dealing with multiple lines of code within a variable

I'm developing a dynamic report with mPDF, but I'm not able to put my data inside a variable so I can output it. My page is designed like this: $html = '<div class="box-content no-padding table-responsive relMembros">' .'<table cla...
asked by 05.07.2016 / 20:59
2
answers

Arduino + Module SIM900 + PHP + MySQL - Problem POST method

Good afternoon everyone! I'm developing a project that consists of communicating a SIM900 module with an application, and making the interaction of the two will be a WEB server + database. The APP, Database and PHP page items are already w...
asked by 02.08.2016 / 23:38
2
answers

How to make the PaiChild relation between two select elements?

I am making two elements Select an "Area" and another "Problem" and need to relate to each other, in the problem DB table is the FK spr_sar_code referring to the sar_code of the Area table. I am not able to interact so that the select problem de...
asked by 19.09.2016 / 18:55
1
answer

Sorting data with php

I need to sort an array by a specific "order" field, where within that array I have banners with the id, order, name, and img fields. I need to sort this array in order. the 0 order banner needs to come first, 1 second, and so on.     
asked by 21.09.2016 / 20:19
1
answer

Multidimensional array from mysql query

Good afternoon, I have a system, with the following tables: pagina: id,nome ,icone, idGrupo. paginaGrupo: id,nome,icone, idGrupoUser. I am putting a dynamic menu on top of these tables. I get the ids of the groups that the user is part o...
asked by 19.09.2016 / 17:38
1
answer

Display Datetime Content Using Doctrine

In a WebService project using SlimFramework, I decided to add Doctrine to do the queries in the DB. I resolved to follow DOCTRINE's guidance for working with Datetime and Time Zones on this site Doctrine Documentation When trying to recover...
asked by 21.09.2016 / 02:16
1
answer

Android, PHP and HttpURLConnection - Send message to PHP with UTF-8

Sirs, very good day / afternoon / evening! I'm having problems with word accentuation. The backend of my system works in PHP by talking to an Android app. When I send the message from the App to the server PHP works normally, and PHP responds...
asked by 22.09.2016 / 15:49