Connecting Tech Pros Worldwide Help | Site Map

image from DB + new server with magic_quotes_gpc: on

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 04:59 AM
Al
Guest
 
Posts: n/a
Default image from DB + new server with magic_quotes_gpc: on

Hi

I mode a site from to a new server where trere is:

PHP Version 4.3.2
and
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off

since i moved the site i can't get images from DB correctly

images are stored in a "mediumblob" field

if i use mysql front to view images in DB i see them correctly, but
when i retrive them by php they are messed up

i store images with

INSERT INTO file (tab,mime,x,y,file)
VALUES
('news','$mime',$x,$y,'".addslashes(fread($fd,$use rfile_size))."')

and i get them with

Header("Content-type: $mime");
$img_from_db_out = $query->getField("file");
echo $img_from_db_out;

Thanks

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.