Re: Cant Display the image...

2007-09-08 Thread Lars Haugseth
* [EMAIL PROTECTED] (jeevs) wrote: qx{rm -rf /var/www/images/file.png}; Use Perl: unlink '/var/www/images/file.png'; qx{chmod -R 777 /var/www/images/file.png}; Use Perl: chmod 0777, '/var/www/images/file.png'; What happens when two users try to access your CGI script

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

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 David Dorward
On 6 Sep 2007, at 09:03, jeevs wrote: print img src='file.png'; 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

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

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