Posts by Daniel Tietz • 49 points
5 posts
-
-1
votes12
answers5446
viewsA: How to remove accent in upload with php?
A simpler way: function retirarAcentos($pTxt){ $pTxt = str_replace('ç','c',$pTxt); $pTxt = str_replace('ã','a',$pTxt); return $pTxt; } The example is only replacing "ç" with "c" and "ã" with "a",…
phpanswered Daniel Tietz 49 -
0
votes3
answers359
viewsA: Monetary unit with JSON
If you’re still wrong using the FormatNumber is because you may need to replace the semicolon first. Depending on the configuration of the IIS it considers the national standard for decimal…
-
0
votes1
answer616
viewsA: Asp Classic - Save page with MSXML2.ServerXMLHTTP.6.0
I’ve had problems with it and managed to create the object using one of these two forms: Set oXMLHTTP = Server.CreateObject("MSXML2.XMLHTTP") Set oXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")…
-
0
votes1
answer183
viewsA: How to authenticate access to a directory in classic ASP
Use a session. Example, right after login: Session("temPermissao") = "sim" And on the page that lists the videos you check if he has permission: if Session("temPermissao") = "sim" then (tudo o que o…
aspanswered Daniel Tietz 49 -
4
votes2
answers40
viewsQ: PHP variables with wrong values after string manipulation
I have the following code: $respostaXML = "<data-hora>2015-11-10T11:33:41.086-02:00</data-hora>"; $posTag = strpos($respostaXML,"<data-hora>"); $comprimento =…
phpasked Daniel Tietz 49