Questions tagged as 'php'

3
answers

Merge array as PHP

I have this: $categoria_1[0] = array( 'code' => 'ALI000001', 'name' => 'Alimento > Arroz ); $categoria_2[0] = array( 'code' => 'ALI000002', 'name' => 'Alimento > Massas ); You have to leave it like this:...
asked by 08.04.2017 / 17:52
2
answers

Share the Same Session in Different Domains on the Same Server

Is it possible to share the same session between different domains on the same server? If at all possible, what can be done to achieve this?     
asked by 16.10.2015 / 07:51
1
answer

How can I make an email mask with PHP?

How do I make an email mask with PHP showing some letters, all numbers and special characters? Ex: [email protected] should look like this: stack
asked by 09.10.2015 / 20:38
2
answers

Accessing attributes and methods of instantiated class in another class

In front of the structure below: class View class Controller new View () class controllerUser extends Controller public $ user; as $usuario access from View?     
asked by 17.10.2015 / 19:02
1
answer

Help with PHP Replication Structure - PARSER - simple_html_dom.php

I am making a parser with simple_html_dom.php where I pull all the links of a certain page. I can pull the links and assign to an array, then the problem comes up: This page has a maximum display limit of 36 items per page. items i...
asked by 19.05.2015 / 15:39
2
answers

How do I submit a form inside an iframe if the page that has the iframe is redirected?

   I'm creating a page that works like this:       The person accesses a registration page, and within this page there is a iframe with the registration form. When a person clicks on iframe on sign up he redirects to another pag...
asked by 27.05.2015 / 10:59
1
answer

Alternative to http_response_code in lower versions than php5.4

You can get HTTP status in versions prior to PHP 5.4 ( http_status_code is only supported in PHP5.4 +)? I'm creating a custom error page system, it's not going to be a system for a specific project, but as a matter of compatibility...
asked by 29.05.2015 / 00:27
2
answers

Update the information on the page when making a change in the DB

Let's say I have button value="+1" on my page, and every time I click on this button an update is made to the database, the page refreshes and displays a message of success or error. This update process is simple! Only when returning from...
asked by 02.06.2015 / 04:19
1
answer

What is the maximum limit of PHP / MySQL / Nginx in a request before giving error 504 Gateway Time-out

And if possible how can I extend this time for large queries / requests?     
asked by 13.05.2015 / 17:38
3
answers

SQL query in PHP and date format

I have a function in PHP that interacts with my SQL Server. It looks like this: public function buscaRelatorioHospedagem($nome,$de,$ate){ // TODO Essa função pode ser aproveitada pra aba nova $de--; $de++; $ate--; $ate++;...
asked by 25.05.2015 / 21:09