blank project, not running php files.


  • | 256 points

    Hi..
    it has come to my attention that php files dont get executed but instead looks "commented out".
    Has this something to do with the "blank project"?

    as you can see on my screenshot (im no artistic hero) but you get the idea of what i mean...

    ![0_1603749801514_2020-10-26 23_00_36-php.php - Untitled (Workspace) - Visual Studio Code.png](Uploading 100%)

    best regards..
    H.Meco


  • | 256 points


  • | 54 points

    I ran into the same problem and the mistake I was making is to run it through the filesystem URL in the browser, i.e. C:\Laragon...

    Instead, using the "localhost" path, i.e. "localhost/myapp/script.php" worked for me.


  • | 256 points

    @Paras16699 said in blank project, not running php files.:

    I ran into the same problem and the mistake I was making is to run it through the filesystem URL in the browser, i.e. C:\Laragon...

    Instead, using the "localhost" path, i.e. "localhost/myapp/script.php" worked for me.

    yes, but that is not a propper way of doing it.
    You should never make a external linkage when you deployed your app (aspecially when you have a internal routher for your php files).
    However images, css, js and so on is something else.
    ive moved on to some other local dev env. so feel free to close this.


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.