Questions tagged as 'php'

0
answers

Friendly URL works and for

Well, I have a problem with .htaccess e a URL amigável , it works, but sometimes it stops and it works again. (Rewrite module is active, use PHP 7). And I have one more question, I have a folder in the root called view , inside it...
asked by 13.07.2018 / 06:39
1
answer

Authenticate in another PHP / Laravel application

I am logged in to this PHP application, in this application has a list of users as shown below: ByclickingthisLogarbuttonIwanttoberedirectedtoadashboardthatisinthesamedomain,butusesLaravelandrequiresauthenticationasshownbelow: I have the a...
asked by 18.07.2018 / 16:41
1
answer

Datatable slow loading many results

I have a database with about 500 records with system requests, but I need to display those records in the DataTable for better organization and search. When loading the page it takes a long time to display the data in the DataTable. PHP:...
asked by 07.06.2018 / 15:16
1
answer

JSON for PHP + MYSQL

My client sent me this JSON so I can loop and write the data in Mysql. I just can not get it because it's different from what I work on; Someone can give me some hint and what is the difference from one format to another. Error presented i...
asked by 06.06.2018 / 16:58
0
answers

Downloading large PHP files?

With the following code, I get a file stored in Google Drive: $response = $service->files->get("id-do-meu-arquivo", array('alt' => 'media')); $content = $response->getBody()->getContents(); The variable $content , now c...
asked by 09.05.2018 / 18:24
0
answers

Prevent grouping of PHP sessions

I have a system in PHP that uses sessions to store the items, I noticed recently that when the user simultaneously opens 2 browser tabs when completing the request the system groups or understands that the session is only one, what is the best w...
asked by 09.05.2018 / 19:29
0
answers

Set language in index.php

Good morning! Home I'm trying to develop a very simple system, contains 5 different languages, this part works fine, the problem is that when I enter for the first time on the site, in this case the file is the index.php , it shows the fol...
asked by 05.06.2018 / 10:37
1
answer

Skip line in XML with PHP

I'm trying to insert values into xml using php, and wanted to skip line before inserting if the file already exists so it does not overwrite what's already there. However the FILE_APPEND of file_puts_content does not work, the links I found on t...
asked by 06.06.2018 / 04:23
2
answers

How do I get the position of a user individually in a rank, if in the database I only have your score?

With the code below I can display all users, because I put DESC and variable $num and it increments the placement with $num++; . But what if I want to get the / rank from the guy who is logged in ($_SESSION) and n...
asked by 30.04.2014 / 18:24
0
answers

Autoloading does not recognize use command, after a submit?

<?php namespace App\Controller; class Action { function mostrarDado(){ echo "Mostrando Dados...."; } } <?php $paramUser = $_GET['usuario']; $paramSenha = $_GET['senha']; var_dump($paramUser); v...
asked by 15.10.2018 / 15:02