Include not working PHP

PHP Warning:  include(/radio1.php): failed to open stream: No such file or directory in /app/index.php
PHP Warning:  include(): Failed opening '/radio1.php' for inclusion (include_path='.:/usr/share/php') in /app/index.php

All I have is

Above my html document. radio1.php exists, using DIR just prevents the site from loading and nothing works. Please help.


Could you try removing the slash? Try playing around with it.

Could you give us a little more details about where this file is? Is it in a parent directory?

I tried all that, ran it locally, then realised there was a botched while loop in the radio1 file. Thanks a lot!

1 Like