Questions tagged as 'php'

1
answer

How to configure Autoload Composer?

I'm looking for a lot of autoload in php, I decided to study about it, I managed to understand a good part, but I have a single specific doubt. Within the file composer.json , in the excerpt: "autoload": { "psr-4": { "App\...
asked by 30.03.2018 / 03:40
1
answer

PHP check specific characters

I've created a formula that allows you to create such codes 12345-6789-101112 What I want now is, when I validate the form I want to verify that the code is correct for example. Se contem 5(00000) em cada 3(00000-00000-00000). Is there...
asked by 29.03.2018 / 19:14
2
answers

WHM / Apache Server Configuration + jQuery Ajax

Recently I started having the following problem in the domains of my server with WHM: When running an asynchronous AJAX call in the background, I can not continue, that is, I can not access anything in the same domain by the same terminal tha...
asked by 25.08.2017 / 19:55
2
answers

Is a notification system using setInterval + AJAX bad? [closed]

Because they are multiple requests to php + myql, little intervals (milliseconds thing) multiplied by several online users at the same time, is this impractical in the sense of computational resources? Will these XHR's all give a "bottleneck"...
asked by 24.03.2017 / 17:18
3
answers

How can I prevent systems from incorporating my site?

I soon discovered that people are accessing my site with a Site Marketing application. It comes from different "people", with different data but with the same characteristics. It starts with a text and at the end some links. I also disc...
asked by 30.03.2017 / 16:01
2
answers

Returning linked data

With the help of Milrak Pereira Pessoa and Wéllingthon M. de Souza, I edited my code ... I have a product code and it has 5 types and 5 descriptions. I'm trying to bring to the user the types and descriptions within the blank table. However, the...
asked by 20.10.2017 / 21:47
1
answer

Question system in php

Hello everyone, I'm trying to think of a logic to make a question system with php but I caught it in relation when the user finishes asking question 1 he will give submit to next there would appear question number 2 and so on but my problem is t...
asked by 06.07.2017 / 15:44
1
answer

How to create a function that validates if there is a MySQL function in a given string?

I am looking for a function that identifies (return true) if there is a MySQL function in a string. These would be some examples of possible input to function. <?php $randomstrings = [ "foo", //String comum "NOW()", //Função sem pa...
asked by 12.07.2017 / 17:25
1
answer

Request field fill in url

Good afternoon ... I need your help. I have a page in html + php which basically is a field that queries a mysql database with ajax and returns the result as the field is filled with the correct number of numbers (10 digits). I wanted to m...
asked by 11.11.2017 / 22:18
1
answer

Update table field just checked with checkbox php mysql

@Leo Caracciolo worked out the way you did # , but I have another problem: there are students who are enrolled in several courses, ie the student id is the same but the course id in the run_id column is different for each user id, so each time I...
asked by 08.11.2017 / 00:06