sample - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of sample.php

  1. <?php
  2. $launcherURL = 'http://10.110.51.15/stalker_launcher_apps/magcore-core/5.7.0-dc2f3abb2/app/';
  3. $url = 'http://10.110.51.15:80/stalker_portal/c/server/api/launcher_profile.php';
  4. $locale = 'ru';
  5.  
  6. $baseUrl = \str_replace('/c', '', $url);
  7.  
  8. $configUrlParams = http_build_query([
  9.     'uid' => '-1',
  10.     'language' => $locale,
  11. ]);
  12.  
  13. $configUrl = "${baseUrl}/server/api/launcher_profile.php?".$configUrlParams;
  14.  
  15. $launcherURLParams = http_build_query([
  16.     'config' => $configUrl
  17. ]);
  18.  
  19. echo $launcherURL."?".$launcherURLParams;
  20.  
File Description
  • sample
  • PHP Code
  • 23 Mar-2021
  • 522 Bytes
You can Share it: