Typical php 'include file.php'

I am new to coda. But anyway, ‘include file.php-’ Can’t get this working.

Hello @Donald_Brady,

I believe you have this forum confused with panic.com/coda.
It would be too difficult to diagnose why an include is not working without a look at the structure of your project, however one of the most common reasons I have seen is an improper path.

  • root/
    • index.php
    • php/
      • file.php

the most common mistake is trying to include file.php; from index.php without its relative path structure > include php/file.php;


Wow I love that you found this post, realized it was in the wrong forum, identified which forum it should be in, and still answered it!! :clap: @Joshua_Upton

1 Like