Questions tagged as 'php'

1
answer

How to filter by cities States in Laravel?

I made a filter in laravel and it works perfectly but nevertheless it brings all the cities. It does not bring the specific cities of that state. I do not know if this filter has to go there in the laravel controller, how does it work for jquery...
asked by 04.10.2017 / 15:45
1
answer

Problem using $ _SESSION in PHP 7.1.10

I have two servers running PHP, one in the 5.4.45 version and another 7.1.10 . When running the files below in the same url, only the older version of PHP shows the values of the "Test" session. In the 7.1.10 version the Array is empty....
asked by 24.10.2017 / 03:41
1
answer

Array grouping hierarchically PHP / MySQL

I have the following structure in a table in the database. My intention is that when I make a select * from on it I can interact with the values so that I have an array in the hierarchical style. That is, whenever there is an idFather, th...
asked by 06.06.2018 / 12:20
1
answer

Performs function x minutes after submitting form

Good afternoon, good people, there was a problem to solve on a site, something that had not yet moved. It is as follows, on the page I have a form where the person can register. By registering, I'll send you an email confirming this registrat...
asked by 13.07.2015 / 22:54
1
answer

Closure Compiler JS - CSS Transform into a bulk process

Google has two tools for compilar/minificar optimizing JS and CSS files, Closure Compiler JS and Closure Compiler CSS . To run the build process I can do the following: java -jar compiler.jar --js hello.js --js_outp...
asked by 07.07.2015 / 15:52
1
answer

What are the advantages of using SplFixedArray instead of an array?

What are the advantages of using SplFixedArray instead of an array? What are the advantages of setting a value for an array (in PHP)? Example with array : $arr = array(); $arr[0] = 'Stack'; $arr[1] = 'Overflow'; $arr[2] = 'blabl...
asked by 10.07.2015 / 13:55
2
answers

How to check if a class is using a Trait?

How can we tell if a class uses a Trait? For example: trait Setter { protected $vars = []; public function __set($key, $value) { $this->vars[$key] = $value; } } class User { use Setter; } $user = new User; if ($...
asked by 08.07.2015 / 18:13
1
answer

php code is commented on in html

I'm creating a captcha in a registration form, and I'm calling the image with a php command, but the captcha image does not appear on the form, and when I enter the browser console the php code is commented out. Code in the editor looks like t...
asked by 08.09.2015 / 18:10
2
answers

htaccess hide model parameters MVC [duplicate]

I have the following URL: http://192.168.1.67/plays/mvc/index.php?route=profile&user=mikas.28 Where route = PAGE and user = USERNAME.USERID I have the following htaccess Options -Multiviews RewriteEngine On RewriteBase /...
asked by 11.09.2015 / 16:03
1
answer

Delete repetitions within the While

I have a search that takes the 3 most relevant results in my DB, and then I separate the categories of those 3 results into an array within a While, so it looks something like: while($x = $x->fetch()){ $array = explode(',', $x["categoria...
asked by 11.10.2016 / 19:31