Motion - Support Question 2007x 07x 02x 212628

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.
Topic revision: r3 - 12 Jul 2007, MohammadIshaq
Copyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.