How would you reference an actual file in a Drupal project?
I have a flash app that needs to talk to a php script, but I can’t just say “http://{domain}/{filepath}/{file}” or even “http://{domain}/{file}” assuming there was some assumed pathing structure.
To be more specific, the file lives in /sites/all/flash/postit.php. How would Drupal tie it’s database driven content to an actual file?
If you postit.php use additional includes, that have next structure:
and use relative path for including, it will raise error that files doesn’t found, so you can include in next manner: