Thanks Roy, Im totally flummoxed on this one. . .<div>Ben <br><br><div class="gmail_quote">On 21 April 2010 01:39, Roy Mohan Shearer <span dir="ltr">&lt;<a href="mailto:fy81le@googlemail.com">fy81le@googlemail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Looks fine to me, running Firefox in XP from home. Also fine in Opera.<br>
<br>
Roy Mohan Shearer<br>
(post-)Industrial Designer<br>
<br>
____________________________________________________<br>
Zero-waste Design,<br>
Southside Studios, 17 Westmoreland St., Glasgow, G42 8LL<br>
+44 (0)7974896651<br>
<a href="http://www.zero-waste.co.uk" target="_blank">www.zero-waste.co.uk</a><br>
___________________________________________________<br>
<a href="http://www.tinyurl.com/thesoundishere" target="_blank">www.tinyurl.com/thesoundishere</a> | <a href="http://www.dbasscollective.co.uk" target="_blank">www.dbasscollective.co.uk</a><br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On 20 April 2010 22:28, Ben Rush &lt;<a href="mailto:orionrush@gmail.com">orionrush@gmail.com</a>&gt; wrote:<br>
&gt; Hey folks,<br>
&gt; Just an update on the project that I was working on.<br>
&gt; <a href="http://www.astonesthrowaway.co.uk" target="_blank">www.astonesthrowaway.co.uk</a> is live, check it out. The beacon is having some<br>
&gt; servicing at the moment so isn&#39;t active but the question I need help on is<br>
&gt; in the PHP webcam script that I was working on a month ago.<br>
&gt; the updated code can be found here: <a href="http://pastebin.com/xsd9tKU6" target="_blank">http://pastebin.com/xsd9tKU6</a><br>
&gt; To my alarm I was looking at the site from a web kiosk at the BBC and the<br>
&gt; home page was throwing a 404. Now I realise this might be a simple case of<br>
&gt; the site not being on their allowed list, but oddly I could still get still<br>
&gt; to the backend and preview the site through an Iframe just fine from the<br>
&gt; same computer. Could my script be causing this error? The script generates<br>
&gt; the image for the background of the page so I directed the browser to the<br>
&gt; script itself and the browser balked, citing an illegal execution - I assume<br>
&gt; this to be the echo on line 38, which dumps the jpg data to the browser<br>
&gt; (with appropriate headers).<br>
&gt; Will a few folks running windows take a look at this for me? I&#39;ve previewed<br>
&gt; this in IE6,7,8 in an emulator and didn&#39;t run into this behaviour. Whats<br>
&gt; alarming is that the site is totally inaccessible to anyone working under<br>
&gt; these restrictions - very bad news.<br>
&gt; Anybody have any bright ideas?<br>
&gt; Many thanks,<br>
&gt; Ben Rush<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 4 April 2010 14:41, Ben Rush &lt;<a href="mailto:orionrush@gmail.com">orionrush@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Holly cow - IT LIVES!<br>
&gt;&gt; I had no idea - I just thought I&#39;d keep the error reporting to see what<br>
&gt;&gt; went wrong. Didn&#39;t clock that it this in itself would generate headers, but<br>
&gt;&gt; it makes total sense. Thanks so much Mark &amp; Gordon for looking at this -<br>
&gt;&gt; beer&#39;s on me when we meet.<br>
&gt;&gt; Cheers all for the air-time, - Merry Easter!<br>
&gt;&gt; Ben R.<br>
&gt;&gt; On 4 April 2010 00:45, Mark Bryars &lt;<a href="mailto:electronclub@darkskiez.co.uk">electronclub@darkskiez.co.uk</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; You probably don&#39;t have errors suppressed, and the fopen to test if the<br>
&gt;&gt;&gt; camera is there is failing and printing an error, which generates<br>
&gt;&gt;&gt; output, which means you cant send any headers.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; prefix the fopen with an @ sign<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; if (@fopen($img_remote, &quot;r&quot;)== true )<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt;  Mark<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Ben Rush wrote:<br>
&gt;&gt;&gt; &gt; Gordon,<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Thanks for taking a look at this - I got the sense that an something<br>
&gt;&gt;&gt; &gt; was firing off before it should. I&#39;ve yet to break away from family<br>
&gt;&gt;&gt; &gt; obligations this weekend, but I have managed to post the code to paste<br>
&gt;&gt;&gt; &gt; bin: <a href="http://pastebin.com/rrC86Zdj" target="_blank">http://pastebin.com/rrC86Zdj</a><br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; happy Easter everyone - cracking day out today, spent it fishing for<br>
&gt;&gt;&gt; &gt; sculpture bits out of the graving docs in Govan -- good times!<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Ben<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; On 3 April 2010 20:43, Gordon JC Pearce &lt;<a href="mailto:gordonjcp@gjcp.net">gordonjcp@gjcp.net</a>&gt; wrote:<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt;&gt; On Sat, 2010-04-03 at 00:15 +0100, Ben Rush wrote:<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; Hello folks,<br>
&gt;&gt;&gt; &gt;&gt;&gt; Im going to preface this by stating I&#39;m a self described noob, so if<br>
&gt;&gt;&gt; &gt;&gt;&gt; this seems elementary - I stand by my assertion.<br>
&gt;&gt;&gt; &gt;&gt;&gt; I have come to a block and Im not sure how to deal with it, and any<br>
&gt;&gt;&gt; &gt;&gt;&gt; thought would be amazing.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; Im working on a fetch image script for a webcam and everything seemed<br>
&gt;&gt;&gt; &gt;&gt;&gt; hunky-dorry.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; I later decided to add an if/else on the off chance the camera wasn&#39;t<br>
&gt;&gt;&gt; &gt;&gt;&gt; available. This is where things got confusing.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; If the camera fails I get a &quot;Warning: Cannot modify header<br>
&gt;&gt;&gt; &gt;&gt;&gt; information&quot;. The thing is I cant figure out were the header info is<br>
&gt;&gt;&gt; &gt;&gt;&gt; being declared, as the warning seem to indicate that the declaration<br>
&gt;&gt;&gt; &gt;&gt;&gt; comes from in the &#39;if&#39; statement itself. Wait didn&#39;t that just<br>
&gt;&gt;&gt; &gt;&gt;&gt; fail?!?<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Something is outputting stuff to the server before you get a chance to<br>
&gt;&gt;&gt; &gt;&gt; send the header() part.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; A quick demonstration - type &quot;telnet <a href="http://www.electronclub.org" target="_blank">www.electronclub.org</a> 80&quot;<br>
&gt;&gt;&gt; &gt;&gt; Once you get the &quot;Escape character is &#39;^]&#39;.&quot; message type<br>
&gt;&gt;&gt; &gt;&gt; &quot;GET / HTTP/1.0&quot; then &lt;RETURN&gt; &lt;RETURN&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; You&#39;ll see the server&#39;s response - &quot;HTTP/1.1 200 OK&quot; and a bunch of<br>
&gt;&gt;&gt; &gt;&gt; things like &quot;Date:&quot; and &quot;Length:&quot; and importantly &quot;Content-Type:&quot;.<br>
&gt;&gt;&gt; &gt;&gt; These are the headers.  There&#39;s a blank line before the actual content<br>
&gt;&gt;&gt; &gt;&gt; *and this is very important*.<br>
&gt;&gt;&gt; &gt;&gt; Once you send that blank line, you cannot send any more headers.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; Moving the &#39;header(&#39;content-type: image/jpg&#39;);&#39; higher up in the<br>
&gt;&gt;&gt; &gt;&gt;&gt; script doesn&#39;t seem to fix it. Moving it before the if statement all<br>
&gt;&gt;&gt; &gt;&gt;&gt; together gives a broken image link - the echo of file contents don&#39;t<br>
&gt;&gt;&gt; &gt;&gt;&gt; seem to make to the browser.<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;&gt; I also checked to see if there was any empty space before or after my<br>
&gt;&gt;&gt; &gt;&gt;&gt; &lt;? ?&gt; - no empty echoes there either. .<br>
&gt;&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Can you put the script up in something like pastebin, with line<br>
&gt;&gt;&gt; &gt;&gt; numbers?<br>
&gt;&gt;&gt; &gt;&gt; That would make it a wee bit easier to trace.<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Gordon MM0YEQ<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; &gt;&gt; members mailing list<br>
&gt;&gt;&gt; &gt;&gt; <a href="mailto:members@electronclub.org">members@electronclub.org</a><br>
&gt;&gt;&gt; &gt;&gt; <a href="http://lists.electronclub.org/cgi-bin/mailman/listinfo/members" target="_blank">http://lists.electronclub.org/cgi-bin/mailman/listinfo/members</a><br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt; Instructions for changing your mailing list settings:<br>
&gt;&gt;&gt; &gt;&gt; <a href="http://lists.electronclub.org/emailhowto.html" target="_blank">http://lists.electronclub.org/emailhowto.html</a><br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt;&gt; &gt; members mailing list<br>
&gt;&gt;&gt; &gt; <a href="mailto:members@electronclub.org">members@electronclub.org</a><br>
&gt;&gt;&gt; &gt; <a href="http://lists.electronclub.org/cgi-bin/mailman/listinfo/members" target="_blank">http://lists.electronclub.org/cgi-bin/mailman/listinfo/members</a><br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; Instructions for changing your mailing list settings:<br>
&gt;&gt;&gt; &gt; <a href="http://lists.electronclub.org/emailhowto.html" target="_blank">http://lists.electronclub.org/emailhowto.html</a><br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; members mailing list<br>
&gt;&gt;&gt; <a href="mailto:members@electronclub.org">members@electronclub.org</a><br>
&gt;&gt;&gt; <a href="http://lists.electronclub.org/cgi-bin/mailman/listinfo/members" target="_blank">http://lists.electronclub.org/cgi-bin/mailman/listinfo/members</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Instructions for changing your mailing list settings:<br>
&gt;&gt;&gt; <a href="http://lists.electronclub.org/emailhowto.html" target="_blank">http://lists.electronclub.org/emailhowto.html</a><br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; <a href="mailto:orionrush@gmail.com">orionrush@gmail.com</a><br>
&gt; M +44 7964 565 153<br>
&gt; <a href="http://make-us-believe.blogspot.com" target="_blank">make-us-believe.blogspot.com</a><br>
&gt; <a href="http://www.flickr.com/orionrush" target="_blank">www.flickr.com/orionrush</a><br>
&gt; <a href="http://www.gsamfa.com/2009/benjamin_rush.php" target="_blank">www.gsamfa.com/2009/benjamin_rush.php</a><br>
&gt; <a href="http://www.linkedin.com/in/orionrush" target="_blank">www.linkedin.com/in/orionrush</a><br>
&gt; central station <a href="http://tiny.cc/orionrush" target="_blank">http://tiny.cc/orionrush</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; members mailing list<br>
&gt; <a href="mailto:members@electronclub.org">members@electronclub.org</a><br>
&gt; <a href="http://lists.electronclub.org/cgi-bin/mailman/listinfo/members" target="_blank">http://lists.electronclub.org/cgi-bin/mailman/listinfo/members</a><br>
&gt;<br>
&gt; Instructions for changing your mailing list settings:<br>
&gt; <a href="http://lists.electronclub.org/emailhowto.html" target="_blank">http://lists.electronclub.org/emailhowto.html</a><br>
&gt;<br>
&gt;<br>
<br>
_______________________________________________<br>
members mailing list<br>
<a href="mailto:members@electronclub.org">members@electronclub.org</a><br>
<a href="http://lists.electronclub.org/cgi-bin/mailman/listinfo/members" target="_blank">http://lists.electronclub.org/cgi-bin/mailman/listinfo/members</a><br>
<br>
Instructions for changing your mailing list settings:<br>
<a href="http://lists.electronclub.org/emailhowto.html" target="_blank">http://lists.electronclub.org/emailhowto.html</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="mailto:orionrush@gmail.com">orionrush@gmail.com</a><br>M +44 7964 565 153<br><a href="http://make-us-believe.blogspot.com">make-us-believe.blogspot.com</a><br>
<a href="http://www.flickr.com/orionrush">www.flickr.com/orionrush</a><br><a href="http://www.gsamfa.com/2009/benjamin_rush.php">www.gsamfa.com/2009/benjamin_rush.php</a><br><a href="http://www.linkedin.com/in/orionrush">www.linkedin.com/in/orionrush</a><br>
central station <a href="http://tiny.cc/orionrush">http://tiny.cc/orionrush</a><br>
</div>