Re: [PHP] script stoped working over christmas ?



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;
}
}
}

?>

.



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)