Questions tagged as 'php'

1
answer

How to handle results of a query with PHP OO?

I'm creating a simple website, for photography, and I'm doing all of PHP object-oriented. I know PHP procedural, but I would like to mix PHP with HTML as little as possible. My connection and my query are running perfectly, however I would like...
asked by 20.05.2015 / 01:58
1
answer

AJAX request works on all browsers except Firefox

I have tried to make an AJAX upload system and it works perfectly in Chrome, however it does not work in firefox. I used the $.ajax() function of JQuery. Do you have any suggestions whatsoever? I have a normal form that requires a file...
asked by 02.10.2018 / 22:19
0
answers

Local environment does not process some requests [closed]

I'm working with 2 sites in Laravel, where requests to the server import and export large databases in Excel occur. When I make changes to these databases, I can not test them on my local machine, I have to go to the amazon server to see if m...
asked by 23.10.2018 / 18:50
0
answers

Multiples App Laravel using the same job table

I have in my scenario 3 servers http running the same application Laravel and sharing the same Database, where the first server makes LoadBalance using nginx , basically with the same load weight. > The application w...
asked by 27.09.2018 / 17:50
1
answer

Display data from two tables in grid with YII framework

Hello, I'm starting to develop web and I'm having a problem working with YII framework 1. I have in the application a grid that displays: product name, segment, price . All of this data comes from the database in two customer and produ...
asked by 09.10.2018 / 01:39
1
answer

View BMP image saved in Oracle in PHP

How to do to recover a BMP image saved in an Oracle database and display it on the screen Unfortunately I can not store the image files on the server and save the database only the path.     
asked by 02.05.2014 / 22:21
2
answers

How to sum several date ranges as php [duplicate]

I have a problem with the sum of dates. I have several events that are registered in the bank with start date and end date, I need to know the time interval between these events and add these intervals to know the total time that these events...
asked by 22.06.2015 / 22:55
2
answers

PHP: Get function argument with preg_match_all

Good afternoon: I'm picking up the value of calls to a particular PHP function straight from the source code. What I need is to scan each of the lines of the source code, and if there are one or more altext () function calls, get the argum...
asked by 19.06.2015 / 20:18
1
answer

How to make the box open without having to load the text

I have a problem and I can not remove the click to open the text box, I want to leave the text box always open and mandatory, how do I do this? I think the code is this: html += '<div class="qstxt"> <span onclick="$(...
asked by 28.06.2015 / 18:19
0
answers

What is the purpose of the two double points (:)? [duplicate]

I see in some classes something like the following: Illustrative class class Carro { private static $quantidade = 5; public function getQuantidade() { return self::$quantidade; } public function comprar...
asked by 06.07.2018 / 15:27