Questions tagged as 'php'

3
answers

Problem in download event in "href"

I have a problem where I need to find a file on the server Linux with the value name of <a href> and download it when clicking on the link. The file path is /var/www/html/ligacoes (there are several folders and ther...
asked by 30.01.2014 / 15:04
1
answer

Execute a task at any given time

I am developing a system of deadlines and alerts. The user will register a deadline, date and time of the term and define if he wants to receive the alert with 1, 2 or 3 hours in advance. How can I perform a function that checks and is it tim...
asked by 08.08.2018 / 14:43
1
answer

Cakephp Auth component does not work correctly

I am making a user registration screen. When the user completes the registration, he is redirected to a restricted area. In this same screen, there is a login and password field for the logs themselves. However, the only thing that works is the...
asked by 05.03.2014 / 19:00
2
answers

Return values through a class derived from the same parent

I have classes 1, 2a and 2b, where 1 is the main class, while 2a and 2b extends class 1. Is it possible through class 2a to access values from class 2b directly or through the parent class? Basic example: class system{ } class modulos exte...
asked by 21.03.2014 / 16:13
1
answer

How to pass an SQL expression to an UPDATE by Zend?

My MySQL DBMS has a table called elements where one of the fields is called posicao and is of type int (6) . I need to perform an update (SQL) where the posicao field should be updated with its own value subtracting 1 acco...
asked by 14.03.2014 / 23:20
2
answers

Problem with line break and substr in php

I made a rectangle containing the article title, that title is limited using php substr , but when a word is large it breaks the line by continuing the text below, however the number of characters remains the same, except that the text ends up...
asked by 11.03.2014 / 21:24
0
answers

Uploading photo with HTML5 and PHP input

I'm using the new method of uploading photos where to use the mobile phone it opens the camera and if you use a computer it opens the files ... however if you try to upload the photo by the phone it just does not happen, different of if I do upl...
asked by 19.06.2018 / 15:01
1
answer

Formatting does not work

I am using this formatting so that the total returns the correct value. But this line returns me without the pennies. The value has to return for example: 23.99 and is returning 23.00. How to solve? $total = number_format($total,2, ',' , '....
asked by 15.06.2018 / 15:46
0
answers

image does not appear per rule in .htaccess

I have my .htaccess as follows: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -t [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.$...
asked by 15.06.2018 / 18:11
1
answer

php - check if the user with email X has 1 or 2 sessions open

Good, I'd like to know the safest and simplest way to check if a user is connected 2x in the same email. If it is, it simply cancels 1 and gets the other one. How can I enhance this verification?     
asked by 08.07.2018 / 19:20