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

[eluser]Lovecannon[/eluser]
Okay, Im creating a proxy for an AJAX application with PHP, and its done like this:
Code:
$this->passion->enableGet();
        $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?
#2

[eluser]Lovecannon[/eluser]
Well I found a solution, so never mind this.




Theme © iAndrew 2016 - Forum software by © MyBB