Re: [PHP] script stoped working over christmas ?
- From: sat_ring@xxxxxxxxxxx ("Joker7")
- Date: Sat, 29 Dec 2007 22:31:07 -0000
In news: 1198935122.5433.15.camel@localhost - "Zoltán Németh" wrote :
2007. 12. 29, szombat keltezéssel 11.23-kor Joker7 ezt írta:
Can anyone see why this has stopped working...
what does it mean stopped working?
what error message do you get?
etc etc
greets
Zoltán Németh
latest.php is used with <?
include("/home/sever2/public_html/teaup/article/article_summary.php")
?> to show the latest news articles.
Cheers
Chris
config.php
<?php
$max_summary = 6;
$max_latest = 7;
$summary_template = "t_summary.tp";
$article_template = "t_article.tp";
$password = "password";
latest.php
<?php
require('config.php');
$filename = "article_summary.php";
#- open article summaries
if(file_exists($filename)){
$fh = fopen($filename, "r");
$old_news = fread($fh, filesize($filename));
fclose($fh);
}
#- get article
$articles = explode("<!--ARTICLE-->", $old_news);
$i=0;
foreach ( $articles as $article ){
if(count($articles)>$i){
if($max_latest >= $i++){
print $article;
}
}
}
No error message it's as if it working ,but not ,if I change the path or any
thing else I get the apporiate error message.
Chris
--
Cheap As Chips Broadband http://yeah.kick-***.co.uk
Superb hosting & domain name deals http://host.kick-***.co.uk
.
- Follow-Ups:
- Re: [PHP] script stoped working over christmas ?
- From: Jochem Maas
- Re: [PHP] script stoped working over christmas ?
- References:
- script stoped working over christmas ?
- From: "Joker7"
- Re: [PHP] script stoped working over christmas ?
- From: Zoltán Németh
- script stoped working over christmas ?
- Prev by Date: Re: [PHP] Re: [PHP-DEV] Sayonara PHP
- Next by Date: Re: script stoped working over christmas ?
- Previous by thread: Re: [PHP] script stoped working over christmas ?
- Next by thread: Re: [PHP] script stoped working over christmas ?
- Index(es):