You are here: exec() with Linux « PHP Programming Language « IT news, forums, messages
exec() with Linux

Posted by Stefano on 11/05/07 17:45

I have to execute vlc (Video Lan) using exec() function under Linux debian
distribution. Running vlc from a shell works perfectly, but I have a lot of
problems if it is executed with function exec:

TEST 1

<php
$command = "vlc";
exec ($command);
?>

I get an error message in apache log file:

VLC media player 0.8.6c Janus
[00000287] skins2 interface error: Cannot open display
[00000287] skins2 interface error: cannot initialize OSFactory
Error: Unable to initialize gtk, is DISPLAY set properly?

What is the DISPLAY to set ? Please consider I am a newbie in Linux.


TEST 2

Same as before but running vlc with --daemon option. Now seems that vlc
process is running and I don't get any error message in apache log file, but
it does not record any input stream.



Is there anybody that can help me ?


Thank you.
Stefano

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация