Questions tagged as 'php'

1
answer

How to read the result of a file to a variable passing POST parameters?

We can get the result of executing a URL for a variable using the file_get_contents ( ) : <?php $pagina = file_get_contents('http://www.meusite.com/'); echo $pagina; ?> But how can we extend this functionality by passing parameters o...
asked by 22.12.2013 / 16:47
1
answer

Composer.lock accessible via web

Recently I installed the composer in a project of mine, I liked it a lot because it is a great tool, however one of the generator files the composer.lock is accessible by the browser, as I do not understand much about this tool I'm a bit afraid,...
asked by 30.12.2014 / 14:21
1
answer

PHP MYSQLi Array no select html

I'm a beginner in php and I'm developing a small system for my company that already serves as a study, because I really like this area, the question is simple, I have the following code: <?php include('conn/conexao.php'); $edt = $_GET['edit...
asked by 29.12.2014 / 14:00
1
answer

Contact form not working

I have the following problems in the form I put together: The form is not sent to the email. After clicking the submit, pressing to reload the page, gives the conflict of "Confirm form resubmission". Here is the Code: <div class="f...
asked by 26.12.2014 / 13:00
1
answer

How to connect to SQLite database that already exists using PDO?

I want to connect to a database that already exists using PDO and sqlite in PHP, and here is the code I have: class Database extends PDO{ public function __construct(){ parent::__construct("sqlite: userquestion.db"); $th...
asked by 16.03.2015 / 02:42
1
answer

Check execCommand operation in firefox ('Copy' command)

I'm having trouble verifying that firefox ran the element.execCommand ('Copy', false, null) command. This check is done correctly in Chrome (which does not allow) and in IE (which allows). Could you please help me out? The following par...
asked by 13.03.2015 / 20:06
1
answer

Carbon diffInDays does not bring the negative value between two dates (positive only) [closed]

$datNow = Carbon::parse('2018-10-23 18:40:11.000000'); $datSuspensao = Carbon::parse('2018-10-18 00:00:00.390176'); $diasRestantes = $datSuspensao->diffInDays($datNow); dd($diasRestantes); //Imprime 5 (Na verdade queria imprimir -5) $datNow...
asked by 23.10.2018 / 14:22
1
answer

Is it possible to assign a value other than the value acquired from an OPTION in a SELECT when submitting the form to PHP?

Well, I think the title of this question has been confusing, but I'll try to get a better understanding of my problem. I'm developing a project with the CodeIgniter framework (I'm a beginner) where I have a php / html page with a form that co...
asked by 17.11.2018 / 19:19
1
answer

Relationship in Laravel / Eloquent ORM

I have a problem. I need to return the values of a relationship, however, it has the following error: ErrorException Undefined property: Illuminate\Database\Eloquent\Collection::$fileServico My code: FileClass.php public function fileS...
asked by 05.06.2014 / 05:36
1
answer

MaxRequestLen error while uploading files

I'm working on PHP and doing upload of files, trying to make a upload of 60M I get the following error:    mod_fcgid: HTTP request length 16784592 (so far) exceeds MaxRequestLen   (16777216) I have my configuration file /etc/apache2...
asked by 04.06.2014 / 17:22