Welcome Guest, Not a member yet? Register   Sign In
Reading content type in PHP..?

Okay, Im creating a proxy for an AJAX application with PHP, and its done like this:
        $url = $_GET['url'];
        $content = file_get_contents($url);
And so far, I have it set up so you can either manually specify the format of the data, or it can figure it out through a file extension..the problem is, you come up with clean URLs that dont have a file extension, and Im trying to figure out an automatic way of figuring out the content type with PHP, but Im not sure of how to do that..anyone have any ideas?

Well I found a solution, so never mind this.

Theme © iAndrew 2016 - Forum software by © MyBB