The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/“CPA

Reply to thread

[URL unfurl="true"]https://www.php.net/manual/en/reserved.variables.server[/URL]

[URL unfurl="true"]https://www.php.net/manual/en/function.parse-url[/URL]

[CODE=php]explode '.' $a[0] //will be the subdomain name

$a[0]-logo.jpg //is the request URI logo for that subdomain

    //is one way to do it.[/CODE]


Filter that value to the allowed char /[a-Z], [0-9]/ so you don't get hacked or get an xss injection o_O


banners
Back