Questions tagged as 'php'

1
answer

Error with pagination and codeigniter

Clicking on the page link returns a NOT FOUND. <div class="scroll"> <table class="table table-hover" id="myTable"> <thead> <tr> <th><b>Nome</b></th> <th...
asked by 20.08.2017 / 22:43
4
answers

Use of & along with Operators and Functions in PHP

What is the meaning of using & with operators and functions in PHP since I checked in some libraries Example and functions this use (I am aware of the use next to variables has relation to the passing of pointers) $browser...
asked by 19.02.2015 / 12:57
0
answers

PDF Reading - PHP - Content and ID

I'm looking for a solution that consists of an automatic way of reading PDF's, basically I get hundreds of invoices and wanted a way to automate. What I've tried:    Programs that converts to txt, which is not as effective because it messes u...
asked by 25.11.2016 / 12:21
1
answer

Syntax ': value' in the array

I've seen this syntax in laravel, in the 'resources / lang' area, where authentication messages are pre-configured. And I came across the following code: <?php return [ 'throttle' => 'Too many login attempts. Please try again in :se...
asked by 20.03.2018 / 18:54
1
answer

How to convert number in billions to a smaller string of comparison?

Imagine that you have an exercise in the following aspect, I need to get an array with random integers, the largest number that is between the ranges. For example, I have an array: array(2, 8, 4); would have to sort: 2,4,8 che...
asked by 09.12.2016 / 17:52
2
answers

Best way to avoid attack by image update?

What is the best way to prevent an image attack? The attacker joins a malicious code in the image and updates the server and executes the code as if it were an image, how to avoid this type of attack?     
asked by 25.02.2018 / 17:42
0
answers

Open external videos (mp3 / mp4) with PHP

Hello! I'm using a "player" (in php) to open my external videos. But the user does not have the control of the video duration bar, he can not control it, nor return the video, nor advance, and this harms me a lot. Player php 01 $video...
asked by 19.03.2018 / 19:38
2
answers

What is EOH in PHP?

I see this in several third-party classes. Remembering that closing is usually EOH , but without <<<     
asked by 28.04.2014 / 23:44
1
answer

How do I edit and delete the data in a json file?

I am using this code to include and list the data saved in the file "user.json" wanted to saver how do I delete this data and edit it <?php $users = @json_decode(file_get_contents('users.json'), true); if(!$users)...
asked by 12.10.2016 / 04:11
1
answer

Problems with autoload

I'm starting an application by applying mvc. I created composer.json with the following autoload parameters: "autoload":{ "psr-4":{ "SOCIAL\":"vendor/SOCIAL/", "App\":"App/", "Predis\": "src/" } I ha...
asked by 12.10.2016 / 19:22