Questions tagged as 'php'

1
answer

Conversion of words into numbers and vice versa [closed]

Is there any way to turn entire words into unique numbers so that I can do the reverse process if necessary? As if it were a unique identifier of that word, type Palavra -> Numero -> Palavra oi -> 09368 -> oi     
asked by 10.05.2016 / 19:36
2
answers

Database overload when deleting rows with relationships?

Good afternoon everyone! I have a question, and I would like to hear your comments. I'm building a system in php + laravel . I have relationships between tables, for example: Users->Roles .    It is assumed that there are...
asked by 18.05.2016 / 22:10
1
answer

Protecting my videos

I apologize for my lack of knowledge, but I'm not sure where to start researching. The problem is that I use jwplayer to play my videos, I host them on my own server and would like to create a temporary link, similar to what youtube, vimeo and a...
asked by 12.05.2016 / 00:01
1
answer

form_validation Codeigniter using GET

Is it possible to validate an input of a form using the GET method? When I define the form's method is POST the form_validation works but when I define it's GET the validation returns me false. The code is basically this: HTML <form me...
asked by 19.05.2016 / 00:12
2
answers

How to split an array and write to the database in PDO

I have this code: <?php foreach ($_POST as $dados =>$value) { $list = explode('_', $value); echo '<pre>' . print_r( $list, TRUE ) . '</pre>'; ?> It generates array output: Array ( [0] => Manoel da S...
asked by 18.05.2016 / 19:53
2
answers

PHP Works Local (XAMPP - PHP 5.5.33) but does not work on Server (PHP 5.5.31)

I'm making an API, and locally it's perfect. The problem is when I test it on the server. I created it in a subdomain, example: link And I'm testing on another subdomain: link Locally the addresses look like this: API: link Test:...
asked by 14.03.2016 / 20:46
2
answers

Back to Previous Page when you get Error

Hello, I have an e-mail newsletter code and when I enter the wrong email address or give some error, I would like instead of redirecting to the registration.html page, it redirects to the previous page, how can I do this? The PHP Code looks l...
asked by 16.03.2016 / 12:40
3
answers

Is there any way to make asynchronous requests to a url through PHP?

I need to make several requests (about 200 requests) for an external url, but I do not want php to "wait" for the end of the request. Remembering that I want to avoid using functions like exec and such things that run on the command li...
asked by 24.03.2016 / 17:27
1
answer

Multiply SELECT value with INPUT value

How could I multiply the value of one SELECT with one INPUT and show it in another INPUT? <!-- MULTIPLICAR ESSE SELECT --> <select name="papel"> <option value="">Tipo Papel</option> <?php $query = $conn-&g...
asked by 11.08.2018 / 22:42
1
answer

Laravel find () function giving error

When I launch a search with an id that exists in the database, it works normally.    Laravel 5.6 public function findProduto($id) { $produto = Produto::find($id)->with('imagemgame')->first(); return $dados_check = $produt...
asked by 25.08.2018 / 03:17