Jump to content

Recommended Posts

Help to request a external web page

Hi need help to show a external webpage results from a keyword search in my website.

I don't know very musch about PHP

In my website, we can find many informations about domains names
[url=http://www.toolurl.com]www.toolurl.com[/url]

In my main search, i want to add the Sedo api search request.
Sedo page results for keyword book: http://www.sedo.com/search/keysearch.php4?key=book
for this example i placed the keyword "book" at the end

I want to show the result in my web page in a table
book.bz#book.gr#book.fm#book.gs#book.es#

And the results should be clickable (blank link) so i can redirect user to Sedo with my affiliate number

The link will send user to someting like that ([url=http://www.sedo.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=book.info]make a offer for book.info[/url]):
[url=http://www.sedo.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=book.info]http://www.sedo.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=book.info[/url]

i just begin i for now, i only find how to grab the plain information with this code:
[code]<?php
$fichier = fopen("http://www.sedo.com/search/keysearch.php4?key=book", "r"); //ouverture en lecture/ecriture
$str = fread($fichier, 500); //lecture du fichier
echo $str; //affichage du contenu du fichier
fclose($fichier); //fermeture du fichier
?>[/code]

here the my test page: http://www.toolurl.com/testsearchkeywords.php

I need 3 things
replace the word book with the search query
put my results in a table
All results become a link to Sedo with my affid and the right keyword results
One of these result could look like that
[url=http://www.sedo.com/search/showdetails.php4?partnerid=12345&language=fr&keyword=book.info]book.info[/url]

Thank you to help me

Gino
Link to comment
https://forums.phpfreaks.com/topic/13400-help-to-request-a-external-page/
Share on other sites

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.