Dear Experts,
I have a little proble, I have a server with red5 and plesk running, videos get recorded with a flash script with red5, they locally are recorder to /opt/red5/webapps/SOSample/streams and my public_html directory of my site is in /var/www/vhosts/televista.net/httpdocs/multimedia/video/.
There is a function in done in php (that what it should do is to copy the recorded video from the /opt/red5... to /var/www/vho.... directory and erase it of the original path.
This process fails, I have changed permision in /opt/red5/webapps/SOSample/streams and changed to owner, but fails.
Does anyone has any idea? is plesk bloking que process?, in my php.ini the open_basedir I think is null
//////////
; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
;open_basedir =
//////////
Thank you
//php code used to move from one place to another include('config.php'); session_start(); if(!(isset($_SESSION['user_id'])) && $_SESSION['user_id'] == '') { header("location: login.php"); } $video_id = $_GET['video_id']; $video_name = $video_id.".flv"; $source = $config['red5_file_dir'].$video_name; $destination = $config['flvvideo_dir'].$video_name; copy ($source,$destination); unlink($source);