+ Reply to Thread
Results 1 to 3 of 3

Thread: Include whois script with php?

  1. Include whois script with php?

    I would like to display the domain lookup and results as a php include (http://www.ewinys.net/v2/domains.php)

    I am able to display the form very easily... but is it possible to get the results to display inside the same page rather than loading whois.php on its own for the results?

    I would prefer not to use an iframe because sizing issues would cause either a big nearly-blank box before the results show or having to scroll the frame after the results display... Please correct me if I'm wrong on this!

    Also, SSI is not an option for my server.

    Thanks in advance!

    ~Heather
    "I know only enough to be dangerous..."

  2. Join Date
    Aug 2004
    Posts
    781

    Include whois script with php?

    Yes, the script is easily capable of this.

    Just include the whois script:
    Code:
    <?php include("/absolute/path/to/whois.php"); ?>
    Then you just need to modify the search template to reflect the name of the page that you are including the file on in the form action field.

    Example: You are including the script (whois.php) on a page named mypage.php:
    Go to "Edit Templates" page in EP-Dev Whois Admin Panel and edit the "Search Bar" template:

    REPLACE
    Code:
    <form name='whois_search' method='POST' action='[[site-url]]whois.php'>
    WITH:
    Code:
    <form name='whois_search' method='POST' action='http://www.mysite.com/mypage.php'>
    That is just an example, but you should probably get the idea. Don't forget to modify the multiple TLD search bar too (further down the Edit Templates page).

  3. Include whois script with php?

    Thank you! That worked perfectly!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts