Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Live/production
- <?php
- list($first,$host) = explode(".",$_SERVER["SERVER_NAME"]);
- $var ="<iframe width='100%' height='100%' style='height: 100vh; border: none;' src='https://appName.bubbleapps.io/$first'></iframe>";
- $var .= "<style>";
- $var .= "body {margin: 0;}";
- $var .= "</style>";
- echo $var;
- ?>
- _______________________________
- Testing:
- _______________________________
- <?php
- list($first,$host) = explode(".",$_SERVER["SERVER_NAME"]);
- $var ="<iframe width='100%' height='100%' style='height: 100vh; border: none;' src='https://appName.bubbleapps.io/version-test/$first'></iframe>";
- $var .= "<style>";
- $var .= "body {margin: 0;}";
- $var .= "</style>";
- echo $var;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement