Posts by Gustavo Gallas • 104 points
13 posts
-
0
votes5
answers259
viewsA: Login based on email domain
If the "intruder" has access to this company’s emails, and creates a redirect, he can bypass it without any problems. Assuming it is a company with its own domain, follow some ideas: SPF check You…
-
3
votes3
answers4693
viewsA: Make Div appear 4 seconds after site loaded
You can use this code using jQuery: <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> </head> <body>…
-
0
votes3
answers868
viewsA: PHP - Sending form by e-mail
You can even send using localhost, however, this email will hardly be received by any provider due to anti-spam filters and SPF and DKIM settings. The basic function for sending emails in PHP is…
-
1
votes3
answers6510
viewsA: How to access a server via SSH without using password?
Consider that you have two servers: SERVIDOR1 and SERVIDOR2. In SERVIDOR1, generate RSA key: cd ssh-keygen -t rsa Expected result for this command: Generating public/private rsa key pair. Enter file…
-
0
votes1
answer63
viewsA: Settings . htacess - Dynamic Error Page
That’s very simple, you can do it this way: ErrorDocument 403 /403.php RewriteRule ^403.php$ erros.php?tipo=403 [L,QSA] ErrorDocument 404 /404.php RewriteRule ^404.php$ erros.php?tipo=404 [L,QSA]…
-
0
votes1
answer129
viewsA: How do I make Google not index this script?
Just add the googleon and googleoff tags. These tags tell Google not to index, not to follow, and not to create descriptions with a particular snippet of your content. <!--googleoff: all-->…
-
2
votes4
answers265
viewsA: Phpmailer without ajax
If your form is on a PHP page this is simple. You can do it with jQuery, but from what I understand, you want a simple solution. <?php if (isset($_GET['sucesso'])) { if ($_GET['sucesso']==1) {…
-
0
votes1
answer82
viewsA: Problem with Google maps when placing a point on the map
You need to load the DIV "map_canvas" before calling the script. Follow the correct code. Don’t forget to change XXXX by your Google maps API key. <!DOCTYPE html> <html> <head>…
-
0
votes2
answers3006
viewsA: Charset problem PHP + MYSQL + new server
I’ve been in the same trouble. Keep this tag in your html: <meta charset="utf-8" > And in PHP, use the utf8_encode function(). Example, considering that the $variable came from a SELECT:…
-
2
votes2
answers902
viewsA: Domain . com has more relevance than . Tk to google?
In fact, domain extensions do not interfere at first with Google’s ranking. What counts is the age of the site, reputation, backlinks and especially the content. However, . TK domains suffer a lot…
-
0
votes3
answers317
viewsA: What are the most common problems and dangers when enabling `register_globals` in php?
The Globals Register has been deactivated since version 5.4, as it put many applications at risk. With it, anyone who called a URL as for example: meusite.com/test.php? variable=value Simply could…
-
1
votes3
answers104158
viewsA: How to solve a Notice: Undefined index?
The problem is the lack of the Submit field in your form. Make sure that the form method is as POST, otherwise html by default will use GET.
-
-3
votes4
answers827
viewsA: Another option to use @ in PHP?
Usually this Undefined index error is caused by problems with $_POST or $_GET. You can execute the Extract(); command at the beginning of the code. So all variables already enter automatically,…