PURPOSE: This randomized phase III trial is studying stent placement and photodynamic therapy using porfimer sodium to see how well they work compared to stent placement alone as palliative treatment in treating patients with stage III or stage IV cholangiocarcinoma that cannot be removed by surgery.