Posts by Gustavo André Richter • 782 points
18 posts
-
1
votes1
answer74
viewsA: How do I use Redirectmatch to redirect to the other page?
Hello, you can create a file .htaccess within your public_html with the following redirection. Redirect /index.html /main/ or... Depending on your project Redirect /index.php /main/ Source:…
-
2
votes1
answer213
viewsA: Does anyone know how to use php’s flush(); function on a Wordpress site?
You can make the following change in the code: function simple_function_2() { for($i=1;$i<=10;$i++){ flush(); echo str_pad("processing...<br>", 4096); sleep(1); } } add_shortcode(…
-
0
votes1
answer371
viewsQ: You need to use ( ! defined( 'ABSPATH' ) in Wordpress
At the end of studies I am creating a Wordpress theme, in completion phase. Throughout creation I came across the following code, we call "code1": if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if…
-
5
votes1
answer1005
viewsA: How to use HTTP2 on the Apache server
How to enable HTTP/2 on the Apache web server To enable HTTP/2 in Apache, you will need to meet the following requirements: First, you need to enable HTTPS on your server. All major browsers allow…
-
2
votes1
answer46
viewsA: Bootstrap responsiveness on large screens
Two shapes that comes to mind now to "adjust" that would be: 1st Since you are using Bootstrap 4 put all your code inside a <div class="container-fluid"> not forgetting to close the…
-
4
votes1
answer180
viewsA: What is the difference between the ending, Finally and finish in Java?
final: final is used to apply constraints on class, method and variable. A final class cannot be inherited, the final method cannot be replaced and the end value of the variable cannot be changed.…
-
1
votes2
answers189
viewsQ: Get the sum of last week’s records
Hello, I am studying Laravel I’m using the version 5.4, I need some help 'cause I’m not getting back the total records from last week’s database, I managed to return the total, and the total of the…
-
1
votes1
answer145
viewsA: Error while trying to create a Migration in the Laravel
1- Create the database, 2 - These are the files of your project: 3 - Open the file . env check that the database data is correctly configured. If you are using mysql it looks like this.…
-
1
votes1
answer460
viewsA: How to Upload Shared Server Api
Try to do the following: if Voce at the time of installing Laravel gave your project the api name, the folder to which you should paste the files should be like the example below.…
-
1
votes2
answers103
viewsQ: "Error" upon completion of CSV import
Good afternoon, I created a code in PHP to read a . CSV containing Name, Email and IP. The goal is to consult the Geolocation API of http://ip-api.com/ and return me the state corresponding to the…
-
1
votes2
answers38
viewsA: Dropdown problem in the menu
Just add position: absolute; This is how: .active:hover ul { display: flex; } It’s gonna be like this: .active:hover ul { display: flex; position: absolute; } Upshot:…
-
1
votes2
answers88
viewsA: How to make the page title in blue?
Unfortunately, the title is shown in the browser title bar and NOT in the page on which the styles are applied. Therefore, if you set the style in the title tag, it will have no effect at all.…
-
1
votes1
answer37
viewsA: Email body in utf-8
Try to add: $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; https://www.w3schools.com/php/func_mail_mail.asp…
-
1
votes2
answers443
viewsA: PHP email message in UTF-8
Hello try instead of: $subject = '=?UTF-8?B?'.base64_encode("$subject").'?='; use: $subject = "Content-Type:text/html; charset=UTF-8\n";…
-
1
votes1
answer56
viewsA: Receiving blank emails with PHP
hello, try something like this: <form class="contact-form" action="form.php" method="post"> <input type="text" name="name" placeholder="Nome"> <input type="email" name="mail"…
-
1
votes2
answers335
viewsQ: Validation of a form
Hello, I searched and did not find well what I was looking for for my Laravel project so I need help! I have a simple form that receives the name, email and a message from the user, but I would like…
-
1
votes0
answers27
viewsQ: Hide "<div>" Popup using Cookie
I have a web site which displays a welcome video, I want to hide a div which is a Popup which I created which displays the video, I want to hide this div using cookie so that it does not appear…
-
-2
votes1
answer89
viewsQ: Optimization in PHP PDO code
hello, I’m studying a way to increase a value before storing in the database but I need help, searching Google for parts I was able to assemble the code and yes it works, goal is to update a value…