Re: Cant Display the image...

2007-09-06 Thread Gunnar Hjalmarsson
jeevs wrote: 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 .which is /var/www/. You can't. Did you read my second

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 .which

Re: Cant Display the image...

2007-09-06 Thread Gunnar Hjalmarsson
jeevs wrote: 1) I created a directory called images under /var/www Taking into consideration the error message below, the DOCUMENT_ROOT seems to be /var/www/html, so that's where you should put the /images directory. You need to distinguish between path on the filesystem and URL. This wou

Re: Cant Display the image...

2007-09-06 Thread David Dorward
On 6 Sep 2007, at 13:03, jeevs wrote: qx{chmod -R 777 /var/www/images/file.png}; print qq(); Your alt attribute is missing. And the location of the file on the server's file system is not going to be the same as the path under the webroot. Otherwise you could go to http://w

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 Gunnar Hjalmarsson
jeevs wrote: I am using the GD::Graphs to generate a graph. I am storing the file on the server and then displaying the same. yes i am creating a file in cgi directoy .. but instead of the image just a square box is displayed .. Do i need some configuration in apache or my i missing so

Re: Cant Display the image...

2007-09-06 Thread David Dorward
On 6 Sep 2007, at 09:03, jeevs wrote: print ""; Where is the alt attribute? yes i am creating a file in cgi directoy .. Are you certain that is the current working directory? If it is for CGI then it could well be set up to try to execute everything in it. but instead of the image j

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; pr