jeevs wrote:
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...
Even if that 'works', it makes no sense to use an Apache "alias" for
such a directory. There is already a document root
* [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 scri
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 PROTECT
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo