Questions tagged as 'php'

2
answers

PHP application does not log in to the facebook app by localhost

I'm developing a PHP application that returns the facebook user list of friends. Although I specified the domain and the site URL in the Facebbok app I created, I get the following message:    The URL you entered is not in the release list in...
asked by 13.01.2016 / 16:28
1
answer

How to structure a mySQL database from a JSON

I have the following structure json test: { "CE": { "Fortaleza": [ { "nome": "Teste", "email": "[email protected]", "cel": "(xx) xx-xx" }, { "nome": "Teste", "email": "[email protected]",...
asked by 12.01.2016 / 20:11
1
answer

How to use Angular JS and Laravel 4 without conflict with the blade?

I would like to know how do I configure Laravel 4 to use AngularJs without conflict with the Blade, since the interpolation tags are the same?     
asked by 17.02.2016 / 12:04
2
answers

Is it possible to instantiate a class without calling the constructor in PHP?

Is it possible to instantiate a class in PHP without the class calling the method __construct ? Example: class Test { public $chamado = false; public function __construct() { $this->chamado = true; } }...
asked by 04.12.2015 / 12:37
1
answer

Global Custom Variable

In this question here , I explained that I was afraid to save my settings in the $GLOBALS variable because it transforms my settings into global values, so the guy answered me that he had no problem, and then asked me for the comments if...
asked by 08.12.2015 / 17:24
1
answer

Categories tree in MongoDB, how to model?

Good night, guys. As MongoDB changes a lot of our way of modeling a database, I came across a question that may be half-beast. I'm doing a Restful API using Lumen and MongoDB as a database, and I want to create a collection of product cate...
asked by 07.10.2015 / 04:49
1
answer

How to guarantee single access to each user?

How can I ensure that when a user is logged on, they will not allow more connections to the login and password , bearing in mind that if the session expires, login and password links? I've been reading Know if user is connected PHP a...
asked by 07.11.2014 / 16:21
1
answer

Is it possible to create classes with two constructors?

I'm doing my PHP database connection class using the mysqli_ API, and I came across the fact that I can not put two constructors in the same class. The idea is to use previously defined constants if nothing is passed as an argument....
asked by 21.10.2014 / 12:34
2
answers

Controlling Serial Port using Web Application

I need to communicate my system with the serial port of the Client computer, the detail is that with PHP I can use fopen , but I do not want to access the server's serial port, but the client's port. I thought about using a plugin, ei...
asked by 14.11.2014 / 12:05
1
answer

Remove file extension, not to be seen by the user

How would I make the file extension not seen by the user? Example As soon as the user finishes the registration, it will be directed to the confirmacao.php page, but would like the .php extension not to be visible, only co...
asked by 05.12.2017 / 12:34