bdkjones / CodeKit-1-Old

146 stars 1 forks source link

Including with PHP and absolute URLs #618

Open pierrepavlov opened 11 years ago

pierrepavlov commented 11 years ago

Hi, I have this project where I'm currently including some files into index.php like this: <?php include('/includes/navigation.php'); ?>

Every time I make a change to the file (navigation.php) and reload the website I get an error telling me it no longer locates the file navigation.php. What I then have to do is change the include URL to a relative link ('include/navigation.php'), save+reload index.php, then change back the URL to the absolute link, and everything is fine.

I have tried clearing the cache, re-saving index.php and such but I can't solve it.

Any ideas?

bdkjones commented 11 years ago

Are you working directly on a remote server, or is this a local project running in MAMP?

pierrepavlov commented 11 years ago

Local project running MAMP.

pierrepavlov commented 10 years ago

Any news regarding this?

bdkjones commented 10 years ago

Nothing on tap for 1.x, but I think this issue is resolved in 2.0 coming later this year.

pierrepavlov commented 10 years ago

Okay, good stuff!