Questions tagged as 'php'

1
answer

Display Image Within Another

Galera So I have this image of card and I need to display another image on the photo of the person, I was able to insert the wanted data of the bank but the photo of the person I can not get from the bank and display on top of that card image...
asked by 13.10.2015 / 20:20
2
answers

Restrict access to a folder on the server after being signed in

I have the following problem: I have 1 application used by 5 users ... For each user there is a folder on the server, because for each one there is a configuration and some files are different, so the authentication links are:    user1 = w...
asked by 07.10.2015 / 17:20
1
answer

Read XML attribute

I'm reading an XML file with the command simplexml_load_file() which has the following structure: <nfeProc xmlns="http://www.portalfiscal.inf.br/nfe" versao="2.00"> <NFe></NFe> </nfeProc> How do I get the...
asked by 08.10.2015 / 16:02
1
answer

Return Json with related data - Laravel

I'm creating a REST API but I stumbled on this issue where I can not imagine a solution. In my database I have 2 tables; Table 1 - General product data such as name, code, sku and description Table 2 - Variable product codes. Table 3...
asked by 30.11.2015 / 13:08
1
answer

How to block iframes in input

Hello, I have a website with a post system and the problem is this: the user can put a YouTube iframe for example in any resolution: <iframe width="560" height="315" src="https://www.youtube.com/embed/CKjPutIlBCA"frameborder="0" allowfullsc...
asked by 30.11.2015 / 02:03
1
answer

How to group values and process them for DB?

I have a BD that contains 16 information fields, this BD stores bets placed on a system, and then can process the result and payment of the customer's ticket. In the administration part, the ADM has an area where you can place the results of...
asked by 08.07.2015 / 21:20
1
answer

Setting value of the input file field

The world of the project is: I make a register where I can upload the file, save the project, I register the post, and the image in 3 types of tables, the first table tbl_PUBLICACOES, except the publications, the table tbl_IMAGENS, where saved t...
asked by 09.07.2015 / 14:02
1
answer

Change status button

I have a code where the client clicks the button, it will activate or not a user, and of course, change the status in the database. So far so good. However, the code has two buttons, On and Off, and the Disable button is initially hidden by defa...
asked by 10.07.2015 / 17:14
1
answer

PHP - Full XML in var_dump

Good afternoon, I'm wanting to see the complete xml coming from a web service SOAP response, but when I put var_dump it shows only half of it, the other part is replaced by the word " ... (length=740) ". How do I see it compl...
asked by 10.07.2015 / 19:07
1
answer

How to do is_unique of two fields?

I have a need that I do not know how to accomplish. Well, my problem: I have a is_unique field that refers to two fields in my DB, IDENTIFIER, and PLANT. Would you like to know how to perform this validation? For a single field I use...
asked by 10.07.2015 / 13:42