Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by ar0n (Priest)
on Jul 15, 2001 at 23:40 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-19 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found