bstonehill
IS-IT--Management
I need to open a popup to the current router ip address which is extracted through php and stored in the array $gateway[1]. I can open a popup to a specific location but I do not even get a popup at all if I try to use the PHP variable as the location. Here is where I am at:
<?php
$ipconfig = shell_exec('ipconfig /all');
$explode = explode(':', $ipconfig);
$gateway = explode(" ", $explode[14]);
echo('<script type="text/javascript">);
echo("window.open(\"$gateway[1]\");");
echo('</script>');
<?php
$ipconfig = shell_exec('ipconfig /all');
$explode = explode(':', $ipconfig);
$gateway = explode(" ", $explode[14]);
echo('<script type="text/javascript">);
echo("window.open(\"$gateway[1]\");");
echo('</script>');