PHP Problem reading the hex values between these addresses?
<pre><code>&lt;?php
$file = 'file.dat';
$file_contents = file_get_contents($file);
for ($i = 0x000481; $i &lt;= 0x00048B; $i++) {
print $i;
}
?&gt;
</code></pre>

<p>I am creating an online file analyzer but I have a small problem. It outputs (which is the actual position the hex is in)</p>

<blockquote>
  <p>1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163</p>
</blockquote>

<p>when it should be</p>

<blockquote>
  <p>44 72 48 79 64 72 61 6C 69 73 6B</p>
</blockquote>

<p>which his hex for DrHydralisk (me). Can anyone help me output the latter or just have it strait output ASCII (but hex is fine, I can just convert it)?</p>

<p><strong>edit</strong></p>

<p>Here is an image of what I am trying to do that I think will help.</p>

<p><a href="http://imgur.com/nwenA.png" rel="nofollow">http://imgur.com/nwenA.png</a></p>

<p>Here is the file I am trying to read, its a Starcraft replay (file.SC2Replay). Just search for DrHydralisk in a hex editor and that is where I am trying to read from.</p>

<p><a href="http://www.mediafire.com/?6w8wi35q3o6ix8q" rel="nofollow">http://www.mediafire.com/?6w8wi35q3o6ix8q</a></p>
