how to duplicate links in my page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

koko10
Forum Newbie
Posts: 5
Joined: Sun Dec 23, 2007 4:02 pm

how to duplicate links in my page

Post by koko10 »

i made fopen() of other page and i want every link on the page will appear twice
like this exmple:
http://www.yahoo.com http://www.yahoo.com
http://www.google.com http://www.google.com
can you give me any advice?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Can you explain what you mean you want to duplicate all the links?

Do you mean to want to capture all the links on the page?
koko10
Forum Newbie
Posts: 5
Joined: Sun Dec 23, 2007 4:02 pm

Post by koko10 »

i setup a script who captured a part of a page with links who always update
and i want to make every link to appear twice because i want to make that one click people can see the preview of the link
and the second link people will see the <style> code...
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Post by Jonah Bron »

Style code of what? Sorry, my mind reading skills are a little slow today. :wink:
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

koko10 wrote:i setup a script who captured a part of a page with links who always update
and i want to make every link to appear twice because i want to make that one click people can see the preview of the link
and the second link people will see the <style> code...
Sorry.. I still don't understand.

What is <style> code?
koko10
Forum Newbie
Posts: 5
Joined: Sun Dec 23, 2007 4:02 pm

Post by koko10 »

<style> is the css in the code(the part of the html)
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Post by markusn00b »

koko10 wrote:<style> is the css in the code(the part of the html)
Yeh, i think everyone on this site knows what the <style> tag is...

What people, i think, want to know is: what do you mean when you say the second link will show the <style> tag?
koko10
Forum Newbie
Posts: 5
Joined: Sun Dec 23, 2007 4:02 pm

Post by koko10 »

one will be a direct link like http://www.yahoo.com i want to duplicate the like for making the othe the score code of yahoo
(or any other link)
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Post by markusn00b »

Could you please post the code you have now?

Remeber to use

Code: Select all

or

Code: Select all

tags
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

koko10 wrote:one will be a direct link like http://www.yahoo.com i want to duplicate the like for making the othe the score code of yahoo
(or any other link)
Score code? Sorry man we must be on a different level here.. I just don't understand what you are trying to explain. Explain as thorough as you can what you are trying to accomplish, with examples.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Post by Jonah Bron »

Beep! beep!

Communication break down detected!

Locating break...

Break found:
cannot identify "Score code"

solution: present replacement suggestions

exicuting...
replacement suggestions:
The css of the the target page? As in the text between the <style> </style> tags?

waiting for reply on validity of replacement suggestion 1...
waiting...
waiting...
koko10
Forum Newbie
Posts: 5
Joined: Sun Dec 23, 2007 4:02 pm

Post by koko10 »

ok this is like links of myspace layouts
and i want to copy all the links of the page when people will press on the other link they will get the layout code...
Last edited by koko10 on Tue Dec 25, 2007 6:40 pm, edited 1 time in total.
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Post by markusn00b »

We're straying off topic...

SOMEONE HELP HIM DUPLICATE THE LINKS!

Forget about the source code, (s)he can do that after.

Unfortunately i dont know how to do this, so i'm waiting for the response too

=]
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Okay I give up.

If you cannot provide a reasonable explanation on whatever your trying to do then I cannot be bothered. Good luck on your problem.
User avatar
markusn00b
Forum Contributor
Posts: 298
Joined: Sat Oct 20, 2007 2:16 pm
Location: York, England

Post by markusn00b »

HEre goes:

he's written something that reads a file, then grabs the links that are in the page -> he wants to then duplicate the link so that link a is a direct url to the said link, link b, however, will link to the stylesheet of said link.

I believe that's what he's after
Post Reply