Questions tagged as 'php'

1
answer

Loading login data into another subdomain

In the system I'm doing there are 3 panels, being a users table for each panel and the public site. When the user logs into any of the three panels, and re-accesses the public site, more information would appear. Summing up is a "sign in to see"...
asked by 02.01.2018 / 07:07
1
answer

Header location of php is inserting file instead of redirect

When I log in to my form, after checking if the user is valid there should be a redirection to the home page. However, when using header('location: home.php'); , the contents of the home.php page are being inserted in the login page. I'm u...
asked by 31.12.2017 / 02:06
1
answer

Edit select showing bank value and showing other table options

   I have the table that registers a user (gr_entidade) and that has a connection with a user status table (gr_entidade_status). I want the edit form (editing_user.php) to display the value in the database, but I can see the other items in the t...
asked by 28.12.2017 / 14:51
1
answer

How to run schedule: cron cron in Windows

I created a cron that should check every minute if the value of the end date is smaller than the current one ... if yes it should update the status field of this table. class SetStatus extends Command { protected $signature = 'SetStatus:cron'...
asked by 28.12.2017 / 02:26
1
answer

delete column from select * [duplicate]

I have an api that returns the user's data in json, but wanted to return all the data except the password, would it have some way without being select in all fields except the password? I'm currently doing this: if ($autenticado) { $...
asked by 28.12.2017 / 12:33
1
answer

Digital Signature PHP

I'm trying to digitally sign a document in PHP through A1 certificate. $pdf = new \FPDI(); $pdf_path = $_SERVER["DOCUMENT_ROOT"] . "\files\" . md5(uniqid("")) . ".pdf"; $path_assinado = $_SERVER["DOCUMENT_ROOT"] . "\files\" . md5(uniqid(""))...
asked by 23.10.2017 / 15:23
1
answer

Manage video with PHP

I'm setting up a file management system, but I'm having trouble displaying the videos. It has an interpreter and in some part I have an "ignorer". $mime = mime_content_type($path); if(in_array($mime, self::$ignore)){ $len = filesize($p...
asked by 21.09.2017 / 18:51
2
answers

Insert name instead of value option id

Write to the Database //Ids $codEstado = filter_input(INPUT_POST, 'estado', FILTER_VALIDATE_INT); $codCidade = filter_input(INPUT_POST, 'cidade', FILTER_VALIDATE_INT); $codBairro = filter_input(INPUT_POST, 'bairro', FILTER_VALIDA...
asked by 23.10.2017 / 19:24
1
answer

Error saving directory image with PHP

I made a page that administers a website that is responsible for including new lawyers in a 'bootstrap carousel'. On my machine it works perfectly, but on the server it is impossible to save the image that is loaded. I will explain: The image...
asked by 21.09.2017 / 21:00
1
answer

How to modify all PHP7 error messages?

I am finalizing my project and soon I will put the site in my hosting. I do not want my user to see a "Warning" or any other message. Instead I want it to appear: "There was an error, please contact us. If possible, please send a print of the pr...
asked by 20.09.2017 / 23:59