Questions tagged as 'php'

1
answer

How to use CHARSET correctly in AngularJS

I'm starting in Angular and I'm having a basic question .. When I pass data from one form to another presentation screen, the accented characters are being presented all messed up. Please help me to identify why the script below is not working....
asked by 26.08.2016 / 18:00
1
answer

Fomulário inside form php / ajax / js

At first glance, the title already shows the error, but this is the process I need but I have no idea how to do it. Given a simple form for example: <form method="post" action="trata_form.php"> <input type="text" placehold...
asked by 22.08.2016 / 22:32
1
answer

Reload content while giving Submit

I need to load all the content defined in the database query every while and fill in the fields and give the submit, it will write to the bank and reload only that loop bringing me the filled bank data again. So when you are posting information...
asked by 25.08.2016 / 13:30
2
answers

User Registration in Laravel

I'm starting with laravel about 2 weeks ago and it's automatically raining with doubts. I have a Registration form with the following button below: <button type="button" class="btn btn-primary" id="cadastrar-usuario"> <i class...
asked by 26.08.2016 / 16:49
1
answer

Is it possible to bypass a regular expression?

I'm reading a bit about regex for some validations and wanted to know if there is any way to circumvent some rule, for example: $rule = "/[^A-Za-z0-9]/"; I found this to validate alphanumeric fields, is there any way to circumvent this and...
asked by 25.08.2016 / 04:21
3
answers

How do I find out the length of an audio through PHP?

I have a system where the user uploads an audio file. I need to save in the database some information from this audio file, such as the file size on disk and the duration. These files can be in a variety of audio formats. I already know th...
asked by 22.08.2016 / 14:56
2
answers

How can I execute this query with Laravel 5?

How would I run the following query in Laravel 5: SELECT *, (SELECT COUNT('anuncios'.'cat-id') FROM 'anuncios' WHERE 'anuncios'.'cat-id'='categoria'.'cat-id') AS 'cat-total' FROM 'categoria' ORDER BY 'cat-nome' ASC     
asked by 23.03.2016 / 03:44
3
answers

How to find the base url of Laravel?

I remember that when I used the Codeigniter framework, I could figure out which was the base url of the application, simply calling base_url() . In Laravelle 3, I used URL::base() . But now, in Laravel 5, when I call URL::base(...
asked by 24.08.2016 / 15:40
1
answer

How to get a certain variable json

<script type="text/javascript"> $(".addTrack").live('click', function() { $('.playerTocador').css('display', 'block'); var mp31 = $(this).attr("data-servidor"); var session = $(this).attr("data-session"); //$('.terra').load(...
asked by 28.03.2016 / 17:59
1
answer

a message appears when the connection drops

Colleagues. I have a web-based system developed in PHP, but I would like a message to appear like Outlook and Facebook when the connection goes down. In PHP I did the following: if(!$sock = fsockopen('www.google.com.br',80,$num,$error,5)){...
asked by 26.03.2016 / 22:49