Questions tagged as 'php'

2
answers

How to send email with PHP?

I have a site under construction that people have the possibility to insert an email, I would like that as soon as they enter your email and click the "subscribe" button, send an automatic reply email to them, how could do that?     
asked by 05.07.2014 / 21:17
1
answer

Live on Facebook using FFmpeg?

I'm using ffmpeg to try to stream a Facebook live, using the concat function to stream multiple video files, but at the end of the first file, Facebook crashes and does not continue playing the rest of the files. p> This is my li...
asked by 01.03.2017 / 21:14
1
answer

Deploy Application Laravel 5.2 + Angular2

I'm developing a small application with Laravel 5.2 and Angular2. So far everything is ok in the development environment (not to contradict :)). My concern is how to deploy this application to a shared server - in which case I'll be posting on K...
asked by 31.08.2016 / 21:09
3
answers

How to get the format in hours when it exceeds 24?

I'm developing a system in PHP where I need to at some point get the total time of an audio file. This time is saved in the database in seconds and also in the time format. The problem is that when you format these times through the seconds s...
asked by 24.02.2015 / 02:54
3
answers

Use OR operator in a CASE in PHP

How to use the or operator in a control structure switch ? Example switch ($options) { case 1 || case 2: echo "Valor de opção 1 e 2"; break; case 3: echo "Valor de opção 3"; break; }  ...
asked by 10.04.2015 / 21:58
2
answers

How to check real-time change in database with php websocket?

I want to update a div only when there is a change in a certain field in the database, I am currently using polling, but I want to switch to websocket for performance issues, but I only find examples of chats, and it's not what I need. Does any...
asked by 29.03.2017 / 17:55
2
answers

What major precautions should I keep in mind for my application to work correctly on different browsers?

I run small systems using xhtml, ajax, and php. When I code I'm testing the parts in the Chrome developer tool (Ctr + I) and phptester.net. When I finish my application, I have to debug everything again so that I can properly run Firefox and...
asked by 09.09.2014 / 23:37
2
answers

What is the .env file for Laravel 5?

What is the .env file serving? No app.php has env => env('APP_ENV','production') . What would this production be? What other string can go there? And the var APP_ENV ? What does it mean?
asked by 04.10.2016 / 20:03
3
answers

How to know how many Sundays have the months of the year php mysql

Let's say the year is: 2016  I need to know how many Sundays have the months of the year and record and result in variable php.  Reason:  I need to pass a condition, for example: if ($dom_mes == 4 ) { //CONDIÇÃO A } elsei...
asked by 21.10.2016 / 15:48
4
answers

Receive json data in PHP

I'm having trouble receiving JSON data in PHP to save to the database, and this data is sent from a python script , I already tried json_decode using the $_REQUEST variable, but without success, when I write to a .txt I can...
asked by 09.11.2015 / 12:26