Questions tagged as 'php'

4
answers

Div inside another broken div

How to insert a div into another div without any of them breaking the line. I want to do it this way because I'm developing a clan website and in the index you have to have the login button or the registry, I did that but when I ran the html...
asked by 27.11.2015 / 19:30
3
answers

How to get the last days of the month in PHP

I want to get the last months of the month from today's date. Here is the code for today's date: $datee= date("d/m/Y");     
asked by 29.10.2014 / 23:27
3
answers

How to "undo" any text at the time of "echo" and turn each word into a link

I made a database, and in that database I registered a phrase, I would like that when I was to echo the phrase, each word would become a single link. Ex: recue o código em 4 espaços The sentence is simple, but I would like each word to crea...
asked by 22.11.2014 / 20:44
2
answers

Header trampling Echo

I'm trying to use the following code: echo "<script>alert('Erro. Tente novamente.');</script>"; $insertGoTo ="pág.php"; header("Location: $insertGoTo"); However, running code header() runs over echo and the aler...
asked by 25.08.2014 / 23:41
4
answers

Access website in local network through my Android phone

I made a site in PHP and MySQL responsive and would like to access it on my Android phone by localhost, I know I have to put my IP in the browser of the mobile phone but when I access it it appears the following error:    Forbidden You do n...
asked by 10.12.2014 / 23:41
2
answers

Percentage of hours calculation

How to calculate percentage between two schedules? I tried it and it was not: $tempo_total= "00:10:00"; $tempo_realizado= "00:05:00"; $percent= round((strtotime($tempo_realizado)/strtotime($tempo_total))*100); It does not work.     
asked by 04.11.2014 / 19:39
3
answers

Should I use routes or controllers in Laravel 4?

I'm a beginner in Laravel and I have questions about using controllers , I read several examples / tutorials and I see the vast majority use the routes for example for a form request , to display pages, even database queries. I'm developin...
asked by 25.12.2013 / 16:54
4
answers

How do I send transactional e-mail to AWS?

I use an Ubuntu server in AWS and I can not run the PHP mail () function. Do I need to install something on the server or configure something in the AWS Console?     
asked by 29.01.2014 / 21:08
2
answers

How to validate the structure of a text file in PHP?

I created an admin space where users deposit .txt files into my FTP . I would like to impose a format. Example The whole file must contain two three columns separated by a semicolon. Example : valid_file.txt    name, height, na...
asked by 27.11.2017 / 15:13
2
answers

Displaying authenticated user data in view

I have a problem that I think is very simple ... I need to show the username logged in my views ... How do I do this? this is one of the views @extends('layouts.template') @section('body') <h3>List_Lists</h3> <p> <...
asked by 18.12.2013 / 22:09