PDA

View Full Version : <A HREF='http://domain.com/banx/ads.pl'><IMG SRC='http://domain.com/banx/ads.pl'></A&


sarmadys
11-15-2002, 11:26 PM
Hello

Finally our old banner script made such a load on server that forced us to remove it. (It was after 2 years) The banner code remains on many websites yet and makes their pages ugly.

Anyway this is the banner code on their page (I have removed parameters as there will be no use of them anymore):

<A HREF="http://domain.com/banx/ads.pl>http://domain.com/banx/ads.pl</A>

How can I write a small script that shows a single banner (will not change) and forward all clicks to a single page? (new banner subscription page)

Regards,
Mac

Whiteknight
01-10-2004, 02:03 AM
if it doesnt change, do you really need to use a perl script?
can't you just write up the simple html tag for the anchor?


maybe i'm not completely sure what you are trying to accomplish.

sarmadys
01-10-2004, 02:36 AM
Question was posted in the year 2002 my friend. :)

Mac

gold_dragon
01-17-2004, 10:10 AM
Shows how much this part of the forum is used. Yeah, you have to look at the dates or the people will be long gone by the time you reply. Like someone would wait two years for an answer. Prolly went somewhere else. Back then how big was this user base?

Whiteknight
01-18-2004, 12:32 PM
yeah, my bad. I didnt realize that some of the boards here were so unused. I'm only hopeing that oneday when i finally run into some perl problems of my own, that this will be a good place to have them looked at.

gold_dragon
01-18-2004, 12:45 PM
Yeah, I like the c++ forum since you usually get a response. I'm learning perl so I hope to also get help here. I know PHP pretty well. Through, since I only used a small amount of the language, I'm not to sure about that.

kryptech.net
02-27-2004, 06:06 PM
I would recomend that you not learn perl if you use PHP, I know it(and my host dose not support the Perl DBI) and PHP is a lot better for me, unless of course you want to do some shell scripting with it.

jemfinch
02-27-2004, 09:29 PM
I'm only hopeing that oneday when i finally run into some perl problems of my own, that this will be a good place to have them looked at.


The only real answer for your Perl problems is to write your code in Python instead.

But hey, at least Perl's better than PHP.

Jeremy

Whiteknight
02-28-2004, 06:39 PM
I only take on one language at a time, and I got a really nice Perl book for xmas.

jemfinch
02-29-2004, 08:40 AM
I can't agree that that's a good reason to learn Perl. Sorry.

Jeremy

Whiteknight
02-29-2004, 12:38 PM
on the bright side, i never asked for your agreement or even your opinion on the matter.

programming is only a hobby of mine, so i'm not going to throw away a free book because it isnt the right language.

kryptech.net
03-01-2004, 06:41 PM
Originally posted by jemfinch

But hey, at least Perl's better than PHP.

On some things like trying to find the word 'type' in a sentance, but in PHP you dont have to open a pipe to sendmail.

jemfinch
03-01-2004, 09:00 PM
What in the world are you talking about, kryptech.net?

Jeremy

gold_dragon
03-03-2004, 01:59 PM
He is saying PHP is better than Perl.

Saying whether any language is better than the other is like asking to be stabbed multiple times. Perl is good for shell scripting and has lost its charm on web pages. He is also saying that to send mail in Perl you have to open a pipe but in PHP you just use a function and all is good. PHP is made for web based pages and there should be no contesting to that. Perl was made for man handling files and is very good at it.

I won't say any language is good for all tasks, through since I use not nor know not python or why it is here, I wouldn't comment any more on it. Python got a lot popular for some odd and strange reason.

kryptech.net
03-03-2004, 05:51 PM
I'm not saying PHP is better I love perl, in fact I hated to have to learn PHP and asked my host why they didnt support the DBI, I still use perl for shell scripting, but it's just that PHP was made for the web. Do go geting people hating me!!!

skidooer
03-04-2004, 12:37 AM
Originally posted by kryptech.net
but in PHP you dont have to open a pipe to sendmail.
If you are using sendmail, yes you do.

And in Perl you'd be better of using Net::SMTP anyway. Which by the way is much more powerful than PHP's mail functions.

For web pages I like PHP too, but there is no denying that Perl is by far a much better language.

gold_dragon
03-04-2004, 03:06 PM
No, you don't need to open a pipe to send mail or should I say, that I never did. It works so I don't understand what you are saying. I always used the sendmail function, perhaps it opens the pipe for you. I never have to worry about it since it is all built in to the function.

You are again missing the point, there isn't any real perfect language nor better language. To argue whether Perl is better than PHP and vise versa (sorry kryptech.net) is meaningless since it is all relative. PHP is fun to play with while building pages and loads faster than Perl since the PHP module is made for Apache and doesn't run off CGI. Through, even as PHP runs off Perl is still better than Perl for servicing web pages. This is again a opinion of mine.

If you want to talk about functional vs speed then we have a valid discussion. Although, something like language syntax isn't something that can be discussed since it is relative. Classes in Perl... what a joke. Maybe Perl 6 will have real OO. PHP 4 has better Class syntax but is missing some Class fundamentals. Thank Zend, PHP 5 will have these built in to make it a real OO language... or close enough. Be more like C++ than anything. Which is funny, since PHP is made largely in C. (I like to contradict myself, sorry)

Whiteknight
03-05-2004, 07:09 PM
I tried to learn php once, but i couldnt figure out how to setup my apache server to parse html pages for it at the time (i had mangled my httpd.conf file very badly by that point) and i was knee-deep in trying to learn perl and C++ at the time, so i couldnt really squeeze another language in.

at the moment though, perl and C++ take care of all my web-related needs, so i dont need php.