Posts by Adrianoecris • 173 points
11 posts
-
1
votes1
answer41
viewsQ: How to avoid php file running when it is being processed?
How to prevent a php file when it is running from being executed by another user? an example: User X opens the exe.php file the processing time of it will be in 25 seconds at this time the user Y…
phpasked Adrianoecris 173 -
0
votes1
answer1120
viewsQ: How to authenticate Json with php by passing header
I have the following documentation, I would like to know how to do the authentication, and if possible where I can get study material that has example to perform such authentication.…
-
1
votes1
answer402
viewsQ: Character override function does not work when data comes from mysql
I use a function to replace characters with accents or special characters, but when using the same function with data from MySQL the function is not replacing the characters. Assuming the city is…
-
3
votes1
answer1272
viewsQ: How to return the index of a matrix and its value in different variables?
I have a matrix of the following structure Matriz[indice][valor] How I return the index in one variable, and the value in another? Odd example: $indice = $matriz[indice] And for the value: $valor =…
-
0
votes1
answer86
viewsA: Why does simplexml_load_file return only the first result?
Problem solved... I had to access by hierarchy to make it work. Correct is ($xml->REQUESTS->REQUEST $REQUEST): $xml = simplexml_load_file("arquivo.xml"); foreach ($xml->PEDIDOS->PEDIDO…
phpanswered Adrianoecris 173 -
1
votes1
answer86
viewsQ: Why does simplexml_load_file return only the first result?
Hello I am trying to display the results of an XML file but it returns me only the first records, from the second record I have no more results. what might be wrong? To be inside a foreach should…
phpasked Adrianoecris 173 -
2
votes1
answer242
viewsQ: How to avoid a while for execution before finishing the task?
I’m having a problem doing a query in a Mysql database. This query returns me a lot of data, and this data is sent to make a comparison within a while. Usually it is exceeding the time of my server…
-
-1
votes1
answer898
viewsQ: Connect Mysql hosted on another server
I have Centos installed with php+apache working this centos is local but I want to use this local server to connect to a mysql database on an internet server. I have Firebird installed in this…
-
3
votes3
answers988
viewsQ: A single script for N Formularios
I need to know the correct way to when I submit a form a single script solve, the code below only works if I create a script for each form. How do I fix it? Example: $("#meuform") ... $("#meuform2")…
-
5
votes1
answer733
viewsQ: How to send and process N separate forms with ajax without refreshing the page?
How to do when you have N forms with same ID, or CLASS send the data (Submit) process and when finished processing change the color of the <'tr bgcolor="#FFFF00"'> for green '#00FF00'…
-
0
votes1
answer519
viewsQ: Updating only a tr with ajax with returned mysql data
This is HTML code assuming it has already been processed by PHP. <table width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td>nome</td>…