Questions tagged as 'php'

1
answer

Email is not being true

I am having a problem: I am creating a " forgot password" field where the user types the email and if it is in the database it appears as true and redirects to page teste.php ; otherwise, to the index.php page. However, when I...
asked by 02.11.2017 / 02:36
1
answer

Extend PHP session using .htaccess

How to extend a session in PHP using .htaccess? I used this code below: php_value session.cookie_lifetime 28800 php_value session.cache_expire 28800 php_value session.gc_maxlifetime 28800 But I believe it did not work, so, how can I chec...
asked by 30.10.2017 / 19:32
1
answer

Select columns in different tables

I'm using Laravel 5.3 and would like to use columns from two different tables related to foreign key: For example:    Client table id | nome | end_cep 1 | carlos | 69084555 2 | Maria | 69088555    Address table cep...
asked by 26.10.2017 / 15:34
1
answer

Protect php files from direct access without blocking the system

In terms of routing, my site is divided into two parts: First, it has an app folder inside root, where all the files in the site are contained in the MVC system, and second, next to the app, a set folder and file that serve to intercept the URL...
asked by 21.09.2018 / 21:36
1
answer

How to add header and footer in mpdf

I'm doing a job where I have to generate a PDF from mPDF and it generates correctly, but from the moment I add header or footer, it stops working and does not generate the PDF, the goal was to add pagination to the footer, which is one of the re...
asked by 31.12.2017 / 12:15
1
answer

jQuery variable for URL

It's as follows, I have the following code: $('body').on("click", ".delete", function() { $('#1').val($(this).parents('tr').find('td').eq(0).text()); }); That will fetch the id of a row from a corresponding table row clicked and I...
asked by 17.12.2017 / 21:17
1
answer

Open new pages / links within tab

I found it interesting how the system opens the pages "inside tabs" and I'm trying to make a similar one. I'mhavingtroubleopeningthelinks,butitdoesnotwork,what'smyerror? $(document).ready(function() { //add ajax tabs $("#addNewAjaxTab...
asked by 29.12.2017 / 22:16
1
answer

PHP - Real Time Application [closed]

A doubt I need to make an application that validates from time to time if a session is valid through a query to the bank. This query should be done automatically, without the need for a user action, such as a JS location.reload (). I thoug...
asked by 07.12.2017 / 12:33
1
answer

How to Fill Only Selected Input

I'm having a problem popping up a field inside a table that is within a loop For , and one of the titles in this table is a modal, button as it is clicked opens a selection of units of measure . And when the user selects the drive,...
asked by 27.11.2017 / 20:46
1
answer

Accentuating files in directory reading

I created a simple directory reading in PHP, but when I upload files with accents, they appear with strange characters and then I can not open those files. How to correctly read the accent? I've tried a lot of things changing to UTF8 in HT...
asked by 13.05.2014 / 22:15