I'm using Troy Wolf's class_http.php - in an iframe to output the content of a 3rd party site.
I am trying to 'inject' another stylesheet into this iframe so that it works along with my site (in case anybody is concerned, fair use copyrights are being protected).
I can see the object body as
Expand|Select|Wrap|Line Numbers
- // Send the response body to the client.
- print_r(get_object_vars($h));
- echo $h->body;
What I am trying to do is
Expand|Select|Wrap|Line Numbers
- $h['body'] = str_replace("<\/title>", "<\/title><link rel=\"stylesheet\" type=\"text/css\" href=\"http://localhost/repair.css\" />", $h['body']);
Any ideas?