Questions tagged as 'php'

2
answers

Pick up file without knowing its extension

How do I get an image without knowing the length of it? for example: Image name is moon , but I do not know the extension and when I try to use php commands of the error and says it could not find the file How can I get a file by name onl...
asked by 19.07.2016 / 18:55
2
answers

How to store form data in 2 different banks?

I have a form that the data needs to be saved to a local bank and another bank on a server. Is there any way to do this without duplicating the "insert" of the code? In the connection file I configured the 2 connections, but only inserted in...
asked by 01.10.2015 / 15:11
3
answers

How to write and appear somewhere what I wrote

Well, on websites nowadays some things are found that I can not explain, for example, think of a form asking for your name, you fill in, and at the same time your name appears on top of it, as if you were typing and appearing in the form and abo...
asked by 19.07.2015 / 01:28
2
answers

PHP Text Interpreter

I'm creating a text interpreter based on the DuckDuckGo Github documentation > in PHP. This is one of the codes I created: if (strpos(strtolower($qt), "rand") !== FALSE){ if (preg_match("/^rand$/", strtolower(removeAccents($qt)), $match...
asked by 16.05.2015 / 04:25
3
answers

JSON for PHP via AJAX

I really need some help .. I have a select with the products: <!-- panel preview --> <div class="col-sm-5"> <h4>Adicionar Produtos:</h4> <div class="panel panel-default"> <div...
asked by 03.08.2015 / 22:59
3
answers

What is the best way to insert a large amount of records into the database?

Hello, I'm creating an application where I need to constantly query a worksheet, pick up the data from it and insert it into the database (MySql).    The point is that these worksheets will always have at least 55,000 (fifty-five thousand) re...
asked by 30.07.2015 / 21:54
1
answer

How to send data via POST and retrieve in PHP?

How do I send the data via POST with the send-json method, value 0, following my PHP code: // Recupera os dados $nomeUsuario = $_POST['nome']; $cpfUsuario = $_POST['cpf']; $bairroUsuario = $_POST['bairro']; $emailUsuario = $_POST['email...
asked by 19.06.2015 / 22:14
1
answer

Is PHP considered open source?

Is PHP considered open source? If so, are there repositories such as Chromium where we can see their "guts" and / or collaborate for their development? If not, does it have any rights to CGI, C, C ++ languages? Since they were used for their cre...
asked by 29.11.2017 / 20:57
1
answer

Unsecured script

I'm developing a website with 2 scripts. But by submitting the site to the testing area, the scripts do not load, as in the image below. What should I do to run automatically and be recognized as safe?     
asked by 17.10.2017 / 19:24
1
answer

Regex to optimize code change using Notepad ++

Hello, someone can kindly help me create a regex expression for the pattern below. I have in my php code the following pattern: htmlspecialchars($str) I need to create an expression that replaces this with this: htmlspecialchars($st...
asked by 01.03.2018 / 20:15