PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
To answer your question, there is no real advantage to using either. When using a URI you have to have certain settings turned in php.ini in order to open files over HTTP
but it also works. Is it wrong practice to use path like this
When you include a file that way, PHP will send an HTTP GET request to your server to retrieve the contents of the file, just like a browser would. That means that Apache and PHP will process the file and deliver the processed output to your "require" statement.
When you include a file from the filesystem, the entire, unprocessed contents are dumped directly to your script.