Questions tagged as 'php'

1
answer

Delete php session when closing browser

I'm using CodeIgniter to develop a project that involves a restricted area. I am using session to store the data of the user that is logged in. I need to close this browser when I close the browser, remembering that I am using CodeIgniter...
asked by 19.12.2017 / 20:47
2
answers

Do not display Warning of foreach

Example, I have 2 warnings : ksort($var); foreach($var as $v)...;    Warning: ksort () expects parameter 1 to be array, integer given in   Warning: Invalid argument supplied for C: \ www \ test.php   foreach () in C: \ www \ test.php on li...
asked by 01.08.2018 / 13:18
2
answers

Encryption with bcrypt + random salt

I have a simple question about encryption using bcrypt with salt. When in old projects I used md5, to verify in a login form if the user entered the correct password and to authenticate, it was usual to take the value that the user typed and...
asked by 26.09.2017 / 19:59
2
answers

How to make a listbox where I can select more than one value?

I want to make a listbox, where the user can select several options, but using the select multiple, I have to hold ctrl, but this is not ideal, many people will not know that. Can anyone help? <div class="form-group">...
asked by 07.09.2017 / 05:19
1
answer

I can not remove an item from the database

I'm trying to remove an item from the database, but it is not removing it. <form action="removelicita.php" method="post"> <input type="hidden" name="id" value="<?=$licitacao['id']?>"> <butto...
asked by 11.09.2017 / 15:29
1
answer

Access dropbox folder on Android

Is there any way to access the dropbox folder? I have the following problem, I am developing a webapp that will work locally on tablets of an event, so for this I am using the AndroPHP app and I would like my apache directory to be a dropbox...
asked by 08.04.2015 / 21:00
2
answers

Travers arrays with dates and compare to the current date

I need to create a method that compares two or more arrays if the current date is greater than the due date (date_paymentX) that exists in those arrays and returns how many occurrences there are. Method: public function payments() { $da...
asked by 09.08.2017 / 17:41
1
answer

Anyone has an idea how google drive unzip file in real time

I wanted to understand and know if there is any library or strategy to do the same thing Google Drive does with compressed files, to allow you to navigate the files inside the files without having to unzip them. Does anyone have any idea how...
asked by 24.08.2017 / 14:59
3
answers

How to reference the first loop from the second in a looping of loops?

In PHP, how can I reference the first for from the second, as in the example below? for ($i=0; $i < 10; $i++) { for ($j=0; $j < 10; $j++) { // Quero que esse afete o primeiro 'for' e não o segundo if ($j ==...
asked by 09.08.2017 / 19:01
1
answer

What is the difference between service apache reload and restart?

What's the difference between them and which cases to use? service apache2 restart and service apache2 reload     
asked by 17.11.2017 / 15:11