Jump to content

Recommended Posts

Hi,
I finally find how to read this external file with my search query
http://www.sedo.com/search/keysearch.php4?key=keyword

But i'm not finish yet and need some help

Here my search page who query the file below
http://www.toolurl.com/testsearchkeywords11.php?url=games
i enter the word games to show a result, you can enter any word you want.

Now i want that all my results become link to go to a external page.
[url=http://www.partnerlink.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=games.cx]games.cx[/url]
[url=http://www.partnerlink.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=games.cg]games.gp[/url]
etc....

Here the first link target to: http://www.partnerlink.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=games.cx
As you see all link begin the same but the extension after the keyword=
change acording to the results
all link should be blank. Here my php code

[code]<?php
$file = fopen("http://www.sedo.com/search/keysearch.php4?key=$_GET[url]", "r") or die("Couldn't open file");
$str = fread($file, 400);
echo $str = explode('#', $str);
echo "<tr align=center><td colspan=3>Keywords return " . sizeof($str) . " results on Sedo auction</br>";
foreach($str as $item){
     echo $item . "<br>";
}
?>[/code]

How can i link all results to the right extension?

BTW, how to remove this "Array" text in my result page? -> ArrayKeywords return .....

Tank you for your help

Gino
www.toolurl.com
Link to comment
https://forums.phpfreaks.com/topic/13619-how-to-make-results-clickable/
Share on other sites

I think this is what you mean:

[code=php:0]<?php
$file = fopen("http://www.sedo.com/search/keysearch.php4?key=$_GET[url]", "r") or die("Couldn't open file");
$str = fread($file, 400);
echo $str = explode('#', $str);
echo "<tr align=center><td colspan=3>Keywords return " . sizeof($str) . " results on Sedo auction</br>";
$prefix="http://www.";
foreach($str as $item){
echo('<a href="'.$prefix.$item.'" traget="_blank">'.$item.'</a>');
}
?>
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.