# Php jpgs getting corrupted

**URL:** <https://forum.kirupa.com/t/php-jpgs-getting-corrupted/125311>\
**Category:** Uncategorized\
**Created:** [October 12, 2004, 1:51pm UTC](https://forum.kirupa.com/t/php-jpgs-getting-corrupted/125311 "2004-10-12T13:51:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmd](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@cmd](https://forum.kirupa.com/u/cmd)\
**Post date:** [October 12, 2004, 1:51pm UTC](https://forum.kirupa.com/t/php-jpgs-getting-corrupted/125311/1 "2004-10-12T13:51:57Z")

</div>

hey everyone,

i created an upload script to upload jpgs on my local network. i store the filename into a database. i then read the database for all the jpgs filenames, and create links from them. however, they look corrupted when i view them through IE.

when i view them this way:  
[http://localhost/lwsp/imageviewer.php?image=portfolio\_img/\_wd\_01\_2.jpg](http://localhost/lwsp/imageviewer.php?image=portfolio_img/_wd_01_2.jpg)  
the image looks corrupted

when i open the same file in ps7 or other image programs, they look fine.

anyone ever encounter this problem?

-chris
