TPhpErrorException

Description

[Warning] fopen(stopka/599df1bbdf441ccd8af395a705824d72.txt) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied (@line 117 in file /home/piotr/fef.pl/htdocs/stopka.php).

Source File

/home/piotr/fef.pl/htdocs/stopka.php (117)

0106: function seo_pobierz_linki($adr) {
0107:     $adr = explode('/', $adr);        
0108:     if ($ip = spr_seo($adr[0])) {        
0109:         unset($adr[0]);
0110:         $adr = implode('/', $adr);                
0111:         return seo_http($ip.'/'.$adr.'?a='.seo_host().'&w='.seo_wersja());
0112:     } else return null;
0113: }
0114: /***********************************************************************************************/
0115: function seo_zapis_do_pliku($plik, $dane, $param = true) {
0116:     if ($param) $plik = 'stopka/'.md5(seo_token().seo_host().md5(seo_host()).$plik).'.txt';
0117: if (!$fp = fopen($plik, 'w+')) return false;
0118: if (!fwrite($fp, $dane)) return false; 0119: if (!fclose($fp)) return false; 0120: return true; 0121: } 0122: /***********************************************************************************************/ 0123: function seo_odczytaj_plik($plik, $param = true) { 0124: if ($param) $plik = 'stopka/'.md5(seo_token().seo_host().md5(seo_host()).$plik).'.txt'; 0125: return file_get_contents($plik); 0126: } 0127: /***********************************************************************************************/ 0128: function seo_spr_plik($plik, $param = true) { 0129: if ($param) $plik = 'stopka/'.md5(seo_token().seo_host().md5(seo_host()).$plik).'.txt';

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'fopen(stopka/59...', '/home/piotr/fef...', 117, Array)
#1 /home/piotr/fef.pl/htdocs/stopka.php(117): fopen('stopka/599df1bb...', 'w+')
#2 /home/piotr/fef.pl/htdocs/stopka.php(233): seo_zapis_do_pliku('ustawienia', 'a:9:{s:4:"cron"...')
#3 /home/piotr/fef.pl/htdocs/protected/pages/start.php(39): seo_wyswietl_linki()
#4 /home/piotr/fef.pl/htdocs/libs/prado/Web/Services/TPageService.php(438): include_once('/home/piotr/fef...')
#5 /home/piotr/fef.pl/htdocs/libs/prado/TApplication.php(988): TPageService->run()
#6 /home/piotr/fef.pl/htdocs/libs/prado/TApplication.php(346): TApplication->runService()
#7 /home/piotr/fef.pl/htdocs/index.php(38): TApplication->run()
#8 {main}
2010-07-30 04:28 Apache PRADO/3.0.2