Questions tagged as 'php'

1
answer

How to display jquery in php

How to display in echo of PHP jQuery? I've tried doing this and it's not working: public function InsereComentarioNoBanco($ip,$nome,$mensagem,$horario) { echo " <script> $('.nomeClas').hide(); $...
asked by 31.10.2017 / 02:07
1
answer

Protecting a route used by a single domain

I have a Laravel application hosted in a subdomain and need to allow its API (which has a single POST route) to be used only by the application hosted in the main domain. What is the simplest way to protect this route? I thought about using J...
asked by 31.10.2017 / 11:12
1
answer

Restricted file access with Git

I am recruiting new developers to work on a PHP project, and there is a configuration file that contains all the keys to the databases of my clients. How can I make this new developer only have access to the connection to the development inst...
asked by 30.10.2017 / 19:09
2
answers

Login form returning error!

I have a login form that returns the following ERROR :    You have an error in your SQL syntax; check the manual that   correspond to your MySQL server version for the right syntax to use   near 'as value FROM olmp_cadparaprova WHERE email =...
asked by 30.10.2017 / 11:22
1
answer

Problems with the query in the database (Search system)

I am trying to create a search system in db however it is returning only one result, the last address in the table (I had managed to get them all returned, however after changing the layout I went to test and did not give more, even deleting eve...
asked by 04.04.2017 / 01:14
1
answer

DOMDocument :: loadHTML () Error

Well I have the following controller where I get the information of a twitter user by username using DOMDocument::loadHTML() public function info($user = false) { if ($user === false) { Url::redirect('get');...
asked by 24.08.2017 / 00:08
1
answer

PHP - Scandir does not work [closed]

I'm having problems with scandir I can not find the directory in any way, every time I get the following Warning    The system can not find the path specified. Look at my code. I use Wamp X64, Windows 10 and PHP 5.6: <?php...
asked by 25.08.2017 / 03:34
2
answers

check user type for php access

I'm trying to create an admin panel. Ba table of the bank already created the field type, where if it is 1 is normal user and 2 administrator. What is the best method to find the type of user in the bank? Follow the code that I have already d...
asked by 27.08.2017 / 18:22
1
answer

Install PCNTL on Ubuntu 16.04 PHP7

I have a GPS application that your manual is written for PHP 5, but I would like to use PHP 7. I was able to install with no problem, but when I have to install PCNTL I can not. In PHP 5 the procedure is as follows: apt-get instal...
asked by 09.06.2017 / 03:38
1
answer

Why does not return any results in PDO fetch collum?

I made a query and I want to use fetch collum according to a response from the other site; $query = $pdo->prepare("SELECT b.**, b.**, b.**, b.**, b.**, b.**, b.**, b.**, b.**, b.**, b.token FROM tbl_contas AS b"); $query->execute();...
asked by 08.06.2017 / 17:07