Questions tagged as 'php'

1
answer

Change server CRON function through PHP

Is it possible to change some CRON function with PHP or any other language? For example, I have the following non-server function: 30 15 * * 1-5 php /var/www/html/projetos/hist_06.php In this application the user would enter that they wo...
asked by 29.09.2017 / 14:54
1
answer

FATAL ERROR: No such file or directory in Unknown on line 0

After the system update (for Windows 10 1709) started giving the following error in PHP execution: Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0 Fatal error: Unknown: Failed opening required 'D:\...\i...
asked by 18.10.2017 / 13:28
1
answer

Search Form Laravel 5.5

I would like to know how to filter my bank data with a form where it contains more than 1 field to filter, I could only do one field only. Form: <form action="{{ url('panel/brands') }}" method="GET" name="frm_filter_brand" role="search"&...
asked by 09.10.2017 / 19:57
1
answer

Return Json in Array instead of Object

I have an api that returns the data of 1 user, but it returns an object: [{"id":"0","nome":"xx","sobrenome":"xx","email":"x","senha":"xxx","unidadexlocal":"Praia da Costa","unidadecurricular":"2","diapreparacao":"1","liberadoexercicio":"0"}]...
asked by 20.12.2017 / 20:03
2
answers

Disabling directory listing in WordPress

Good afternoon everyone, I would like my directory listing not to be exposed, I used the following code inside .htaccess Options -Indexes , however when I test the code renaming the index. php it returns error 403 . Is it possible to...
asked by 21.12.2017 / 17:56
2
answers

What is the Function of Error_reporting (0)

What is the function of the code: Error_reporting(0) , I know it is to report an error, and in parenthesis I report the level, but in the documentation of PHP I did not find that level 0.     
asked by 21.12.2017 / 13:36
1
answer

How to access an array inside an object?

How to access an array inside an object? $user = $pdo->query("SELECT * from users LIMIT 1")->fetch(PDO::FETCH_OBJ); stdClass::__set_state(array( 'id' => '104', 'name' => 'John', 'sex' => 'male', 'car' => 'Toyota'...
asked by 21.12.2017 / 21:51
1
answer

How to print the selected database ID? [closed]

Is there a function to get information from a specific ID of my database and print with domf? My code: $id = "30"; $result_usuario = "SELECT * FROM cadastro WHERE id = '$id' LIMIT 1"; $resultado_usuario = mysqli_query($conn, $result_usuario...
asked by 03.11.2017 / 15:39
1
answer

Is it possible to get the value of the background-image attribute through xpath?

I have the following structure: <div class="xGh" style="background-image: url('name_file.jpg');"></div> Where do I need to capture: name_file.jpg I tried to use the solution featured in this response , but not work...
asked by 01.11.2017 / 11:57
2
answers

How to recover the last payment? [duplicate]

I have the following table in my bank: "financeiro financeiro_id INT AUTO_INCREMENT, financeiro_pagamento DATE, financeiro_pid INT, financeiro_valor INT, "; In this table I record the payments that my system receives, then...
asked by 02.11.2017 / 18:03