Click here to Skip to main content
15,922,166 members
Home / Discussions / Web Development
   

Web Development

 
QuestionWeb parts User control Events Pin
zol_tech24-Sep-07 5:53
zol_tech24-Sep-07 5:53 
AnswerRe: Web parts User control Events Pin
Jpuckett25-Sep-07 17:38
Jpuckett25-Sep-07 17:38 
QuestionConverting a PHP HexToBin function to C# [modified] Pin
#realJSOP24-Sep-07 5:20
professional#realJSOP24-Sep-07 5:20 
AnswerRe: Converting a PHP HexToBin function to C# Pin
Guffa24-Sep-07 7:34
Guffa24-Sep-07 7:34 
GeneralRe: Converting a PHP HexToBin function to C# Pin
#realJSOP24-Sep-07 9:55
professional#realJSOP24-Sep-07 9:55 
AnswerRe: Converting a PHP HexToBin function to C# Pin
Guffa24-Sep-07 10:29
Guffa24-Sep-07 10:29 
GeneralRe: Converting a PHP HexToBin function to C# Pin
#realJSOP25-Sep-07 0:14
professional#realJSOP25-Sep-07 0:14 
AnswerRe: Converting a PHP HexToBin function to C# Pin
Guffa25-Sep-07 0:25
Guffa25-Sep-07 0:25 
John Simmons / outlaw programmer wrote:
The original question was regarding the similarity in functionality, not what the result is to be used for. So back to the original intent - does the C# version do the same thing as the PHP version?


No, they don't, as they can't. As I explained, strings doesn't work the same in .NET as in PHP, so there is no .NET equivalent of the PHP binary string.

If you want to work with binary data in .NET you use a byte array instead.

If the binary data represents encoded text, you use one of the Encoding classes to decode the data back to a string. If the binary data for example is text encoded as UTF-8, you use the Encoding.UTF8.GetString method to decode the byte array into a string.

---
single minded; short sighted; long gone;

AnswerRe: Converting a PHP HexToBin function to C# [SOLVED] Pin
#realJSOP25-Sep-07 3:37
professional#realJSOP25-Sep-07 3:37 
AnswerRe: Converting a PHP HexToBin function to C# [SOLVED] Pin
Guffa25-Sep-07 19:49
Guffa25-Sep-07 19:49 
QuestionAOL API for Calendar data? Pin
vbmithai23-Sep-07 20:00
vbmithai23-Sep-07 20:00 
QuestionCCAvenue intregation Pin
Abhishek0323-Sep-07 19:56
Abhishek0323-Sep-07 19:56 
QuestionHow the FILEUPLOAD to prevent from posting back? Pin
hifiger200423-Sep-07 7:23
hifiger200423-Sep-07 7:23 
AnswerRe: How the FILEUPLOAD to prevent from posting back? Pin
Guffa23-Sep-07 8:57
Guffa23-Sep-07 8:57 
GeneralRe: How the FILEUPLOAD to prevent from posting back? Pin
hifiger200423-Sep-07 12:16
hifiger200423-Sep-07 12:16 
GeneralRe: How the FILEUPLOAD to prevent from posting back? Pin
Christian Graus23-Sep-07 12:42
protectorChristian Graus23-Sep-07 12:42 
AnswerRe: How the FILEUPLOAD to prevent from posting back? Pin
hifiger200423-Sep-07 17:20
hifiger200423-Sep-07 17:20 
GeneralRe: How the FILEUPLOAD to prevent from posting back? Pin
Christian Graus23-Sep-07 19:17
protectorChristian Graus23-Sep-07 19:17 
GeneralRe: How the FILEUPLOAD to prevent from posting back? Pin
Malcolm Smart27-Sep-07 2:15
Malcolm Smart27-Sep-07 2:15 
QuestionURGENT: Please Help - ASP Error Pin
Azi Qaiser23-Sep-07 2:10
Azi Qaiser23-Sep-07 2:10 
QuestionVisual Web 2005 Express HELP Pin
Rocky Mt. High22-Sep-07 20:27
Rocky Mt. High22-Sep-07 20:27 
AnswerRe: Visual Web 2005 Express HELP Pin
Jpuckett25-Sep-07 17:43
Jpuckett25-Sep-07 17:43 
QuestionSafari (Mac) + innerHTML Pin
Dmitry Khudorozhkov22-Sep-07 10:16
Dmitry Khudorozhkov22-Sep-07 10:16 
AnswerRe: Safari (Mac) + innerHTML Pin
Guffa22-Sep-07 10:50
Guffa22-Sep-07 10:50 
GeneralRe: Safari (Mac) + innerHTML Pin
Dmitry Khudorozhkov22-Sep-07 10:52
Dmitry Khudorozhkov22-Sep-07 10:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.