No its by design...
Include is a language construct that includes the code from another file depending where it is located. If you include a local file, then the code is included INTO your own code. If you use include on a remote file, it can't get access to the code or it would be a major security flaw...
Imagine: (And lets assume it was possible)
Code: Select all
include('http://www.nasa.com/includes/db.php');
And now i have included the code that connects me to their database server which by any chance is available through the web. Now i have full access to the NASA database.
So you see the concept here? It would be a major security flaw if it would be possible but fear not, it is NOT possible. Including a file NOT from your server forces the server to request that page just the same way you would query for a webpage. Thus, what gets returned is content that is already rendered such as a webpage with tags. The code, the memory is all used up at THAT location. Nevermind if it's your server, remember that programs are dumb, so they will request it as a distant file even though it is not!
So like Darhazer said, you could actually do:
Code: Select all
include('http://www.domain.com/c.php?c='.$c);
And now you'd get some information returned, but that info is sent to the buffer immediately i think! You'll have to test that...