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