All Questions

1
answer

Creating PHP object from HTML

I imagine that frameworks usually do the following to create a simple text field: $campoTexto = new CampoTexto("nomeDoCampo", "valorDoCampo"); $campoTexto->gera(); The result would be: <input type="text" name="nomeDoCampo" value="va...
asked on 26.06.2014 / 21:18
1
answer

Error trying to convert Portuguese date into datetime

I have a problem and I can not find a solution to fix it. I have a date in this format: Wednesday, April 30, 2014 and I want to save this date in the database in type datetime . So I am trying to convert to type datetime , but I h...
asked on 30.04.2014 / 17:50
1
answer

Attribute dir, html or css

The dir attribute is usually omitted for LTR and is used for RTL - which are written from right to left (arabic and related), with the purpose of changing the direction, but I did not find anything relevant besides. Using PHP to f...
asked on 02.11.2014 / 11:42
1
answer

Recommended way to populate variables with bank data

Assuming this dummy method to get data from the database, let's say SQL Server: public List<DadosDTO> ObterDados() { try { comand = connectionFactory.CreateCommand(); comand.CommandText = "SE...
asked on 01.08.2014 / 15:39
1
answer

How to apply! important in a property with multiple values

I'm having some difficulties with the precedence of CSS selectors to create a dynamic background (transition of images.) in the first section / div displayed on the site. I currently have the following scenario: HTML: <section id...
asked on 02.01.2015 / 19:13
3
answers

Error "HTML contains invalid UTF-8 character (s)" when using mpdf

I have a problem using mPDF. Basically, I have a code that makes a select of a table and then displays the values on a PDF page. The problem is that if any table value has an accent (example: "Hello") the error appears:    "HTML con...
asked on 06.07.2014 / 15:57
1
answer

Socket between 2 clients and 1 server in C

How to receive two connections? The system consists of 2 clients and 1 server, the server must receive the connections and initiate a sequential conversation with the clients. I was able to implement the communication between 1 client and t...
asked on 03.12.2014 / 16:54
2
answers

What is [QSA] for and similar in RewriteRule?

I have as an example the following RewriteRule ^(Home)?/?$ page/php/Home.php [NC,L] I know that NC is Non-Case(Não diferencia maiúsculas e minusculas) . L means that if a RewriteRule is true it stops checking....
asked on 08.10.2014 / 14:31
1
answer

URL :: previous () returns incomplete path

As I'm studying the book Code Bright , I get errors from time to time. But this one did not find a solution in Google. When doing Redirect::to() from one route to another should be displayed the previous full address, but only appears...
asked on 23.01.2014 / 20:59
2
answers

Capturing audio via microphone via JS or HTML

I need to capture audio from the microphone and write to file. Send to PHP server. How do I, in the examples I saw here, did not notice how to record the sound files.     
asked on 30.04.2014 / 23:31