Questions tagged as 'php'

2
answers

Search mysql database with php with multi-level

I am trying to perform the following query in the database, through an html form, but in php I am only able to fetch all the data from my table. In case the user would choose the type of filter and would be made a query in the database, I am usi...
asked by 18.05.2015 / 17:48
1
answer

Prevent insertion of Zalgo Text into Inputs

I have a Aplicação Web that has a user registry, I would like to know how do I prevent the user from sending as a name, email (cadastral data) a Zalgo Text .    Zalgo Example Text: ̵̵̵̵̵̴̷̷̢̢̢̢̢̡̢̢̥͍̫̻͚̦͖͇͖̩͙͖̩͙̼̙̳̼̙̳̼̙̳̟̗̹̻̜...
asked by 22.05.2015 / 14:54
1
answer

Prevent undue access in the RESTful API

I'm developing a RESTful API with Laravel PHP that will be consumed by an Android application, the API is consumed only by the application, there is no web system. I am learning RESTful, and during the learning I was left with a doubt. I get...
asked by 21.05.2015 / 10:03
1
answer

Allow access to other directories with .htaccess

I have a Wordpress site installed in the root and a work order manager in a folder called /Sistema . The problem is that when I type www.meudominio.com.br/sistema/ , you are redirecting to page 404 from Wordpress. The .hta...
asked by 06.02.2015 / 00:54
1
answer

header using relative address and "../" does not work

How do I make a header for a page that is one level above, eg: I have the following tree of directories, I want to make a header of validarLogin.php for welcomePage.php? I tried to use a ../ to access the views folder and it did not work. cont...
asked by 06.02.2015 / 16:27
1
answer

How to access an array inside a method in a class?

I would like to know how to access an array using a method. I would like to know that you guys think my code is right what I'm trying to do? class RegisterPostType { public $name; public $singleName; public $addNew; public $...
asked by 09.02.2015 / 18:59
1
answer

URL Friendly by title

Good evening people, I am here implementing the friendly url system on a website and I already have to work for some page, I am now blocked in the file view_establishment which is what shows the establishments in this case I have for example...
asked by 08.02.2015 / 02:28
1
answer

Regular expression for href and www / https / http links

Good morning, I have 2 regular expressions, where one serves to get the URL of any href , and another that I need to sort out that would only be to get the URL's that are not within href , that is, only the URL's entered with www...
asked by 06.02.2015 / 11:13
2
answers

Does not show users name in Jquery alert

I want to access the text content inside the div and show it in an alert (), but for this I have a list of users selected from the database, I did a little trick to add a counter in each div class that contains the user name, see example:...
asked by 08.02.2015 / 20:16
1
answer

Loading two classes with the same name

In a legacy system, I have situation that 2 classes have the same name. A legacy and a recent version (using MVC framework). There are cases that in the new version of the class I need to call the same (old) or another class from the old system....
asked by 20.01.2015 / 17:43