Questions tagged as 'php'

1
answer

How to get directories recursively?

How do I recursively get all *.php files? With the code below I get everyone who is root, but I wanted to get it from all the directories. I tried using RecursiveDirectoryIterator , or use some of the functions I found in SOen,...
asked by 11.09.2015 / 02:24
1
answer

Problem between PagSeguro and number of plots

I made the implementation of a custom virtual store in the PHP language and as a checkout I am using PagSeguro . In the implementation, the transparent checkout was used and was functioning correctly, but the client requested that the option...
asked by 22.04.2015 / 14:23
3
answers

How does php guarantee a single session_id?

What algorithm is used to guarantee a single session_id() ? I would like to know how to create and verify to ensure that such an ID does not collide with an existing one? I need to create some hashes , but I'm afraid that one hour two...
asked by 04.04.2015 / 19:45
2
answers

On-to-one relationship in auxiliary table using Laravel

In the application I'm working the database is built on the users part, as follows: user 1 -------> 1 user_address 1 <-------- 1 address In the user table there is no column that references the address. What exists...
asked by 05.01.2016 / 07:33
1
answer

What is the purpose of the system directory of the Inphinit micro-framework?

I intend to use the Inphinit micro-framework in my project, but first of all I need to know more about it. So, I created an example project just to familiarize myself with its features, however, I had a question about a directory it has, wh...
asked by 24.12.2016 / 02:26
2
answers

Why is chr () vulnerable to a cache-timing attack and pack () not?

Out of curiosity I'm looking for and slowing down many things about cryptography and also looking for some pure PHP libraries, such as Sodium_Compat , for the sole reason that I understand a lot more of PHP compared to C, which is ideal for e...
asked by 19.02.2017 / 14:04
3
answers

Correct cents in boletoPHP bank statements

I am using the BoletoPHP project to generate bank notes, but I noticed that the cents are not recorded properly, because when I buy a product with the value of for example, $ 245.00 plus the bank fee $ 2.95 , it correctly prints the value of $ 2...
asked by 16.12.2015 / 13:28
1
answer

WebService REST Simple

How to create a simple REST-type WebService that does HTTP communication from an Android device to the server using the PHP language? My goal is to Requests and receive a Response from the server.     
asked by 28.08.2015 / 19:10
1
answer

PHP \ xf0 represents 0xF0?

If \xF0 represents a hex as well as 0xF0 , why are their output different? echo "\xF0"; echo 0xF0; I actually do not find any information about this \xF0 notation in the PHP manual.     
asked by 26.10.2018 / 20:06
4
answers

How to use AJAX with Laravel?

I have a select that when I change the value it should reorder a list, eg by id, name, etc. without Laravel I would use a onchange function and pass the sort order to a PHP page that would print this list sorted for me ... But how to d...
asked by 06.02.2014 / 11:35