Web based Pan and Tilt for Logitech Sphere MP
Question
Hi,
I have set up my logitech camera as per the instructions at:
http://www.lavrsen.dk/twiki/bin/view/Motion/LogitechSphereControl
Almost everything seams to work ok, I can pan and tilt without any problems. The only little anoying problem is that when ever I click on any button to pan or tilt my browser throws up the the error message detailed below, but when I click the back button the camera is pointing in the new direction and all seems to be good.
Warning: Cannot modify header information - headers already sent by (output started at /var/www/secure/cam/control204pt.php:3) in /var/www/secure/cam/control204pt.php on line 4
Track Error
<- back
It seems like this part:
Header("HTTP/1.0 204 No Content");
in control204pt.php is not working as per design.
Any help or pointers appreciated.
Thanks
Warning: Cannot modify header information - headers already sent by (output started at /var/www/secure/cam/control204pt.php:3) in /var/www/secure/cam/control204pt.php on line 4
Track Error
<- back
Environment
Motion version: |
3.2.8 Beta |
ffmpeg version: |
|
Libraries: |
ffmpeg, mysql, postgresql |
Server OS: |
Linux Ubuntu Feisty Fawn |
--
MohammadIshaq - 02 Jul 2007
Answer
Either you output text or you do not have the header php line as the first thing it does. For the 204 trick to work you must just create the header and not make any output to the browser.
--
KennethLavrsen - 05 Jul 2007
All Working now!
Thanks for the response Kenneth - you were right, I had a couple of empty lines preceding the "<?" line. Once those empty lines were removed, everything started working perfectly!
Many thanks for the help.