Posts by Diogo Medina • 559 points
5 posts
-
5
votes2
answers705
viewsQ: How to calculate hash?
How do I calculate the hash of a torrent file with PHP? I’ve used the class BEncoded and it worked, but I wanted to know how it works.
-
22
votes4
answers13723
viewsQ: Hide Javascript code
I’ve been trying for a while to find out if there is any way to hide the Javascript source code from direct access. Is there any way to do this?
javascriptasked Diogo Medina 559 -
3
votes1
answer419
viewsQ: How to submit all form fields with $.post?
I have a form with 2 fields, User and Password. $.post('recebe.php',{ `Nome:'Meu Nome'` `Senha:'Minha Senha'` },function(data){ alert(data); }); Is there any way to take the name and value of inputs…
-
2
votes1
answer182
viewsQ: Using variable as attribute name when making $.post
How do jQuery consider the NomeCampo as variable and not field? var NomeCampo = $(this).attr('name'); var ValorCampo = $(this).val(); $.post(FormAction, {"NomeCampo":ValorCampo}, function(data){…
-
13
votes8
answers75484
viewsA: Error - "Cannot Modify header information - headers already sent"
I had this same problem, you’re probably using the header() within a include, to solve this just put ob_start() in index.php at the beginning of the code.…