Hmm. I moved the code to another vanilla f9 machine and it works. I also noticed the failure is a sequenced, repeatable one - every 5th image fails.<br><br>bad ram is suspect now. The machine has a recent upgrade to 4GB but is running 32-bit and only can access far less than it should. I expect around 3.5GB not less than 3GB. The video is only hogging up 256MB.<br>
<br>It was noticeably "hanging" for a few seconds every 10-15 minutes or so last night. The free -m check looks _wrong_ for x2 2GB sodimms...<br># free -m<br> total used free shared buffers cached<br>
Mem: 2659 1636 1023 0 152 829<br>-/+ buffers/cache: 654 2005<br>Swap: 1791 0 1791<br><br><br><br>Time to find my MicroCenter receipt...<br><br>
<div class="gmail_quote">On Wed, Nov 26, 2008 at 11:57 AM, James Sumners <span dir="ltr"><<a href="mailto:james.sumners@gmail.com">james.sumners@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
echo '<img src="../images/I/' . $ID . '/' .<br>
htmlentities($row1['FileName']) . '" alt="">';<br>
<br>
You need to quote the array index if it is a named index. The call to<br>
htmlentities() should fix any problems with odd file names (spaces,<br>
etc.). Other than that, there is nothing you have shown us that would<br>
cause PHP to parse the image as code. You are merely working with<br>
text. If you are having a problem with the image being parsed as code,<br>
the culprit is in another block.<br>
<br>
2008/11/26 Jim Kinney <<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>>:<br>
<div><div></div><div class="Wj3C7c">> echo "<img src=\"../images/l/$ID/{$row1[FileName]}\" alt=\"\">";<br>
><br>
> where FileName is the array descriptor and $row1 is the dataset from the<br>
> query.<br>
><br>
> It works fine for most jpg's but not for all.<br>
><br>
> 2008/11/26 David Tomaschik <<a href="mailto:david@tuxteam.com">david@tuxteam.com</a>><br>
>><br>
>> How are you handling the file? A code snippet might help.<br>
>><br>
>> David<br>
>><br>
>><br>
>> 2008/11/26 Jim Kinney <<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>><br>
>>><br>
>>> Why does PHP try to eval a jpg file?<br>
>>><br>
>>> I am using php to build a web page (duh!). The images are placed based on<br>
>>> a database lookup for the images file name. Apparently, once php gets that<br>
>>> file name it parses it as more php code. So any jpg with a ?> or other php<br>
>>> indicator character pattern is not displayed and my httpd error logs file<br>
>>> with "PHP Warning: Unexpected character in input: '\x07' (ASCII=7) state=1<br>
>>> .." messages.<br>
>>><br>
>>> I _KNOW_ php can do this properly as a gazillion sites do this all the<br>
>>> time.<br>
>>><br>
>>><br>
>>> ?????Puzzled?????<br>
>>><br>
>>> --<br>
>>> --<br>
>>> James P. Kinney III<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Ale mailing list<br>
>>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Ale mailing list<br>
>> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
>> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
>><br>
><br>
><br>
><br>
> --<br>
> --<br>
> James P. Kinney III<br>
><br>
><br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
</div></div>James Sumners<br>
<a href="http://james.roomfullofmirrors.com/" target="_blank">http://james.roomfullofmirrors.com/</a><br>
<br>
"All governments suffer a recurring problem: Power attracts<br>
pathological personalities. It is not that power corrupts but that it<br>
is magnetic to the corruptible. Such people have a tendency to become<br>
drunk on violence, a condition to which they are quickly addicted."<br>
<br>
Missionaria Protectiva, Text QIV (decto)<br>
CH:D 59<br>
<div><div></div><div class="Wj3C7c">_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III <br><br>