Help with Iframes
#11
One small possible optimization I can think of is reducing number of calls to fgets.

Code:
while (!feof($fp)) { $content .= fgets($fp, 128); }
fclose($fp);
You can preg_match for "Content Length" in the first few reads, locate end of header (blank line ?) and then read the content/body with one single fgets().
But I notice you have commented out the line which adds Content-length to header. Why is that ?

But I still wonder why all this ? :-)
Reply
#12
amateurs

http://jsfiddle.net/MrCbq/

Code:
<style>
    body { overflow:hidden }
    body, html, iframe { border:none; height:100%; margin:0; width:100% }</style>
<iframe src="https://pirates-forum.org/Thread-Help-with-Iframes"></iframe>
Reply
#13
html can be used in the css? the fuck?
Reply
#14
(Apr 06, 2014, 05:27 am)Q91 Wrote: html can be used in the css? the fuck?
no, but html tag names can be used as css selectors.
Reply




Users browsing this thread: 1 Guest(s)