[Help] Strange error

Murder

New Member
Joined
Apr 21, 2008
Messages
502
Reaction score
74
PHP:
Strict Standards:  date() [function.date]:  It is not safe to rely on the system's timezone settings. Please use  the date.timezone setting, the TZ environment variable or the  date_default_timezone_set() function. In case you used any of those  methods and you are still getting this warning, you most likely  misspelled the timezone identifier. We selected 'Europe/Helsinki' for  '3.0/DST' instead in C:\AppServ\www\rss.php on line 12

?!?!?!?
 
Какво си задал във функцията ?
 
PHP:
<? '.date('r').' ?>
ето това съм задал...
 
е грешно е тва направи го така
<?php echo date("r"); ?>
 
виж кода как е...


PHP:
<?php
mssql_connect('127.0.0.1','sa','941214');
mssql_select_db('MuOnline');

$rs=mssql_query('SELECT  * FROM News ');
$rss='<?xml version="1.0" encoding="UTF8" ?>
<rss version="2.0">
   <channel>
   
   <title>Delux Muonline News</title>
   <link>http://89.25.23.89/</link>
   <pubDate>'.date('r').'</pubDate>
   <ttl>60</ttl>
    ';
while($row=mssql_fetch_assoc($rs))
{
   $rss.='
         <item>
         <title>'.$row['title'].'</title>
         <link>http://89.25.23.89/index.php?op=news&id='.$row['id'].'</link>
         <description>'.$row['novinata'].'</description>
         <pubDate>'.date('r',$row['date']).'</pubDate>
         </item>
         ';
}
$rss.='
   </channel>
</rss>
';
echo $rss;
?>
 
Code:
[COLOR=#000000][FONT=Courier New][COLOR=#0000bb]<?php
mssql_connect[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'127.0.0.1'[/COLOR][COLOR=#007700],[/COLOR][COLOR=#dd0000]'sa'[/COLOR][COLOR=#007700],[/COLOR][COLOR=#dd0000]'941214'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);
[/COLOR][COLOR=#0000bb]mssql_select_db[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'MuOnline'[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);

[/COLOR][COLOR=#0000bb]$rs[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]mssql_query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'SELECT  * FROM News '[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]);
[/COLOR][COLOR=#0000bb]$rss[/COLOR][COLOR=#007700]=[/COLOR][/FONT][FONT=Courier New][COLOR=#dd0000]'<?xml version="1.0" encoding="UTF8" ?>
<rss version="2.0">
   <channel>
   
   <title>Delux Muonline News</title>
   <link>http://89.25.23.89/</link>
   <pubDate>'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]date[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'d/m/Y'[/COLOR][COLOR=#007700]).[/COLOR][/FONT][COLOR=#dd0000][FONT=Courier New]'</pubDate>
   <ttl>60</ttl>
    '[/FONT][/COLOR][FONT=Courier New][COLOR=#007700];
while([/COLOR][COLOR=#0000bb]$row[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000bb]mssql_fetch_assoc[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]$rs[/COLOR][/FONT][FONT=Courier New][COLOR=#007700]))
{
   [/COLOR][COLOR=#0000bb]$rss[/COLOR][COLOR=#007700].=[/COLOR][/FONT][FONT=Courier New][COLOR=#dd0000]'
         <item>
         <title>'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]$row[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'title'[/COLOR][COLOR=#007700]].[/COLOR][/FONT][FONT=Courier New][COLOR=#dd0000]'</title>
         <link>http://89.25.23.89/index.php?op=news&id='[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]$row[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'id'[/COLOR][COLOR=#007700]].[/COLOR][/FONT][FONT=Courier New][COLOR=#dd0000]'</link>
         <description>'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]$row[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'novinata'[/COLOR][COLOR=#007700]].[/COLOR][/FONT][FONT=Courier New][COLOR=#dd0000]'</description>
         <pubDate>'[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000bb]date[/COLOR][COLOR=#007700]([/COLOR][COLOR=#dd0000]'d/m/Y'[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000bb]$row[/COLOR][COLOR=#007700][[/COLOR][COLOR=#dd0000]'date'[/COLOR][COLOR=#007700]]).[/COLOR][/FONT][COLOR=#dd0000][FONT=Courier New]'</pubDate>
         </item>
         '[/FONT][/COLOR][FONT=Courier New][COLOR=#007700];
}
[/COLOR][COLOR=#0000bb]$rss[/COLOR][COLOR=#007700].=[/COLOR][/FONT][COLOR=#dd0000][FONT=Courier New]'
   </channel>
</rss>
'[/FONT][/COLOR][FONT=Courier New][COLOR=#007700];
echo [/COLOR][COLOR=#0000bb]$rss[/COLOR][/FONT][FONT=Courier New][COLOR=#007700];
[/COLOR][COLOR=#0000bb]?>[/COLOR] [/FONT][/COLOR]

Я тест така :)
 
PHP:
error_reporting(0);
Най отгоре и си Екстра....