phpWebLog - web news management with adolescent sexist humor
find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (909)
  • Announcements (20)
  • Development (518)
  • Mods & Hacks (32)


  • phpWebLog
  • Latest Release - 0.5.3 (BETA)
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3

  • For development discussions and for general support, join the phpWebLog mailing list

    phpWebLog needs active developers to help fix bugs. If you are interested, send me your SourceForge login information for CVS access.


    Last 5 Comments
  • Error in data.sql (alex)
  • My web site is running PHPWeblog (Anonymous)
  • Multitude of errors... (jeff)
  • phpweblog still active? (Skop)
  • phpweblog still active? (o2)


  • Garbage on first load - General
    Posted by Jeffrey Schoolcraft (Friday July 06 2001 @ 08:19AM EDT) views: 113
    The junk looks a lot like this:

    0 && empty($HTTP_COOKIE_VARS["phpWebLog"])) { $sql .= "AND S.Verified = 'Y'"; } $result = @mysql_query($sql,$db); $nrows = mysql_num_rows($result); if ($nrows==0) { $VAR["Heading"] = _NOSTORY; $VAR["Content"] = "
    " . _NOSTORY . "

    "; F_drawMain($VAR); } else { $A = mysql_fetch_array($result); $tmp = urlencode("stories.php?story=" . $A["Rid"]); F_drawStory($A,$tmp); if ( $A["NoComments"] != 1 ) { F_doComments($story,$story,"stories.php?story=" . $A["Rid"] ,0,$A["Heading"]); print "
    \n"; } if ( $A["NoComments"] == 0 ) { F_postComment($story,$story,"stories.php?story=" . $A["Rid"]); } } } else { /*== determine pages ==*/ if (empty($page)) { $page = 1; } $prev_page = $page - 1; $next_page = $page + 1; $page_start = ($CONF["LimitNews"] * $page) - $CONF["LimitNews"]; /*== get story data ==*/ $sql = "SELECT S.*, T.NoComments FROM T_Stories AS S, T_Topics AS T WHERE "; if ($CONF["Moderation"]>0) { $sql .= " S.Verified = 'Y' AND "; } if ($CONF["Topics"]>0 && !empty($topic)) { $sql .= " S.Topic = '$topic' AND "; } $sql .= " S.Topic = T.Rid AND "; $sql .= " S.Rid > '0'"; $sql .= " ORDER BY S.Repostamp desc"; $sql .= sprintf(" LIMIT %s,%s",$page_start,$CONF["LimitNews"]); $result = @mysql_query($sql,$db); $nrows = mysql_num_rows($result); if ($nrows>0) { /*== show items ==*/ for ($i=0;$i$num_pages) { $e_pages = $num_pages; } /*== construct next/prev links ==*/ $blah = ""; if ($prev_page) { $blah .= "[>] \n"; } /*== show pages if any ==*/ if (!empty($blah)) { F_notice("

    " . $blah . "
    \n"); } } else { $T = F_getTopic($topic); $VAR["Heading"] = (empty($T)) ? _NOSTORY : $T["Topic"]; if ($CONF["Topics"]>0 && !empty($topic)) { $tmp = _EMPTYTOPIC; } else { $tmp = _EMPTY; } $VAR["Content"] = $tmp . "

    "; F_drawMain($VAR); } } include("./include/footer.inc.php"); ?>

    < 0.5.3 buglet | Display escaping ' (ticks) ?? >

    By gaudior (Monday July 09 2001 @ 10:38AM EDT)
    What are the settings for you web server, as far as mime type handlers? It looks as if you are not getting your .php script processed by mod_php, but instead, the web server is sending the script as plain text.

    You need to make certain your Apache has the mod_php libraries, and that the handlers are set up in httpd.conf.

    LoadModule php4_module modules/libphp4.so
    AddModule mod_php4.c
    AddType application/x-httpd-php .php3 .php .php4 .phtml


    Check with the php docs.
    [ reply | parent ]
    Post a Comment
    Name:
    Email:
    URL:
      Remember my information (uses cookies)
      I would rather be anonymous
    Comment:
    * Your email will not be made public.
    Save As:
    SourceForge
    SourceForge is providing us a mailing list , documentation and a CVS tree.

    SourceForge Logo


    PHP.net
  • PHP 4.3.3RC4 released
  • Active Awards 2003 Winners
  • PHP.net news history
  • Select mirror for redirection
  • PHP Magazine web site now with daily news
  • PHP 4.3.3RC3 released
  • URL Shortcuts and Site Search
  • php|architect now in print
  • PHP @ LinuxTag
  • PHP 5.0.0 Beta 1

  • PHPBuilder



    phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / Eye Integrated Communications