Questions tagged as 'php'

1
answer

How to avoid uploading shell files or file attacks in php?

I'm doing a file upload system but I want to avoid uploading files shell or virus to attack the page but how do I do that? $file = $_FILES["file"]; move_uploaded_file($file["tmp_name"], "archivos/$user_username/" . $file["name"]...
asked by 04.01.2019 / 23:54
3
answers

Difference of exact hours between sumHoras and hrsDia, Excel PHP

I want to make the exact Difference between Time A and Time B. Ejemplo A HoraEntrada HoraSalida sumaHoras hrsDia Diferencia 06:51:27 19:51:00 12:59 08:00:00 4.98 The following query ret...
asked by 28.09.2018 / 23:32
4
answers

Remove virus in wordpress with SED in a vps with linux

I have a vps with more than 100 wordpress installations and they all have a script in their header or header.php var _0xfcc4=["\x66\x72\x6F\x6D\x43\x68\x61\x72\x43\x6F\x64\x65","\x47\x45\x54","\x6F\x70\x65\x6E","\x73\x65\x6E\x64","\x72\x65\x73...
asked by 28.09.2018 / 16:03
3
answers

Know the number of the week of a range of dates

I would like to get the number of the week from a range of dates for example if I have: $fechaI = '2017-01-'01'; $fechaF = '2017-01-21'; then it's 3 weeks and I want to save it in a array that is $nSena =[1,2,3]; where 1,2...
asked by 08.09.2017 / 20:43
2
answers

3 estates if followed with similar conditions? php

I can not get this headache, I need to meet a condition: if($a == null): <div class="imagen1"> <img src="http://www.juguetessomosnosotros.com/wp-content/uploads/2012/08/rubik_cubemess.png"> </div> endif; if($...
asked by 07.06.2017 / 10:15
1
answer

Show image according to variable greater or less than

Hello friends, let me explain, I make a query to get the scores when a user in 4 stages must acquire a number greater than 69 points, the idea is to show an image according to the score is greater or less than 69 points. If the user does not...
asked by 28.07.2017 / 06:29
2
answers

IF conditional in PHP

I know that as such, in HTML you can not use the conditional if, but with PHP you can integrate perfectly. What I'm looking for is that instead of doing the conditional completely in PHP: <?php if (condicion) { echo "<p>hola<...
asked by 07.06.2017 / 11:22
1
answer

Detect DOCTRINE date collisions

I have a table TAREAS formed in the following way: +--------+------------+---------------------+---------------------+ | id | informe_id | inicio | fin | +--------+------------+---------------------+----...
asked by 20.07.2017 / 10:59
4
answers

AJAX does not send data to PHP

is my first time using AJAX, for more examples that I put into practice, I can not make AJAX send PHP a variable, instead if it communicates with the PHP file, but when I give alert(data); I get the html from my page .php, instead of show...
asked by 20.07.2017 / 17:51
2
answers

Styles Bootstrap

I'm doing a web app to which I want to incorporate bootstrap as well as custom styles. The problem is that I take the default bootstrap styles but not the custom ones I apply. For example: in the index.php I have a jumbotron, which I want to cus...
asked by 19.02.2018 / 15:07