Questions tagged as 'php'

1
answer

Call PHP variable within a Javascript function

Within the .js of NivoSlider, I have the following line that calls the two sliders of the slider (left and right): slider.append('<div class="nivo-directionNav"><a class="nivo-prevNav"><img class="seta-esquerda" src="document.wr...
asked by 07.11.2014 / 00:30
2
answers

Login to a web site for the program

I have a site programmed in PHP with login and I'm making a desktop application (Windows) and I'm trying to login to it from those system on the web. My system in PHP works as follows: it creates a session in PHP and stores session-relevant d...
asked by 20.09.2014 / 23:18
2
answers

What is the purpose of unset as cast in PHP?

As of PHP 5, there is a way to cast a cast to convert a given value to NULL . Example: $teste = 'teste'; var_dump((unset)$teste); // NULL $outroTeste = (unset) funcao(); var_dump($outroTeste); // NULL I can understand that un...
asked by 12.12.2014 / 02:50
2
answers

Search for texts in DB without '/ br'

I'm working on a CMS that does text editing already in the database, it works as follows: there is a series of inputs[type="radio"] each one of them is a project, and when one of them is clicked appear 4 textareas (via Ajax) with t...
asked by 16.10.2014 / 16:13
2
answers

Request laravel does not return input file

Why can not I get the View file? I have a form that points to a route. Among other attributes, I have a file upload. This file upload is the only attribute that does not appear in request . <label for="recipient" class="control-lab...
asked by 21.12.2017 / 20:24
3
answers

How to get around an accent in mysql + Php

I have in my database words with accents and when I want to call I use this SQL below. But if a word in the database has an accent I also need to use the word accented in my search, otherwise it returns nothing. How do I get around this si...
asked by 15.12.2014 / 13:46
2
answers

Keep script running

I wanted to know if there is a way to keep a php script running internally on the server even with the browser turned off. I do not mean scheduling tasks, but maintaining a process as soon as it gets off my system. I saw in a bitcoin mining comp...
asked by 11.12.2017 / 21:31
2
answers

Add variable whenever it is called

So I would like to know if there is any way in PHP to do the following, set an ex variable: $ contatorinicio="0"; and then whenever you call it in php it will add up another EX: $ counternew = $ counter + "'"; however each time I use an echo out...
asked by 09.01.2018 / 19:54
3
answers

Protocol for documents

I'm doing a program in php, mysql and would like to generate a protocol with some argument. The protocol would be automatically generated in the system, without user interference, however it would have to be the following standards: Numbe...
asked by 18.08.2017 / 20:48
3
answers

How to do that, if the registry exists, it does update, if it does not make an insert of the same one

I'm a beginner in the forum and in php and I have a question. I have a table with id auto_increment and name is primary key. It has like me to do IF and ELSE using UPDATE and INSERT. Where, if there is name just do update, otherwise do insert?...
asked by 21.09.2017 / 20:16