Apache and php4-gd no images
I have implemented a web app that use php and gd. I first tested it on my laptop (SuSE 9.3 Pro) and it works fine. All graphs are generated and displayed. Then I copied it over to a server, (SuSE 9.3 pro) but on the server none of the graphs are displayed. I compared the php.ini files on the two systems and they are the same. Could this be due to some Apache config or missing library? Any ideas? Thanks -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org ~ A dinosaur is a salamander designed to Mil Spec ~
Andre Truter wrote:
I have implemented a web app that use php and gd.
I first tested it on my laptop (SuSE 9.3 Pro) and it works fine. All graphs are generated and displayed.
Then I copied it over to a server, (SuSE 9.3 pro) but on the server none of the graphs are displayed.
I compared the php.ini files on the two systems and they are the same. Could this be due to some Apache config or missing library?
Assuming you are generating dynamic graphics with gd, it could be a config thing that prevents them being served with the correct mime-type. /Per Jessen, Zürich -- http://www.spamchek.com/freetrial - managed anti-spam and anti-virus solution. Sign up for your free 30-day trial now!
On 6/26/05, Per Jessen <per@computer.org> wrote:
Assuming you are generating dynamic graphics with gd, it could be a config thing that prevents them being served with the correct mime-type.
I had a look in the code that generate one of the graphs and it is image/php, which is in Apache's mime list. I ran only the php file that generates the image and it complains about finding a specific font, which is in the directory where all the php pages are. I am not sure if the warnings are generated because I call the file directly or because it is really an error. The main web site calls two php scripts to generate two graphs. -- Andre Truter | Software Engineer | Registered Linux user #185282 ICQ #40935899 | AIM: trusoftzaf | http://www.trusoft.za.org ~ A dinosaur is a salamander designed to Mil Spec ~
participants (2)
-
Andre Truter
-
Per Jessen