Cant Display the image...

2007-09-06 Thread jeevs
Hi All, I am using the GD::Graphs to generate a graph. I am storing the file on the server and then displaying the same. my code looks like. .. ... ... $gd = $graph-plot([EMAIL PROTECTED]) or die $graph-error; open(IMG, 'file.png') or die $!; binmode IMG; print IMG $gd-png; print

Re: Cant Display the image...

2007-09-06 Thread jeevs
Ok.. here is the update. Earlier i was trying it on windows.. now i m using linux but still the same problem 1) I created a directory called images under /var/www 2) gave it the permission so that i cud be able to write to it 3) i modified my code to ### .. ... my

Re: Cant Display the image...

2007-09-06 Thread jeevs
Ok.. here is the update. Earlier i was trying it on windows.. now i m using linux but still the same problem 1) I created a directory called images under /var/www 2) gave it the permission so that i cud be able to write to it 3) i modified my code to ### .. ... my

Re: Cant Display the image...

2007-09-06 Thread jeevs
thanks Gunnar . David I used the code on unix machine. But now the problem is that i am creating file.png file at location / var/www/images/file.png now how to display the same as the default path equals to i.e the root is /var/www/html/ how to refer to the images directory in this case

Re: Cant Display the image...

2007-09-07 Thread jeevs
Thanks Gunnaar.. Problem resolved... created a directory called images in www as said before and just added the alias directived to the httpd.config to access the files stored in images directory... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL