Questions tagged as 'php'

5
answers

How to display the result of a query in a html page in PHP?

How can I display the results of a query in a one-page html table? Below is what I was able to do. However, the code only shows the first record. include("conectar.php"); $sql = mysql_query("Select * From tb_trabalhador and tb_detalhe_traba...
asked by 31.01.2014 / 17:53
1
answer

Why does Codeigniter perform so well on benchmarks even if it does not follow language standards?

I see a lot of people spitting on Codeigniter, saying it's a framework junk that refuses to follow "language standards." But I find it strange to say that of the framework that has the best performance among those that are not compiled as we can...
asked by 02.03.2015 / 17:07
2
answers

"1 ----- 1 - + - 1" is a valid integer value in PHP?

I am testing a function for PHP value filter called filter_var() . And a of your filters , focused on int values seems to accept any combination of numbers, + and - . Example: filter_var("1teste2", FILTER_SANITIZE_NUMBER_...
asked by 15.01.2015 / 23:20
3
answers

What is a module in PHP?

I'm studying this documentation and I came across this term:    The return statement returns control of the program to the module that called it. The execution will continue in the expression following the invocation of the module ....
asked by 28.02.2017 / 18:06
2
answers

Set OPTION as SELECTED based on database values

I am preparing a form where I am setting the values of the fields with the data of the database. I'm having trouble setting the option chosen as selected to <select/> in the code below: PHP <!-- ATENCAO --> &l...
asked by 17.06.2014 / 18:17
1
answer

Information Protection when inspecting the code through the browser

I wonder if there is any way to hide the visible code in the inspect / ctrl + U or make it difficult. From what I've been researching PHP makes it difficult to consult the code, do you? What methods do you know about this?     
asked by 01.12.2016 / 03:10
2
answers

Increase dblib connection timeout with PDO

In a connection to an external server ( MS SQL SERVER ), from another system with which I integrate some data, it is extremely slow, and thus the connection to the database gives error. How to increase the timeout of the PDB connection with...
asked by 05.09.2016 / 16:55
10
answers

How to remove accent in upload with php?

Part of the file is working. The problem is that when I send a file with accent. Example: I send a file with the name ação-íaaa.jpg so it stays on the ação-íaaa.jpg server. So I wanted to remove the accents to stay like this...
asked by 18.09.2014 / 18:39
1
answer

What is "extract" in PHP?

I was analyzing a PHP code, and a script was used extract . I searched in some PHP documents and the examples are a bit abstract and unfortunately I did not realize much. I would like in a general case to know what extract does in P...
asked by 29.12.2016 / 00:59
2
answers

Problem with str_replace php

str_replace does not compare the entire string, it only compares half the string. I have an associative array: $arrayFrutas = [ "banana" => f.banana, "bananaGrande" => f.banana_grande ]; So I have a String: $stringParamet...
asked by 02.10.2017 / 13:01