Questions tagged as 'php'

1
answer

Why does ob_get_clean clear the memory without starting the buffer with ob_start ()?

I was testing tests one day, analyzing how functions influence memory usage, and by chance I called the function ob_get_clean() . I noticed that the function call "decreased" the memory size used by php. With ob_start() I have pr...
asked by 26.03.2014 / 17:20
1
answer

Increase login session time google with Laravel 4

Working with the Google 3.0 API. My Laravel session expires in 5 years (not to log out). But the Google session has 3 hours, ie if the system is stopped for 3 hours it logs out from Google, but not from the system in Laravel. What I want i...
asked by 25.02.2014 / 23:03
1
answer

How to use prepared statements with external variables in MySQLi

I have the following code, in which I want to use prepared statments : prepare.php : <?php include "../conex.php"; // conecta mysqli_set_charset($mysqli,"utf8"); // Transforma em UTF8 pra gravar acentos no servidor // Inser...
asked by 24.09.2015 / 00:46
2
answers

Different session in browser tabs

I'm having trouble logging on to a system. What happens is the following: I opened the browser, accessed the system URL and logged in. At this point the "X" session is created. I opened a new browser tab, accessed the URL, and logged in wi...
asked by 30.09.2015 / 13:47
1
answer

Define default value for database column in Laravel 4

How can I add a default value for a column of my MySQL table through Laravel 4? In SQL would be: create table tabelaTeste( id int NOT NULL AUTO_INCREMENT, coluna1 varchar(50) DEFAULT valor, PRIMARY KEY(id)); In Laravel I am c...
asked by 23.11.2015 / 11:22
1
answer

Login / Authentication with AngularJs and PHP

Well, I'm doing WebApp where I have a login page before accessing the app and inside the app I have some areas with restrictions. WebApp is running all right, but I ended up getting stuck in the process of logging in and authenticating....
asked by 23.09.2015 / 04:18
4
answers

Retrieve dynamic input and insert into bank with procedure

I'm having trouble inserting input data from a dynamic input. My procedure only inserts once, it follows my code where I get the data: $ddd = $_POST['ddd']; $userid = $_POST['userid']; $idusuario = $_POST['idusuario']; $telefo...
asked by 22.11.2015 / 00:10
1
answer

Uploading multiple files in PHP

I'm developing an application in PHP where import of NF-e will be done in XML format. The problem is that the client will do this import of multiple files at the same time, and I will have to take the data of each file and go inserting some...
asked by 11.02.2014 / 17:44
1
answer

Problem creating "Zend_Session"

I'm trying to create a session in Zend as follows: if (isset($_POST['login'])) { Zend_Session::start(); $session = new Zend_Session_Namespace(); $login = explode('-', $_POST['login']); $codigo = $login[1]; $banco = $admi...
asked by 24.01.2014 / 00:05
4
answers

Database structure for multi-language system

I already have a developed system, using several tables in the database. I have to start migrating the same to English and Spanish . The development part I have an idea already (not total), but I do not know how to leave it in the database...
asked by 11.02.2014 / 04:49