can i make php with laragon? and how to run a php script on bowser using laragon?











up vote
0
down vote

favorite












this is source code in file php




how to run a php script on bowser using laragon?




<?php
$batas = 5;
echo '<table>';
for ($i=1;$i<=$batas;$i++){
echo '<tr>';
for ($j=1;$j<=$batas;$j++){
echo '<td>';
echo $i.$j;
echo '</td>';
}
echo '</tr>';
}
echo '</table>';
?>









share|improve this question




























    up vote
    0
    down vote

    favorite












    this is source code in file php




    how to run a php script on bowser using laragon?




    <?php
    $batas = 5;
    echo '<table>';
    for ($i=1;$i<=$batas;$i++){
    echo '<tr>';
    for ($j=1;$j<=$batas;$j++){
    echo '<td>';
    echo $i.$j;
    echo '</td>';
    }
    echo '</tr>';
    }
    echo '</table>';
    ?>









    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      this is source code in file php




      how to run a php script on bowser using laragon?




      <?php
      $batas = 5;
      echo '<table>';
      for ($i=1;$i<=$batas;$i++){
      echo '<tr>';
      for ($j=1;$j<=$batas;$j++){
      echo '<td>';
      echo $i.$j;
      echo '</td>';
      }
      echo '</tr>';
      }
      echo '</table>';
      ?>









      share|improve this question















      this is source code in file php




      how to run a php script on bowser using laragon?




      <?php
      $batas = 5;
      echo '<table>';
      for ($i=1;$i<=$batas;$i++){
      echo '<tr>';
      for ($j=1;$j<=$batas;$j++){
      echo '<td>';
      echo $i.$j;
      echo '</td>';
      }
      echo '</tr>';
      }
      echo '</table>';
      ?>






      php matrix laragon






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 9 at 13:01









      executable

      964221




      964221










      asked Nov 9 at 12:50









      Lia nur fadilah

      3110




      3110
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          1) Set your document root in settings (i like to use C:workspace)
          This is the place that your projects will be loaded from.



          2) Run your script in your browser like:



          localhost/matrix.php 


          If your script is inside your root folder it should work fine.



          If you have nested folders then you must give the path in your URL.



          For example if your php script is inside a folder named matrix



          Then your url should be : localhost/matrix/matrix.php






          share|improve this answer





















          • Page not found, why?
            – Lia nur fadilah
            Nov 9 at 13:28










          • What is your file structure? How did you set your root path in the settings?
            – pr1nc3
            Nov 9 at 13:38










          • well, I have found the problem, so the file should be placed on localhost C: laragon www matrix, it can only be run in the browser, ok thank you :)
            – Lia nur fadilah
            Nov 9 at 13:52










          • If this is your root then yes. I create my own root folder outside of the laragon file and just point it to get my localhost from there.
            – pr1nc3
            Nov 9 at 13:53













          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226037%2fcan-i-make-php-with-laragon-and-how-to-run-a-php-script-on-bowser-using-laragon%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote













          1) Set your document root in settings (i like to use C:workspace)
          This is the place that your projects will be loaded from.



          2) Run your script in your browser like:



          localhost/matrix.php 


          If your script is inside your root folder it should work fine.



          If you have nested folders then you must give the path in your URL.



          For example if your php script is inside a folder named matrix



          Then your url should be : localhost/matrix/matrix.php






          share|improve this answer





















          • Page not found, why?
            – Lia nur fadilah
            Nov 9 at 13:28










          • What is your file structure? How did you set your root path in the settings?
            – pr1nc3
            Nov 9 at 13:38










          • well, I have found the problem, so the file should be placed on localhost C: laragon www matrix, it can only be run in the browser, ok thank you :)
            – Lia nur fadilah
            Nov 9 at 13:52










          • If this is your root then yes. I create my own root folder outside of the laragon file and just point it to get my localhost from there.
            – pr1nc3
            Nov 9 at 13:53

















          up vote
          0
          down vote













          1) Set your document root in settings (i like to use C:workspace)
          This is the place that your projects will be loaded from.



          2) Run your script in your browser like:



          localhost/matrix.php 


          If your script is inside your root folder it should work fine.



          If you have nested folders then you must give the path in your URL.



          For example if your php script is inside a folder named matrix



          Then your url should be : localhost/matrix/matrix.php






          share|improve this answer





















          • Page not found, why?
            – Lia nur fadilah
            Nov 9 at 13:28










          • What is your file structure? How did you set your root path in the settings?
            – pr1nc3
            Nov 9 at 13:38










          • well, I have found the problem, so the file should be placed on localhost C: laragon www matrix, it can only be run in the browser, ok thank you :)
            – Lia nur fadilah
            Nov 9 at 13:52










          • If this is your root then yes. I create my own root folder outside of the laragon file and just point it to get my localhost from there.
            – pr1nc3
            Nov 9 at 13:53















          up vote
          0
          down vote










          up vote
          0
          down vote









          1) Set your document root in settings (i like to use C:workspace)
          This is the place that your projects will be loaded from.



          2) Run your script in your browser like:



          localhost/matrix.php 


          If your script is inside your root folder it should work fine.



          If you have nested folders then you must give the path in your URL.



          For example if your php script is inside a folder named matrix



          Then your url should be : localhost/matrix/matrix.php






          share|improve this answer












          1) Set your document root in settings (i like to use C:workspace)
          This is the place that your projects will be loaded from.



          2) Run your script in your browser like:



          localhost/matrix.php 


          If your script is inside your root folder it should work fine.



          If you have nested folders then you must give the path in your URL.



          For example if your php script is inside a folder named matrix



          Then your url should be : localhost/matrix/matrix.php







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 9 at 13:02









          pr1nc3

          3,1492521




          3,1492521












          • Page not found, why?
            – Lia nur fadilah
            Nov 9 at 13:28










          • What is your file structure? How did you set your root path in the settings?
            – pr1nc3
            Nov 9 at 13:38










          • well, I have found the problem, so the file should be placed on localhost C: laragon www matrix, it can only be run in the browser, ok thank you :)
            – Lia nur fadilah
            Nov 9 at 13:52










          • If this is your root then yes. I create my own root folder outside of the laragon file and just point it to get my localhost from there.
            – pr1nc3
            Nov 9 at 13:53




















          • Page not found, why?
            – Lia nur fadilah
            Nov 9 at 13:28










          • What is your file structure? How did you set your root path in the settings?
            – pr1nc3
            Nov 9 at 13:38










          • well, I have found the problem, so the file should be placed on localhost C: laragon www matrix, it can only be run in the browser, ok thank you :)
            – Lia nur fadilah
            Nov 9 at 13:52










          • If this is your root then yes. I create my own root folder outside of the laragon file and just point it to get my localhost from there.
            – pr1nc3
            Nov 9 at 13:53


















          Page not found, why?
          – Lia nur fadilah
          Nov 9 at 13:28




          Page not found, why?
          – Lia nur fadilah
          Nov 9 at 13:28












          What is your file structure? How did you set your root path in the settings?
          – pr1nc3
          Nov 9 at 13:38




          What is your file structure? How did you set your root path in the settings?
          – pr1nc3
          Nov 9 at 13:38












          well, I have found the problem, so the file should be placed on localhost C: laragon www matrix, it can only be run in the browser, ok thank you :)
          – Lia nur fadilah
          Nov 9 at 13:52




          well, I have found the problem, so the file should be placed on localhost C: laragon www matrix, it can only be run in the browser, ok thank you :)
          – Lia nur fadilah
          Nov 9 at 13:52












          If this is your root then yes. I create my own root folder outside of the laragon file and just point it to get my localhost from there.
          – pr1nc3
          Nov 9 at 13:53






          If this is your root then yes. I create my own root folder outside of the laragon file and just point it to get my localhost from there.
          – pr1nc3
          Nov 9 at 13:53




















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53226037%2fcan-i-make-php-with-laragon-and-how-to-run-a-php-script-on-bowser-using-laragon%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Guess what letter conforming each word

          Port of Spain

          Run scheduled task as local user group (not BUILTIN)