ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-Lib-Dev
php-Lib-Dev
[phplib-dev] cvs commit
by kk other posts by this author
Jul 14 2001 8:25PM messages near this date
[phplib-dev] Help you with our programming skills and experience | Re: [phplib-dev] cvs commit
From: kk
Date: Sat Jul 14 22:25:26 2001
Modified files:
      php-lib-stable/doc/sgml/04-template.sgml
      php-lib-stable/php/prepend.php3

Log message:
This is becasue $_PHPLIB['libdir'] is only initalized if it isn't present.
Simply remvove the if(!(is_array($_PHPLIB)) { call and it will be better.



Index: php-lib-stable/doc/sgml/04-template.sgml
diff -u php-lib-stable/doc/sgml/04-template.sgml:1.1 php-lib-stable/doc/sgml/04-template.sgm
l:1.2
--- php-lib-stable/doc/sgml/04-template.sgml:1.1	Mon Apr 17 18:40:04 2000
+++ php-lib-stable/doc/sgml/04-template.sgml	Sat Jul 14 22:24:55 2001
@@ -1,4 +1,4 @@
-<!-- $Id: 04-template.sgml,v 1.1 2000/04/17 16:40:04 kk Exp $ --> 
+<!-- $Id: 04-template.sgml,v 1.2 2001/07/14 20:24:55 kk Exp $ --> 
 <sect1> Template
 <p> 
 <em/Note:/ If you think that this is like FastTemplates, read
@@ -310,10 +310,10 @@
   }
 
   # build out from box, then build out from page...
-  $t-&gt;parse("out", array("box", "page"));
+  $t-&gt;parse("OUT", array("box", "page"));
 
   # finish out and print it.
-  $t-&gt;p("out");
+  $t-&gt;p("OUT");
 ?&gt;
 &lt;hr&gt;
 &lt;?php
Index: php-lib-stable/php/prepend.php3
diff -u php-lib-stable/php/prepend.php3:1.3 php-lib-stable/php/prepend.php3:1.4
--- php-lib-stable/php/prepend.php3:1.3	Wed Jul 12 20:25:44 2000
+++ php-lib-stable/php/prepend.php3	Sat Jul 14 22:24:55 2001
@@ -5,16 +5,12 @@
  * Copyright (c) 1998-2000 NetUSE AG
  *                    Boris Erdmann, Kristian Koehntopp
  *
- * $Id: prepend.php3,v 1.3 2000/07/12 18:25:44 kk Exp $
+ * $Id: prepend.php3,v 1.4 2001/07/14 20:24:55 kk Exp $
  *
  */ 
 
-if (!isset($_PHPLIB) or !is_array($_PHPLIB)) {
-# Aren't we nice? We are prepending this everywhere 
-# we require or include something so you can fake
-# include_path  when hosted at provider that sucks.
-  $_PHPLIB["libdir"] = ""; 
-}
+$_PHPLIB = array();
+$_PHPLIB["libdir"] = ""; 
 
 require($_PHPLIB["libdir"] . "db_mysql.inc");  /* Change this to match your database. */
 require($_PHPLIB["libdir"] . "ct_sql.inc");    /* Change this to match your data storage co
ntainer */



-- 
Abbestellen mit Mail an:   phplib-dev-unsubscribe@[...].de
Kommandoliste mit Mail an: phplib-dev-help@lists.netuse.de
Thread:
kk
nathan r. hruby
Chris Johnson

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved