Questions tagged as 'php'

1
answer

Image Histogram in PHP

Hello, I have a question: How would I do a histogram of an image in PHP, that I would determine the coordinate of the image to be analyzed and return only two things, the amount of light tones and the amount of dark tones. Any ideas how to...
asked by 11.10.2016 / 16:03
1
answer

Friendly link with htacess

I made some settings in my htacess . Check it out: Within my folder www I have a System folder and inside it I have a file named Login.php . I set up forever that I type 127.0.0.1 apache always calls the file Log...
asked by 10.10.2016 / 15:51
3
answers

Variable Title PHP

Good afternoon, I'm trying to leave each page with a different title picking based on the id. I have to tell you that I'm a good beginner in the field and probably should not be anything special, my code looks like this: <?php include '...
asked by 11.10.2016 / 19:09
1
answer

Fit picture when uploading

Colleagues. I have a system where I created an upload method: public function gerarThumb($foto){ $diretorioNormal = "../../produtos/"; $novaLargura = 997; $novaAltura = 665; $miniatura = imagecreatetruecolor($novaLargura, $novaA...
asked by 10.05.2017 / 21:19
1
answer

Unsuccessful Ajax request

Hello, I am performing a request in Ajax, and there is an error in which the value of the line code clicked (in a table) for Ajax is not passed, but I have another example that works perfectly and that is with error. I believe that the possible e...
asked by 21.03.2017 / 13:52
1
answer

Table with 2 td with select inputs displaying return only on the first line

I have 1 table with 1 list of modules, and I have 2 columns that have some options that can be chosen through select.   The issue is that the select's only loads the data in the first row of the table, the next comes out blank, I think that's t...
asked by 06.09.2017 / 06:03
1
answer

Case-sensitive query on sql server with laravel 5.4

I am querying the database (sql server) for user and password validation with laravel 5.4 but the query is being run as case-insensitive. In the database it is:    pwd = Aa12A Input receives:    password = aa12a The result is:...
asked by 15.03.2017 / 16:56
1
answer

List and display images in laravel 5.3 storage

Develop an application with Laravel 5.3, where _DocumentRoot_ is in the public folder. Upload images are in storage/app/public , but I do not know how to list these images in a view , I can only display them directly th...
asked by 15.03.2017 / 03:33
1
answer

Google Chats: Show total above column and grid show 1 to 1

I have the following chart: Ineedtodisplaythelinesfrom1to1anddisplaythenumberalsoofthetotalatthetopofthecolumn.Iknowthatbothwillgivethesameresult,andthatIhave2differentsituations,becausein1caseIhavetoshowthetotalandintheotherchangetheamounto...
asked by 20.09.2016 / 01:19
1
answer

Apache in different different programming languages

What is the difference between the Apache server for PHP (Wan) and the Web Container Apache TomCat?     
asked by 09.09.2016 / 20:04