CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
stat() problem - very frustrated

 



david
Deleted

Apr 24, 2000, 4:05 PM

Post #1 of 2 (402 views)
stat() problem - very frustrated Can't Post

Hi,

I have been working on this for a couple of days without luck. I'm using lynx and trying to grab a graphic and it's values with stat(). Regardless of the graphic, I always get the same value for $size, 22814. Below is the code. Any help is greatly appreciated.

==========

$tmpgif = "$tmp/$tmp_id.gif";
system("/usr/bin/lynx -dump $gif_url > $tmp/$tmp_id.gif");
if ($debug == 1){print `ls -l $tmp/$tmp_id.gif`; print "<br>";}

($dev,$ino,$md,$nl,$uid,$gid,$rdev,$size,$at,$mt,$ct,$blksz,$blk)=stat($tmpgif);



Jasmine
Administrator

May 3, 2000, 6:43 AM

Post #2 of 2 (402 views)
Re: stat() problem - very frustrated [In reply to] Can't Post

I've tested your code (with the exception of the dump) on Apache using Linux and Win 98. It worked for all platforms, testing on both images and text files.

When debugging, does the correct image name appear?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives