Posts by Felipe Gabriel • 101 points
7 posts
-
1
votes2
answers312
viewsA: Remove string after "dot" on a number
var str = "123.33"; var res = str.split("."); alert(res[0]); res[0] = 123
javascriptanswered Felipe Gabriel 101 -
0
votes1
answer61
viewsA: Eregi_replace for preg_replace
setlocale(LC_ALL, 'pt_BR.UTF8'); function toAscii($str, $replace=array(), $delimiter='-') { if( !empty($replace) ) { $str = str_replace((array)$replace, ' ', $str); } $clean = iconv('UTF-8',…
-
1
votes1
answer492
viewsA: Problems with phpMyAdmin Uolhost
I believe that the UOL Host must free the remote access (if they allow it) for you on your user, if you have access with necessary privileges, you can set the remote access by running the following…
-
1
votes1
answer869
viewsA: Dynamic subdominio with htaccess and php
Hello, this is very simple, using wildcard *, see if you can help: https://brasilwork.com.br/tutoriais/como-criar-um-subdominio-wildcard-curinga-cpanel/…
-
2
votes7
answers22208
viewsA: Is using MD5 the safest way to encrypt passwords in PHP?
MD5 md5 generates an alpha-numeric string of 32 characters, no matter if you are generating the md5 of two letters or a text of 20 paragraphs... The generated md5 will always have 32 characters.…
-
1
votes2
answers1075
viewsA: How to apply style only to modal (Bootstrap)
You must use !important .modal { background-color: red !important; color: white !important; border: 4px solid #000 !important; }
-
1
votes2
answers316
viewsA: Dedicated server X VPS. How to know which one fits a certain situation?
Well, first I’ll tell you the differences: Dedicated Server: Dedicated Servers are physical machines, fully dedicated with high performance hardware to handle high demand. VPS: A fractional…