Jump to content


Photo

NEW WINDOW!!


  • Please log in to reply
4 replies to this topic

#1 lil-eminem300

lil-eminem300
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 June 2006 - 04:06 PM

I am starting to think very poorly of php. How do I make php links open in a new window?

Please modify these codes for me so that they open in a new window

Code: 1
<?php include("http://www.despair.nu/link.php?uid=1018") ?>

Code: 2
<?php readfile("http://www.exentrique.com/link.html?user=lileminem300"); ?>


#2 deadonarrival

deadonarrival
  • Members
  • PipPipPip
  • Advanced Member
  • 284 posts

Posted 18 June 2006 - 04:25 PM

What do you mean by "php links"?

Why not just print a normal link including the target="_blank" part?
DO {
$this->time_warp("Jump to the left","Step to the right","Bend knees in time");
} WHILE (2>1)

Warning: The above post may not make a lot of sense, and the sentence structure will suck. I tend to ramble a lot. Sorry ;-)

#3 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 18 June 2006 - 04:25 PM

that's not what those functions do. include() includes the file in your current files, and readfile reads the file. they have nothing to do with displaying links. if you want to display a link on your page and have it open an new window, that's an html thing.

<a href='blah.php' target='_blank'>blah</a>

if you want to display it through php then you would do something like

echo "<a href='blah.php' target='_blank'>blah</a>";

Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#4 lil-eminem300

lil-eminem300
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 June 2006 - 05:11 PM

^^ OH OK, I got that from a rotation site. If I did something like

<a target="_blank" href="http://www.despair.nu/link.php?uid=1018">Despair</a>

I would get [a href=\"http://www.despair.nu/link.php?uid=1018\" target=\"_blank\"]http://www.despair.nu/link.php?uid=1018[/a]

Its shows two links, and they just didn't put the target bank in their links

#5 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 18 June 2006 - 05:17 PM

well you need to find in their code where they actually echo out the link and add the target = "_blank" to it then
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users