Re: [PHP] script stoped working over christmas ?
- From: sat_ring@xxxxxxxxxxx ("Joker7")
- Date: Mon, 31 Dec 2007 17:25:45 -0000
In news: 4777ED72.4050001@xxxxxxxxxxxxx - Jochem Maas wrote :
Joker7 schreef:
...
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)){
full path to this file is not being used.
$fh = fopen($filename, "r");
$old_news = fread($fh, filesize($filename));
fclose($fh);
}
does the file exist? is it readable by php? is there anything in the
file? have you looked at the output source to see what if anything
was actually outputted?
#- 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
Yes works with full path --- has been working for an age with out ,but then
thats life......
Cheers
Chris
.
- References:
- script stoped working over christmas ?
- From: "Joker7"
- Re: [PHP] script stoped working over christmas ?
- From: Zoltán Németh
- Re: [PHP] script stoped working over christmas ?
- From: "Joker7"
- Re: [PHP] script stoped working over christmas ?
- From: Jochem Maas
- script stoped working over christmas ?
- Prev by Date: Re: Last Day of Year Date Bug?
- Next by Date: Re: [PHP] why is <option '97' selected>Japan</option> not highlighted
- Previous by thread: Re: [PHP] script stoped working over christmas ?
- Next by thread: Re: script stoped working over christmas ?
- Index(es):
Relevant Pages
|