Questions tagged as 'php'

3
answers

How to sort the date?

In the database: Showingpage(inphp): I would like it to appear as follows: 03-11-2015     
asked by 19.11.2015 / 22:06
1
answer

INNER JOIN with where

I have the following tables: permissoes_users id_user id_permission permissions  id  - Permission I have a session variable where I have the id di user, I need to search the table for the id and those that have the id of the user to...
asked by 19.11.2015 / 12:51
3
answers

Error in file or character encoding

On every page of a website that I'm developing with UTF-8 encoding, defined both in charset and as editor encoding, I'm having trouble in rendering accented words, for example: The word Medical renders as Doctor . Considering that I...
asked by 21.11.2015 / 22:11
2
answers

Differences between syntaxes of namespaces [closed]

I know two ways to declare a namespace: // Comum namespace Example\Class\Method; class ExampleClass {...} // Outro, similar a sintaxe C# (classe dentro do namespace) namespace Example\Class\Method { class ExampleClass {...} } Is there...
asked by 29.06.2016 / 17:10
1
answer

What is the maximum number of decimal places allowed in the float in PHP?

I was using Psysh to do tests with float numbers. I noticed that after a certain amount, it begins to limit the decimal places. Example: $float = 1.1234567891011121314 echo $float; // 1.1234567891011 Why is this happening?...
asked by 23.06.2016 / 21:00
2
answers

SSL error with file_get_contents

When I try to open a url through file_get_contents , I'm having problems when the page is https . I do not speak of external pages, but in some libraries where the images of the application itself is opened by file_get_contents...
asked by 24.06.2016 / 20:10
2
answers

Knowing if the page is in the background

Is it possible to know if the page of my site is being visited in the background by the web surfer? Is there any code or way to know it?     
asked by 22.06.2016 / 13:16
2
answers

SQLSTATE [HY093]: Invalid parameter number problem in insert

I need to insert the following data through a form: TITLE DESCRIPTION PRICE HTML: <?php session_start(); session_destroy(); ?> <html> <head> <meta charset="UTF-8"> <title></title> &l...
asked by 17.05.2015 / 10:12
2
answers

How to echo a file in php?

I'm wanting to create a simple Email marketing server. So for this I have to get the contents of an HTML and save a variable in PHP. This is my form. <form method="post" action="email.php" enctype="multipart/form-data"> <h1> En...
asked by 20.05.2015 / 18:47
1
answer

Database to work after a few hours

Hello, in this registration system, I get the information entered and I play it in a database. include("connection.php"); require("blowfish.php"); $login = $_POST['login_cadastro']; $senha = $_POST['senha_cadastro']; $confirmarsenha = $_P...
asked by 17.05.2015 / 03:16