TPhpErrorException

Description

[Warning] file_put_contents(/home/alhedaya/public_html/site/0/rss/images140.rss) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied (@line 64 in file /home/alhedaya/public_html/protected/pages/ImageGallery.php).

Source File

/home/alhedaya/public_html/protected/pages/ImageGallery.php (64)

0053:             $rss .= "
0054:                 <item>
0055:                     <title>".$row->getUrl()."</title>
0056:                     <link>".$url."</link>
0057:                     <media:thumbnail url=\"".$urls."\"/>
0058:                     <media:content url=\"".$url."\"/>
0059:                 </item>";
0060:         }
0061:         $rss .= '    </channel>
0062: </rss>';
0063:         $rssUrl = $_SERVER['DOCUMENT_ROOT'].'/site/'.$this->Application->Parameters['SiteID'] .'/rss/images'.$this->Request['CategoryID'].'.rss';
0064: file_put_contents($rssUrl, $rss);
0065: } 0066: 0067: public function LoadData() 0068: { 0069: if($this->Visible==false) return array(); 0070: $this->Article->setPageSize($this->ddPageSize->getSelectedValue()); 0071: $data = $this->getDataGridRecord(0, $this->Article->getPageSize()); 0072: $count = $this->article->doCountJoinArticle($this->article->_c); 0073: $this->Article->DataSource = $data; 0074: $this->CreateRss($data); 0075: $this->Article->setVirtualItemCount($count); 0076: $this->Article->DataBind();

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'file_put_conten...', '/home/alhedaya/...', 64, Array)
#1 /home/alhedaya/public_html/protected/pages/ImageGallery.php(64): file_put_contents('/home/alhedaya/...', '<?xml version="...')
#2 /home/alhedaya/public_html/protected/pages/ImageGallery.php(74): ImageGallery->CreateRss(Array)
#3 /home/alhedaya/public_html/protected/pages/ImageGallery.php(40): ImageGallery->LoadData()
#4 /home/alhedaya/public_html/framework/pradolite.php(4073): ImageGallery->OnLoad(NULL)
#5 /home/alhedaya/public_html/framework/pradolite.php(6053): TControl->loadRecursive()
#6 /home/alhedaya/public_html/framework/pradolite.php(6045): TPage->processNormalRequest(Object(THtmlWriter))
#7 /home/alhedaya/public_html/framework/pradolite.php(8162): TPage->run(Object(THtmlWriter))
#8 /home/alhedaya/public_html/framework/pradolite.php(8128): TPageService->runPage(Object(ImageGallery), Array)
#9 /home/alhedaya/public_html/framework/pradolite.php(9089): TPageService->run()
#10 /home/alhedaya/public_html/framework/pradolite.php(8704): TApplication->runService()
#11 /home/alhedaya/public_html/fa.php(132): TApplication->run()
#12 {main}
2019-11-18 11:23 Apache/2.2.31 (Unix) PHP/5.2.17 PRADO/3.1.2a