Loading Images from PHP broken on Redhat Enterprise

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

Ok, before we start, I know this topic has been flogged to death on how to load images from a database using PHP. So, before we start, I have had this method of loading images in this way working for years. :) However, the problem I've come across has given me a major headache and can't find a solution to the problem.

So on to the problem....

I have 2 servers (setup details below). Server #1 loads the images from the MySQL database using PHP perfectly. However, Server #2, which has identical versions of Apache, MySQL, PHP and were compiled with the exact same parameters, doesn't want to even bother working. The PHP scripts just outputs a bunch of text, which I have seen before if certain headers are incorrectly built. However, there is no difference in the installation of the software, apart from the OS and that fact that Server #2's MySQL RPM was built specifically for Redhat Enterprise 4.

Server #1
================
Fedora Core 2 (fully patched)
Apache 2.0.55 (compiled from source)
MySQL-4.1.5 (RPM glibc 2.3)
PHP-4.4.1 (compiled from source)

Server #2
================
Redhat Enterprise 4 (fully patched)
Apache 2.0.55 (compiled from source)
MySQL-4.1.5 (RPM Redhat Enterprise 4 version)
PHP-4.4.1 (compiled from source)

If I export the data from the MySQL database into a file and then call it from the browser, the image shows perfectly, so we're not dealing with corrupt data. I use SQLYog to also administer the databases, viewing the BLOB field using this tool allows me to view the image stored, and it shows perfectly well.

Data returned from "httpd -l", "httpd -V", "php -v" and "php -m" show identical builds.

Has anyone come across this problem before? Also the httpd.conf and php.ini files are identical in everyway, apart from IP addresses.

Many thanks,

Kevin Smith

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux