Questions tagged as 'php'

0
answers

move_uploaded_file saves in database, but does not save image to folder! Someone help

<h1>Upload de Arquivos</h1> <form name="enviarImagem" action="enviar.php" method="POST" enctype="multipart/form-data"> Arquivo<br> <input type="file" name="img" value=""><br><br> <input type="submit...
asked by 16.11.2018 / 03:02
1
answer

Improve file_get_contents performance in loops

Is there a way to make file_get_contents perform a quick function within a loop? Follow the code <?php foreach ($links->result() as $value) : ?> <?php $url = $value->lnkUrl; $domain = parse_url($u...
asked by 16.10.2014 / 00:33
1
answer

How to catch errors and exceptions to send to DB with PHP? [duplicate]

How can we capture all errors and exceptions generated at runtime in PHP, sending to the database to later make a log page organized? Currently I redirect every request to index.php, treating the URLs in a friendly way with an MVC templat...
asked by 16.10.2014 / 02:22
1
answer

Error log by INI and in script

I have my error handling using the set_error_handler, set_exception_handler, register_shutdown_function functions, where I debug and write the error message with detailed information and in the PHP.INI enabled line: error_log = C:\we...
asked by 10.10.2014 / 05:58
0
answers

Top command with php does not return the same value as the terminal

I'm building a code in php to monitor my CPU usage. I'm using the top command that is native to linux. I am using a pc with ubuntu server 18.04 for testing. Well, what happens is that I open the terminal and run the php together, the value of...
asked by 19.12.2018 / 13:39
1
answer

Export Excel Data PHP Variable Workbench

I'm having second thoughts about generating an excel with the query. <?php include("conectar.php"); $id = $_GET['id']; $arquivo = 'Não autorizado .xls'; First question: In the $ share part, can I put a variable to rename the file? // -...
asked by 28.05.2014 / 10:45
0
answers

Upload and manipulate a form from an external site

Hello, I need to incorporate this site into my site: link so that the person can consult by him. Using iframe works fine, however I had to manipulate the first field (municipality) so that it would be fixed in one of the options. Another...
asked by 20.12.2018 / 15:20
1
answer

Doctrine 2 - Entities in more than one directory

Good morning, I'm starting in Doctrine 2.4 and I'm developing a system where I separate core files from application files, as follows: /root |-- /src |-- /App |-- /Model |-- **(Entidades da Aplicaç...
asked by 03.06.2014 / 13:45
1
answer

JSON Structure for HighChart Line

I would like to know what would be the correct structure for creating a LINE chart in HighCharts with dynamic data: Example link Home I have values that I want to show in a row, its evolution during the months, but I do not have all the months...
asked by 03.06.2014 / 18:56
0
answers

How an authentication validation works with Angular + PHP

I'm starting angular (version above 2) I'm studying angular communication with PHP, in the httpClient part (of rxjs) to make the GET, POST, PUT and DELETE understood well. My question is how does this work to login? From what I understand so far...
asked by 29.10.2018 / 23:45