I would like to know which convention (if any) you use for your PHP web application projects.
I would say it depends on your application structure. Is this multisite? Is there a heavy need in configuration? Are there a lot of external libraries?
However, a good idea would be to get inspiration from existing frameworks (a better idea would be to use them), like symfony.
Important thing: separate your public files (i.e, the files that can be downloaded from the browser: css, js, html, etc.) from your app internal files. Doing this, you can configure a virtualhost to secure your installation, by serving only public files directly.
Well i don't think that depends on the language, just on your site design, I write web site staff with Perl and PHP (sorry don't use framework) and i basically organize it as this:
- frontend/#Here what the user can see
- backend/#Here what the user can't but is used by the frontend parts (database connection, etc...)
- docs/#Here files where i document whatever i need
- scripts/Every single script i write when is needed (database schema creation, some cronable scripts
- img/#Website images
- DB/ #database schema
But I guess is up to you.