Questions tagged as 'php'

1
answer

URL :: previous () returns incomplete path

As I'm studying the book Code Bright , I get errors from time to time. But this one did not find a solution in Google. When doing Redirect::to() from one route to another should be displayed the previous full address, but only appears...
asked by 23.01.2014 / 20:59
3
answers

Records with recurring dates filtered by a period

The Problem I am creating a financial system where I need to register a recurring movement, such as a light bill that repeats itself every month. In the system, this type of transaction is treated as a fixed expense / revenue. My table has...
asked by 28.08.2014 / 07:33
1
answer

jquery.iframetracker It does not work in Mozilla Firefox, can solve it?

I have a script that writes a cookie with ajax when it clicks on a Google ad (iframe), works in good Chrome .. but in firefox does not .. does anyone know why? Or if you have another solution to do the same thing I'm trying to do ... <?...
asked by 18.10.2018 / 06:13
1
answer

Long Polling performance with PHP, Mysql and Ajax

I'm developing a PHP site, and using Long Polling techniques for real-time notifications. I'm getting the script to wait 50 seconds for a response, and not getting one, in 2 seconds it asks again, to give greater turnover of connections, as t...
asked by 29.04.2015 / 21:36
3
answers

Protect folder against direct access

The user needs to log in to access a list of documents. All documents are in the "/ uploads" folder. When the directory is known, it is easy to access it, just type in the browser 'domain.com/uploads'. What can I do to protect files fro...
asked by 04.03.2015 / 12:55
2
answers

Block direct access to a directory and create condition to free access with .htacess

I have this for when: Request is not an existing file OR Request ends with .php RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} \.php$ RewriteRule ^(.*)$ http://login/sites/?request=$1 [L] I do not understand...
asked by 04.03.2015 / 16:41
1
answer

Sending files in Nginx error "413 Request Entity Too Large"

I'm trying to send a file of 2MB using Nginx, but I keep getting 413 arquivo muito grande . Version: Nginx / 1.4.6 OS: Ubuntu 14.04 LTS     
asked by 24.11.2014 / 14:53
3
answers

Read txt file for Select

I want to use a select , with the data that is inside a .txt file, created by me. Use a function in PHP. Within the file ( select.txt ) I have: teste1 teste2 teste3 And select <select name=select > &l...
asked by 19.11.2014 / 12:01
3
answers

What is. = in php?

What is .= in PHP? I'm not sure if it's a concatenation or multiplication.     
asked by 17.11.2016 / 14:49
4
answers

Removing a specific element in an array

I have the following array $input = array("item 1", "item 2"); But since it is dynamic, items can change $input = array("item 2", "item 4"); $input = array("item 4"); Is it possible to use array_splice to remove, if it exists,...
asked by 01.08.2014 / 19:36