Forum Moderators: coopster & phranque

Message Too Old, No Replies

Output File Rename

Change input filename to different output filename

         

bl88

8:37 am on Jan 19, 2006 (gmt 0)



Is it possible to rename a file "on the fly" in PERL without using redirection or Apache rewrite?

In context, Google Adsense will not display accurate ads to dynamic pages. I want to display HOCKEY ads for hockey users, FOOTBALL ads to football users, etc.. but the query string will never be the same, ever. Google only serves content-related ads to cacheable pages. If I could have every unique page [SCRIPT.PL?123456789+ABC...] returned as HOCKEY.htm and FOOTBALL.htm, I could fool Google, I think... Any ideas?

I'm pretty knowledgable about PPC advertising if I could return a knowledge favor to any of you.

Thanks

bennymack

3:50 pm on Jan 19, 2006 (gmt 0)

10+ Year Member



It's definitely possible but I don't think it can be accomplished entirely by an indenpedent perl script.

What I mean is doing something like that requires something that hooks into the apache request mechanism.

One way to accomplish this that comes to mind is the

TransHandler
.

Or you could search the web for ways to write your own handler that hooks into apache's request mechanism.

There's also this way:
[webmasterworld.com...]

But setting up Mason just to do this wouldn't be wise.