Questions tagged as 'php'

2
answers

Apache directing two URLs to the same folder

I have 2 sf2 projects in different folders. When they access the URLs localhost/projeto01 and localhost/projeto02 m go to same location (project01 even when access / project02). I created a vhost after that to see if it solved...
asked by 27.02.2014 / 03:41
2
answers

View neighborhood according to City - CAKEPHP

I'm using cakephp in a real estate project, when I add a real estate the client selects the city, so I need to be listed the list of neighborhoods in this city .... View / add: echo $this->Form->input('cidade', array('label...
asked by 27.02.2014 / 12:57
2
answers

Error: "unexpected T_STRING" in PHP [closed]

I took an internet function to calculate the difference between the dates. I created a class to make it easier, because I'm going to use this function in other screens. PHP Version: 5.2. * Code calling the class: include("funcoes/dat...
asked by 20.02.2014 / 13:46
1
answer

Sessions with PHP

I made a session code in PHP for Login and it is not working, from this error ERR_TOO_MANY_REDIRECTS Below are the codes. <?php require_once "functions_prototipo.php"; //require_once "navBar.php"; require_once "conexaoBD.php"; if ($_SE...
asked by 06.06.2018 / 15:25
1
answer

Pass variable via GET without action

I want to pass a variable to another page, I know I can use the GET method, however if <form method="GET" action="comentario.php"> is comentario.php it does not execute the commands to insert into the database (this co...
asked by 05.06.2018 / 17:41
3
answers

Insert summary when there is a change in a PHP Array

To with a doubt that may be easy, but I have broken the head, I have a table that is generated through an array, follow the code below: foreach($grupo_arr $k => $v){ ?> <tr> <td><?php echo $num_array[$k]; ?&...
asked by 08.06.2018 / 15:10
1
answer

Generate random number and add Class to the body of the Wordpress login page

I have a problem that is simple and straight forward, but I have no idea what I'm doing wrong. The function is simple, I want to add a class inside the Body in the login page of Wordpress, I can do that, but I also want to update the page to...
asked by 05.06.2018 / 15:16
1
answer

MySQL temporary tables

I'm here to study the MySQL temporary tables, and I'm creating some temporary tables. I'm using mysqli , according to the manual , temporary tables delete after the connection is closed. But the truth is that this does not happen to me...
asked by 15.05.2014 / 17:04
2
answers

Best way to pass data to all MVC Controllers [closed]

After logging in by the controller LOGIN , a session is created with the ID of this user on the system, from that ID fetch "with all your information, the big problem is that when logging the user a navbar is at the top of the site, eg:...
asked by 22.05.2014 / 21:39
2
answers

Change the CKEditor toolbar

I'm using CKEditor on a PHP site using Composer to install CKEditor. And I set up various types of toolbar in the file config.js of it. When I change the toolbar I want in the file config.js it changes on the site, but it has p...
asked by 23.05.2014 / 18:45