Re: [PHP] script stoped working over christmas ?



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
.



Relevant Pages

  • Re: on input form showing error message for duplicate entry.
    ... | Subject: Re: on input form showing error message for duplicate entry. ... |> same validation in php since not all your visitors/customers will have ...
    (alt.php)
  • Re: [PHP] Re: http request problem
    ... while i am trying to access to another file, from another server it run ... this is the error message i get: ... browser on the same network where it fails in the PHP script? ... know your requests actually hit the server, ...
    (php.general)
  • PHP logs not working, and unable to send mail through sendmail via PHP
    ... am unable to view my php error log. ... logging and my mail options and suggest some things for me to try ... error displaying on production web sites. ... String to output before an error message. ...
    (comp.lang.php)
  • Re: [PHP] Re: http request problem
    ... however i did try to access other jsp file from the same server, ... i don't know why i keep getting the same error message file accessing ... browser on the same network where it fails in the PHP script? ... know your requests actually hit the server, ...
    (php.general)
  • Re: on input form showing error message for duplicate entry.
    ... Newsgroups: alt.php ... on input form showing error message for duplicate entry. ... | INSERT but I just don't know enough php to get this to work. ...
    (alt.php)