getMessage().PHP_EOL; echo $CC_DBC->getUserInfo().PHP_EOL; echo "Database connection problem.".PHP_EOL; echo "Check if database '{$CC_CONFIG['dsn']['database']}' exists". " with corresponding permissions.".PHP_EOL;*/ if ($p_exitOnError) { exit(1); } } else { //echo "* Connected to database".PHP_EOL; $CC_DBC->setFetchMode(DB_FETCHMODE_ASSOC); } if(count($argv) != 2){ exit; } $id = $argv[1]; $file = Application_Model_StoredFile::Recall($id); // set id with -2 which is indicator for processing $file->setSoundCloudFileId(SC_PROGRESS); $file->uploadToSoundCloud();