Recently I recover my .php and .txt files but they are corrupted , after some researches I found they corrupted because the header is damaged .

I research again and found Hexed.it when I upload the .php file to it give me the fixed file enter image description here ,it's good but not really what I need

So any software recommendation / alternative to it ?

  • 2
    Why do you need an hex editor ? What do you mean by "header" ? Txt files doesn't have such thing... – Amessihel Jan 19 '17 at 10:18
  • "because the header is damaged" - maybe you mean the encoding of the file was changed? "but not really what I need" - so, what do you need? – MrWhite Jan 19 '17 at 20:00
  • @Amessihel I'm talking about php files . – Saber Hosney Jan 20 '17 at 4:40
  • 1
    As Amessihel suggested above, .php and .txt are both just ordinary "text files"; there is no "header". Unless you are referring to the BOM (Byte Order Mark when saving as UTF-8)? If you are seeing a few strange "symbols" then it may simply have the wrong "encoding" - most text/code editors allow you to change the encoding of a file. Simply opening and saving the document in some editors might correct the encoding. "in Ubuntu I get the file maybe damaged or corrupted" - is that an error that is specifically reported? Can you add a screenshot of a "corrupted" file? – MrWhite Jan 20 '17 at 11:29
  • 1
    This question has been also posted here: superuser.com/questions/1169070/… and here: stackoverflow.com/questions/41735970/… – Andrea Lazzarotto Jan 20 '17 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.