Skip to content

How to include php function #809

Answered by mjauvin
oim37 asked this question in Q&A
Dec 19, 2022 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

Or, fix your code, something like this:

description = My partial
==
function onStart()
{
    if(!empty($_GET['query'])) {
        if (is_numeric( str_replace(".", "", $_GET['query']))) {
            echo $this->whois("whois.ripe.net",$_GET['query']);
        }
        if (strpos($_GET['query'], ':') !== false) {
            echo $this->whois("whois.ripe.net",$_GET['query']);
        }
        else {
            $tlds = strtolower(substr($_REQUEST['query'], strrpos($_REQUEST['query'], '.') + 1));
            switch ($tlds) {
            
            case 'net':
            case 'com':
                $url = 'WHOIS.VERISIGN-GRS.COM';
                $pattern = '~(.*)<br>\s*Domain Name:~isU'…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@mjauvin
Comment options

@oim37
Comment options

@oim37
Comment options

@oim37
Comment options

@oim37
Comment options

Comment options

You must be logged in to vote
2 replies
@oim37
Comment options

@oim37
Comment options

Answer selected by oim37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants