Questions tagged as 'php'

3
answers

Syntactic Sugar in PHP

Would foreach be an implementation of Syntactic Sugar in PHP? foreach($array as $key=>$values) { //Faz algo com as chaves e valores. }     
asked by 25.07.2014 / 21:33
2
answers

div that works like a textarea does not break line when it is sent

I have a comment plugin for WordPress which has a small problem. It works like this: It is a <div> that works as if it were a <textarea> , only because it works like this, when the user wants to type a comme...
asked by 07.07.2014 / 22:42
1
answer

Difference between PHP and PHP 64 Bits

I would like to know the difference between PHP and PHP 64 bits. I was researching on RealPerson.js , where I had one code for PHP and another for PHP 64 Bit: PHP function rpHash($value) { $hash = 5381; $value = strtoup...
asked by 18.10.2016 / 00:18
2
answers

Error catching field of a JSON?

I'm having an error when I try to retrieve a field from a array . Follow json : { "data": { "messages": [ { "id": 1, "sender": "[email protected]", "recipient": "re...
asked by 27.10.2016 / 15:13
3
answers

How to check if the field type="file" was filled

I have a form and I have the following field <div class="form-group"> <label for="foto">Foto:</label> <input type="file" name="fileToUpload" id="fileToUpload" accept="image/*" required> </label>...
asked by 06.10.2016 / 16:04
1
answer

How to organize an array from a list

An array that looks like this: Array ( [nome_e_sobrenome] => Array ( [0] => Luiz Felipe Machado [1] => Maria Rita de Cássia ) [usuario] => Array...
asked by 24.02.2017 / 19:44
2
answers

Validate the return of select PHP

I am making a select and before printing the form on the screen I would like to validate if the select returned lines, as I do this I tried in several ways without success. $stmt = $dbh->prepare($fat_ped_online_vende); $stmt->execute();...
asked by 20.01.2017 / 18:17
1
answer

What are the ways to create html file using php?

I wanted to know what possibilities I have to create a arquivo.html using php . In case I wanted to make a button clicked, I would generate this for myself. For example, I have a page in php and it has a button in it. C...
asked by 17.02.2017 / 19:25
2
answers

How to show data of the most recent date? [duplicate]

I have a table1: Auto_Increment ID; varchar name; data date; I would like to see only the data with the most recent date. How do I?     
asked by 05.09.2016 / 11:31
1
answer

URL with uppercase letters

Is there a problem naming high-end pages? ex: http://exemplo.com.br/Minha-Pagina.php     
asked by 15.09.2016 / 17:23