Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

(ar0n) Re: (webappdev) database centralization ease + client-side file caching?

by ar0n (Priest)
on Jul 15, 2001 at 23:40 UTC ( #96886=note: print w/replies, xml ) Need Help??


in reply to (webappdev) database centralization ease + client-side file caching?

You don't need a handler to do what you want. Use the path_info method from CGI.

Write a CGI script img (or whatever) whose sole purpose is to feed user images. e.g:

#!/usr/bin/perl -w use strict; use CGI; my $q = new CGI; my ($user) = split m!/!, $q->path_info(); # database connection stuff here ... # fetch $pic from database for $user pint $q->header("image/jpeg"), $pic;
... or something like that. And then have an image tag like <img src="/cgi-bin/img/bobo/whatever.jpg">



ar0n ]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://96886]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-11-27 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?