Redireccionar a pagina web

Mar 27, 2014 at 2:34 PM
Buenos días....

Estoy utilizando la clase PHPExcel y todo funciona perfecto, la duda que me surge es como después de guardar el excel con $objWriter->save('php://output'); puedo recargar o redireccionar a otra pagina.

Ya he utilizado js (location), html (META) y php (header) pero no funciona.

Gracias....
Apr 7, 2014 at 2:52 PM
You can't do this directly, it is necessary to tweak it.
On your main page, built a Javascript function called regularly (setInterval) that will test the presence of a cookie. In your script that creates the Excel file, creates the cookie. From the browser, the file and cookie will arrive at the same time. The browser will propose the"Save As" dialog, your Javascript function will detect the cookie; at this point, you can redirect the browser to another page in javascript.

P.S.: Express yourself in English on the forum.