Posts by Marcos Lopes • 111 points
4 posts
-
2
votes3
answers13726
viewsA: Error while running Composer
Missing mbstring module in your vm: Problem 1 - laravel/framework v5.2.9 requires ext-mbstring the requested PHP extension mbstring is missing from your system. You can add a PHP module in Puphpet…
-
2
votes2
answers1873
viewsA: How to pick up the strings that are in brackets?
You can use the preg_match(): PHP $atual = $ap . $dir . '/' . $file; preg_match('/\[(.*)\]/', $file, $matches); if(is_file($atual)) { echo '<li>' . $matches[1] . '</li>'; } Explanation…
phpanswered Marcos Lopes 111 -
1
votes1
answer1470
viewsA: Test connection with Phpmailer
You can use the class SMTP Phpmailer to check the connection: require 'PHPMailerAutoload.php'; $smtp = new SMTP; if ( !$smtp->connect( 'host', 'porta' ) ) { // erro ao conectar } if (…
-
3
votes1
answer871
viewsA: Calling a href page by passing the input fields of the form
You can use the method .serialize() jQuery to generate the query string valor=100000&meses=24&taxa=14.15 at the click of the button: $(function() { // Aguarda o DOM carregar…