hi philote
tried paulTEG option and got rid of the scriptalias and now can view the images in my browser but still not through my script
chris
i can now see the image in the browser but not through my script all i see is the ugly little broken image box..
yea i got rid of the save_graph function and the file business and just copied and pasted the code into the two sent and recieved functions so that they generated the images without reading or writing to a file..
hi Mike
thanks for all your help it greatly appreciated i after managing to get a way round the problem by rewriting some of my code
thanking you
tommy
when i type the address into the location bar it gives
"internal server error"
i'm working on the web server and the image is generated by the script and moved to the /images directory by the script.. so there no need to ftp
tanx for all your help folks
as chris says it prob a configuration...
sub sent_packets
{
my ($outnow,$outthen,$index) = @_;
my $ifOutUcastPktvar = $ifOutUcastPkts.$index;
my $ifOutDiscardvar = $ifOutDiscards.$index;
my $ifOutErrorvar = $ifOutErrors.$index;
my @outx_axis_array;
my @outvalues_array;
#pktsOutIfToNet = (ifOutUcastPkts) -...
sub recieved_packets
{
my ($innow,$inthen, $index) = @_;
my $ifInUcastPktvar = $ifInUcastPkt.$index;
my $ifInNUcastPktvar = $ifInNUcastPkt.$index;
my $ifInDiscardvar = $ifInDiscard.$index;
my $ifInErrorvar = $ifInError.$index;
my @sysOIDs =...
sub save_graph
{
my ($title,$xlabel,$ylabel,$IfNum,$fn) = @_;
my $numfile = 1;
my $fnbase = $fn;
my $titlebase = $title;
while ($numfile <= $IfNum)
{
$title = $titlebase;
$fn = $fnbase;
$fn = $fn.$numfile;
my @xarray = ();
my @values = ();
my $max = 0...
the code is as follows i no that it prob really messy and untidy and that there prob loads way better ways to do stuff in perl so forgive my amatuer attempt at it
<code>
#! /usr/bin/perl -w
use strict;
use POSIX ":sys_wait_h";
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
use...
the following is an absolute path using the image tag and it still only produces the alt text u cant use the ip address outside the collage due to proxy and firewall.. the image was saved using binmode in perl..(binary mode)
the folder is setup and an alias is setup in the httpd.conf
using...
nah no luck at all this really confusing me as i have the sleep going in another part of the cgi script ... if you want i can post up the whole script if it any help to you..
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.