Questions tagged as 'php'

1
answer

What is the equivalent function of window.location.href of JavaScript in PHP? [duplicate]

I want to redirect the visitor to another page so I wanted the equivalent of window.location.href in PHP     
asked by 02.10.2015 / 16:15
2
answers

Convert seconds to timestamp?

I am creating a PHP script to generate a json from a webvtt caption file, I get the start and end that are in the minuto:segundo.milisegundo format or if the video is too large they come as hora:minuto:segundo.milisegundo...
asked by 05.05.2017 / 00:14
3
answers

Select Where IN all records

Sirs, I've been looking for days to answer this question, which I think is silly, but I could not. I created a view that brings registration | Name | Title | Turn | About Us | CodTreina | Status I made this select: SELECT * FROM vw_tr...
asked by 08.05.2017 / 20:28
1
answer

Time in PHP format

I'm creating a function in wordpress to schedule events as follows: add_action( 'wp', 'prefix_setup_schedule' ); function prefix_setup_schedule() { if ( ! wp_next_scheduled( 'send_email' ) ) { wp_schedule_event( time(), 'daily', 's...
asked by 10.04.2014 / 13:56
1
answer

Doubt about POST and GET in php

I tried searching the internet, but I could not answer my question ... I started programming the web recently, although I already used post and get, I came across a situation where I got "packed". I have the page cadastrar_endereco.php, which is...
asked by 07.04.2014 / 23:00
1
answer

Date in English (en-us) [duplicate]

I have the following code in PHP: <?php setlocale(LC_ALL, "pt_BR", "pt_BR.iso-8859-1", "pt_BR.utf-8", "portuguese"); $tz_object = new DateTimeZone('Brazil/East'); $datetime = new DateTime(); $datetime->setTimezone($tz_object); $dia...
asked by 11.02.2017 / 02:31
2
answers

php Show the variable

I have a page that sends emails when one of the dates on my form is ending. Currently it only sends the name of the person who has the date to end but I want it to inform the date that is at the end. sql = ("SELECT Nome, data1, data2, data3, d...
asked by 13.02.2014 / 10:16
2
answers

How to perform insert or update of a JSON object

JSON object $postdata : { "0": { "codigo": "1", "descricao": "Bobina", "preco": "10.0000" }, "1": { "codigo": "2", "descricao": "Capa", "preco": "20.0000" } } Using MySQL...
asked by 14.02.2017 / 18:43
1
answer

What is an "output_buffer"?

Reading is answer , this question came to me. What is a output_buffer ?     
asked by 17.02.2017 / 19:47
1
answer

Automatic scrollbar

Good morning! I have the following question, I need the bar to go down to the bottom of the page as a monitoring system, I need to come back to the top and give me a refresh. Can I get this using javascript? Thanks in advance.     
asked by 13.04.2015 / 16:02