Re: [PHP] [phplib template] file does not exist

2003-01-16 Thread Marek Kilimajer
First go to the file that generates the error and find out how it knows 
the template file does not exists

roel wrote:

Hi,

i'm having a problem. I just installed a webserver with mysql and php. I
copied my files that i had stored on another webserver to my new. I didn't
change anything to these files and the files worked fine on the other
server.

Now in this server i get this error with a template:
   Template Error: filename: file ./templates/nav_left_body.tpl.php does
   not exist.
   Halted

But that file does exist. I can see it through ftp an i can get to it via
http browser.

What could be wrong? Could it be a config failure in my php.ini? Or in
httpd.conf? In case it is the config, what could it be?

Thanks in advance!!



 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] [phplib template] file does not exist

2003-01-16 Thread roel
Thank you, this helped me to find the problem. It seemed that i had to set
the $root variable in the templated class, although i never had to do this
on the other server, but it works now. Thanks!!


Marek Kilimajer [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 First go to the file that generates the error and find out how it knows
 the template file does not exists

 roel wrote:

  Hi,
 
 i'm having a problem. I just installed a webserver with mysql and php. I
 copied my files that i had stored on another webserver to my new. I
didn't
 change anything to these files and the files worked fine on the other
 server.
 
 Now in this server i get this error with a template:
 Template Error: filename: file ./templates/nav_left_body.tpl.php does
 not exist.
 Halted
 
 But that file does exist. I can see it through ftp an i can get to it via
 http browser.
 
 What could be wrong? Could it be a config failure in my php.ini? Or in
 httpd.conf? In case it is the config, what could it be?
 
 Thanks in advance!!
 
 
 
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] [phplib template] file does not exist

2003-01-15 Thread roel
 Hi,

i'm having a problem. I just installed a webserver with mysql and php. I
copied my files that i had stored on another webserver to my new. I didn't
change anything to these files and the files worked fine on the other
server.

Now in this server i get this error with a template:
Template Error: filename: file ./templates/nav_left_body.tpl.php does
not exist.
Halted

But that file does exist. I can see it through ftp an i can get to it via
http browser.

What could be wrong? Could it be a config failure in my php.ini? Or in
httpd.conf? In case it is the config, what could it be?

Thanks in advance!!



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHPLIB version? the latest.

2002-10-01 Thread

Sorry,it's my fault.

I want to know the latest PHPLIB version.

Can you email me PHPLIB??


thanks a lot .

=
##
//Javen Fang//
//Froma CHina//
###

_
Do You Yahoo!? 
·¢¶ÌÐÅÓ®ÊÖ»ú,¿ìÀ´²Î¼ÓÑÅ»¢¾ÞÐÇÐã!
http://cn.ent.yahoo.com/star/midautumn/index.html

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] phplib, sessions and multiple dirs

2002-06-06 Thread christopher levine


greetings.


i have a website running that has multiple user directories setup as 
HOST/username.  Each username subdirectory has its own subdir named
admin where i'm using phplib to do the session/user management and
authentication.

the problem i'm seeing is that when i login to username1/admin, i'm able
to directly access username2/admin, even though the user/pw
for that area is different in the auth_user table. 
obviously, this is not the desired functionality.

each username subdir has its own set of config.php files where 
i have been trying to override the session.cookie_path in the hopes of
at least restriciting the usage of the session cookie to the HOST/username
path.

i'm assuming that this has been encountered and solved before, but i have
been unable to find any help via google or the other associated dev/php
sites.

i'm running php 4.2.1, apache 1.3.24 and mysql 3.23.49 on a rh6.2 system.

any help or pointers to docs would be greatly appreciated.

thanks.

c.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: Re[2]: [PHP] PHPlib sessions without a DB?

2002-04-27 Thread Richard Archer

At 9:57 AM -0400 26/4/02, Alan McKay wrote:
 Session4 without Session4_custom uses native php containers, e.g.
 files or mm.

Where is this session4?

I pulled php-lib-stable out of CVS yesterday and do not see this anywhere.
Is this part of the bleeding edge in php-lib (without the stable) in CVS?


It's in the unsup directory. Maxim's release notes are in there too.

I hope to merge this into the mainstream release in a backward
compatible manner some time soon.

 ...Richard.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re[4]: [PHP] PHPlib sessions without a DB?

2002-04-27 Thread Maxim Derkachev

Hello Richard,

Saturday, April 27, 2002, 2:24:21 PM, you wrote:

RA It's in the unsup directory. Maxim's release notes are in there too.
No, I meant the file session4.inc in the php-lib/php/session.
session4_custom.inc  release notes (quite outdated, but still usable)
are there too.

It's Phplib4 package, which also has session4.inc file, is in the unsup
directory, and is a completely different thing (while doing similar
work too), made by Barend Scholtus.




-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHPlib sessions without a DB?

2002-04-26 Thread Alan McKay

Folks,

I was going through PHPlib for the first time to assess whether or not I
can use it on a current project, and it looks pretty clear to me that you
need a DB in order to use the session management.

My environment will be a Windows NT 4.0 SP5 box running Apache
and PHP.  I have no DB on the box, and am not allowed to introduce one,
nor am I allowed to rely on an external DB of any sort.

Is there a way to use PHPlib sessions in this environment?

thanks,
-Alan




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Matt Williams

On Friday 26 April 2002 2:25 pm, Alan McKay wrote:

 Folks,

 I was going through PHPlib for the first time to assess whether or not I
 can use it on a current project, and it looks pretty clear to me that you
 need a DB in order to use the session management.

 My environment will be a Windows NT 4.0 SP5 box running Apache
 and PHP.  I have no DB on the box, and am not allowed to introduce one,
 nor am I allowed to rely on an external DB of any sort.

 Is there a way to use PHPlib sessions in this environment?

Hi Alan

I think this is primarily due to the fact that the phplib sessions were 
around before php built in sessions.

In the current CVS for phplib there are some files that allow you to utilise 
php's built in sessions. This enables you to use file storage for sessions. 

I've been using the session4 stuff with phplib for a while and works well, 
but this is using db storage. I wouldn't imagine there will be a problem just 
using a different session container.

As for the default distribution of phplib I don't know if this can use files 
for session storage I haven't had the need to find out.

HTH 

matt

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re[2]: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Maxim Derkachev


MW I've been using the session4 stuff with phplib for a while and works well, 
MW but this is using db storage. I wouldn't imagine there will be a problem just 
MW using a different session container.

Session4 without Session4_custom uses native php containers, e.g.
files or mm.

MW As for the default distribution of phplib I don't know if this can use files 
MW for session storage I haven't had the need to find out.




-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: Re[2]: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Alan McKay


 Session4 without Session4_custom uses native php containers, e.g.
 files or mm.

Where is this session4?

I pulled php-lib-stable out of CVS yesterday and do not see this anywhere.
Is this part of the bleeding edge in php-lib (without the stable) in CVS?

thanks,
-Alan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re[4]: [PHP] PHPlib sessions without a DB?

2002-04-26 Thread Maxim Derkachev

Hello Alan,

Friday, April 26, 2002, 5:57:29 PM, you wrote:

AM Where is this session4?
AM I pulled php-lib-stable out of CVS yesterday and do not see this anywhere.
AM Is this part of the bleeding edge in php-lib (without the stable) in CVS?

Yes, it is not in -stable yet, as I know.


-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
System administrator  programmer,
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
www.books.ru, www.symbol.ru 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] phplib

2002-01-27 Thread Kunal Jhunjhunwala

hey...
i was wondering, is there any way to check wether the replacing of a
variable failed or no? example :
{one}

$t-set_var(one, 1);

I want to know wether one was replaced by 1.. or wether the term one
exists at all in the template.. any ideas on how to find this out?

Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phplib

2002-01-27 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Kunal Jhunjhunwala blurted
 hey...
 i was wondering, is there any way to check wether the replacing of a
 variable failed or no? example :
 {one}
 
 $t-set_var(one, 1);
 
 I want to know wether one was replaced by 1.. or wether the term one
 exists at all in the template.. any ideas on how to find this out?

No. Not AFAIK
What are the circumstances Kunal?

- -- 

Nick Wilson

Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8VH7vHpvrrTa6L5oRAttnAJ0cE6ispcu22bd+mnnuN8PEljOx+QCfUKvE
69/xTQAg2jM28XU2rglVFtQ=
=EUJK
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phplib

2002-01-27 Thread Kunal Jhunjhunwala

Well, when giving the flexibility to the user to change the look of a
program, it is impossible to track wether the user leaves your program copy
right code in the template... so, if the {copyright} variable doesnt exist,
just display the copy right info.. if {copyright} exists, replace it...
simple...

Regards,
Kunal Jhunjhunwala
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: php-list [EMAIL PROTECTED]
Sent: Monday, January 28, 2002 3:57 AM
Subject: Re: [PHP] phplib


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * and then Kunal Jhunjhunwala blurted
  hey...
  i was wondering, is there any way to check wether the replacing of a
  variable failed or no? example :
  {one}
 
  $t-set_var(one, 1);
 
  I want to know wether one was replaced by 1.. or wether the term one
  exists at all in the template.. any ideas on how to find this out?

 No. Not AFAIK
 What are the circumstances Kunal?

 - --

 Nick Wilson

 Tel: +45 3325 0688
 Fax: +45 3325 0677
 Web: www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)

 iD8DBQE8VH7vHpvrrTa6L5oRAttnAJ0cE6ispcu22bd+mnnuN8PEljOx+QCfUKvE
 69/xTQAg2jM28XU2rglVFtQ=
 =EUJK
 -END PGP SIGNATURE-

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] phplib

2002-01-26 Thread Kunal Jhunjhunwala

hey... im tryint to lay some conditions for the html output... example :
if ($check  == 1) {
some html
}
else {
some other html
}

The problem here is, I want the html in both cases to be customisable by the
user... so I would have to make it a part of the template file... and if i
do that, even if the conditions fail, the html will show up..any ideas on a
fix for this?

Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phplib

2002-01-26 Thread Nick Wilson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


* and then Kunal Jhunjhunwala blurted
 hey... im tryint to lay some conditions for the html output... example :
 if ($check  == 1) {
 some html
 }
 else {
 some other html
 }
 
 The problem here is, I want the html in both cases to be customisable by the
 user... so I would have to make it a part of the template file... and if i
 do that, even if the conditions fail, the html will show up..any ideas on a
 fix for this?

I'm not 100% certain I understand your Q. but how about this:
I take it from the subject you are using a PHPLib template so if you
were to have a teplate var called {htmlOutput} you could do this, 

if($check=1) {
$htmlOutput=EOF
your html here
EOF;
} elseif($check=2) {  
$htmlOutput=EOF
your altenate html here
EOF;
} else { 
$htmlOutput=EOF
your default html here
EOF;
}

and then in your template code.

$t-set_var(htmlOutput, $htmlOutput);

Hope that's what you mean
- -- 

Nick Wilson

Tel:+45 3325 0688
Fax:+45 3325 0677
Web:www.explodingnet.com



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE8UtA5HpvrrTa6L5oRAr/TAJ0RBC3OzWQashl7fFc0e9wcrow6LgCdFjY1
xjqg6qEwLRKI+R4g0NWYRoM=
=haum
-END PGP SIGNATURE-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phplib

2002-01-26 Thread Kunal Jhunjhunwala

Hi Nick,
I found the solution. Thanks for your reply though. Basically, what I wanted
to do was simple :
the admin of my program can decided wether they want a feature on or off.
Now, depending on that, a lil section of the html would change. Using
phplib, I have seperated all my html from the php. The problem comes up,
when the html changes dependin on wether the feature is on or off. How does
one alter the html content in the template file? one cant...

The solution I found is, add a open comment tag above and and close comment
tag under the dynamic html code... commenting it out depending on wether the
feature is on or off...simple eh? :)

Regards,
Kunal Jhunjhunwala
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: php-list [EMAIL PROTECTED]
Sent: Saturday, January 26, 2002 9:20 PM
Subject: Re: [PHP] phplib


 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 * and then Kunal Jhunjhunwala blurted
  hey... im tryint to lay some conditions for the html output... example :
  if ($check  == 1) {
  some html
  }
  else {
  some other html
  }
 
  The problem here is, I want the html in both cases to be customisable by
the
  user... so I would have to make it a part of the template file... and if
i
  do that, even if the conditions fail, the html will show up..any ideas
on a
  fix for this?

 I'm not 100% certain I understand your Q. but how about this:
 I take it from the subject you are using a PHPLib template so if you
 were to have a teplate var called {htmlOutput} you could do this,

 if($check=1) {
 $htmlOutput=EOF
 your html here
 EOF;
 } elseif($check=2) {
 $htmlOutput=EOF
 your altenate html here
 EOF;
 } else {
 $htmlOutput=EOF
 your default html here
 EOF;
 }

 and then in your template code.

 $t-set_var(htmlOutput, $htmlOutput);

 Hope that's what you mean
 - --

 Nick Wilson

 Tel: +45 3325 0688
 Fax: +45 3325 0677
 Web: www.explodingnet.com



 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.0.6 (GNU/Linux)

 iD8DBQE8UtA5HpvrrTa6L5oRAr/TAJ0RBC3OzWQashl7fFc0e9wcrow6LgCdFjY1
 xjqg6qEwLRKI+R4g0NWYRoM=
 =haum
 -END PGP SIGNATURE-

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHPLib

2002-01-10 Thread Johnson, Kirk



 Hey guys,
 Has anyone used this before?? If so, is it a pain in the a$$? 
 I read the
 documentation.. and sounds like you would need to re-code your
 authentication system, sessions blah blah to work with it? or 
 am i going waay of target here??
 
 All i wanna do is, customize my html... i dont wanna recode 
 my sessions code

PHPLib is a collection of classes. You can use some parts of it without
using all of it. I don't know what it offers in the way of tools to
customize HTML. PHP's native sessions are easier to work with than PHPLib's
sessions, IMHO, so yes, stay away from the session management. You'll just
have to see if there is anything there useful to you, then figure out if
that piece can be broken out separately.

Kirk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHPLib

2002-01-09 Thread Kunal Jhunjhunwala

Hey guys,
Has anyone used this before?? If so, is it a pain in the a$$? I read the
documentation.. and sounds like you would need to re-code your
authentication system, sessions blah blah to work with it? or am i going
waay of target here??

All i wanna do is, customize my html... i dont wanna recode my sessions code
etc... :)
Regards,
Kunal Jhunjhunwala


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] phplib???

2001-12-14 Thread Matt Williams


 It is a external library with useful PHP functions. It was designed
 by some German guys, but you can now forget it. Main feature was the
 session function and that function is now integrated in the PHP
 extensions.
 

Maybe not quite forget as easily as that.

PHPLib offers very good user management and authentication.

It also allows to use native php session management.

m:

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] phplib???

2001-12-13 Thread Duane Douglas

hello,

can someone please explain phplib to me?  what is it used for?  i apologize 
if this question has been asked many times before.

thanks in advance.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] phplib???

2001-12-13 Thread Nathan Cassano


Went to www.google.com. Searched phplib. The first result returned was
http://sourceforge.net/projects/phplib.


-Original Message-
From: Duane Douglas [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, December 13, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] phplib???


hello,

can someone please explain phplib to me?  what is it used for?  i
apologize 
if this question has been asked many times before.

thanks in advance.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phplib???

2001-12-13 Thread Steve Edberg


http://phplib.sourceforge.net/


At 4:59 PM -0500 12/13/01, Duane Douglas wrote:
hello,

can someone please explain phplib to me?  what is it used for?  i 
apologize if this question has been asked many times before.

thanks in advance.



-- 
++
| Steve Edberg  [EMAIL PROTECTED] |
| University of California, Davis  (530)754-9127 |
| Programming/Database/SysAdmin   http://pgfsun.ucdavis.edu/ |
++
| Restriction of free thought and free speech is the most dangerous of  |
| all subversions. It is the one un-American act that could most easily  |
| defeat us.|
| - Supreme Court Justice (1939-1975) William O. Douglas |
++

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] phplib???

2001-12-13 Thread Duane Douglas

At 03:23 PM 12/13/2001 -0800, Nathan Cassano wrote:

Went to www.google.com. Searched phplib. The first result returned was
http://sourceforge.net/projects/phplib.

i went to the site and the description of phplib was rather sparse.  i'm 
wondering if anyone can provide a more comprehensive description.  thanks.

Duane Douglas
ASP / SQL Server Tutoring and Training


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] phplib???

2001-12-13 Thread Egon Schmid

From: Duane Douglas [EMAIL PROTECTED]
 At 03:23 PM 12/13/2001 -0800, Nathan Cassano wrote:

 Went to www.google.com. Searched phplib. The first result
returned was
 http://sourceforge.net/projects/phplib.

 i went to the site and the description of phplib was rather
sparse.  i'm
 wondering if anyone can provide a more comprehensive description.
thanks.

It is a external library with useful PHP functions. It was designed
by some German guys, but you can now forget it. Main feature was the
session function and that function is now integrated in the PHP
extensions.

-Egon


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] phplib

2001-12-11 Thread Rodney Davis

This might be a stupid question but I have grown fond of easy little one
stop package installations so...

I am running a cobalt raq4 server and installed php4.06 w/ NEWGD and now
want to include pdflib to that configuration. But, since I installed php
4.06 with a package installer from cobalt, I don't know how it was
originally installed.  If I run the following:

$ ./configure --with-phplib
$make
$make install

will I loose everything else that it was originally configured with?

Thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] phplib, pear db, metabase, adodb, and native mysql benchmarks

2001-10-24 Thread John Lim

Someone asked me to benchmark PHPLib also.
Here is the revised benchmarks, with some minor speedups for
PEAR DB and Metabase.

Benchmark was to select 82 rows from the products table 200 times.
The tests were repeated 5 times. Connection times were excluded
from the benchmark. Lower values are better. All numbers are in
seconds.

MySQL  1.12 1.12 1.17 1.15 1.14
ADODB  1.43 1.47 1.47 1.44 1.45
PhpLib 1.53 1.62 1.64 1.64 1.57
PEAR   2.91 2.90 2.85 2.83 2.84 (fetchInto)
PEAR   3.14 3.13 3.22 3.12 3.16 (fetchRow)
M'base 4.51 4.55 4.46 4.54 4.52 (numeric columns)
M'base 4.99 4.72 4.71 4.71 4.72 (named columns)

  Average  Overhead
MySQL  1.14   -
ADODB  1.45   27%
PhpLib 1.60   40%
PEAR   2.87  152% (fetchInto)
PEAR   3.15  176% (fetchRow)
M'base 4.52  296% (numeric cols)
M'base 4.77  318% (named cols)

Methodology

Results on Pentium 800 Mhz running Win 2000, PHP 4.0.6 ISAPI on IIS5
with MySQL 3.23, all on the same machine. PEAR DB from PHP 4.0.6,
ADODB 1.40, PhpLib 7.2d and Metabase 1.57 were used.

Code revised on 22nd October 2001. PhpLib tests added 24th October 2001.

Source code for these tests is available from http://phplens.com/lens/adodb/











-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHPLib conversion?

2001-07-01 Thread Bob Horton

Has anyone ever done or attempted a conversion of PHPLib from PHP3 to PHP4?

There are a number of things that are not making sense in terms of why they
don't work and I was wondering if anyone had done a conversion (and yes I
know that much of the functionality is already in 4)

Thanks.

Bob.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHPLIB cart with back/forward buttons

2001-03-20 Thread Dan Troxell

Hi,

I've built a shopping cart using PHPLIB. When using the BACK or FORWARD
buttons in IE, argument values are passed to the new page, inappropriately
updating the information. Ack! This does not appear to be an issue with most
versions of netscape.

When called with the BACK or FORWARD button is there any way to 
1. force the expiration of the page (not perfectly desirable) 
or
2. pass the URL link only (without the attached argument string)

the example can be viewed at

www.yoursound.com

Thanks!
Dan Troxell, x494
===
Dir. of Information Technology
Citizens Energy Corp.
530 Atlantic Ave, 5FL
Boston, MA 02210
===

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHPLIB and Auth

2001-03-19 Thread Steve Haemelinck

Hi Guys,

I really have a stupid problem but I don't see it :).
I wanted to implement authentification with PHPLIB but it seems I am not
able to get it working.

What happens:

If I want to access a page which needs authentification I first get the
loginform, so far so good, but when I enter a username and password and
submit it, I always get the loginform with the message "Invalid username or
password try again".

First I thought it was because I had badly configured my database, but the
example below shows my database wasn't causing the problem.  I think the
problem is my loginform, but I don't see how.
Do I have to make a setting in my php.ini, what is wrong 

?php

class TIMEKEEPER_AUTH extends Auth{

/* Declare variables */
var $classname="TIMEKEEPER_AUTH";
var $magic="TIMEKEEPER_MAGIC";
var $lifetime=15; //Maximum 15 minutes idle time !!!
var $database_class = "TIMEKEEPER_DB";
var $database_table = "auth_user";

function auth_loginform() {
global $sess;

include("loginform.ihtml");
}

function auth_validatelogin() {
global $username, $password;

if(isset($username)) {
$this-auth["uname"]=$username;
}

$uid = false;

$this-db-query(sprintf("select * from %s where ( username = '%s' )
and ( password = '%s' )",
 $this-database_table,
addslashes($username),
addslashes($password)));

while($this-db-next_record()) {
$uid = $this-db-f("user_id");
$this-auth["perm"] = $this-db-f("perms");
}
return $uid;
}
}

/* test to see if everyting is working well with db-backend*/
$db = new TIMEKEEPER_DB;
$db-query("select count(*) as count from auth_user");
$db-Next_Record();
$count = $db-f("count"); //count gives 2 which is correct SO OK

$username="webadmin";
$password="wwwadmin";
$database_table="auth_user";
$db-query(sprintf("select * from %s where ( username = '%s' ) and (
password = '%s' )",
  $database_table,
  addslashes($username),
  addslashes($password)));
$db-Next_Record();
$uid = $db-f("user_id"); //uid gives ... which is correct SO OK --- The
must be something wrong with my loginform it does not submit the right
values WHY 

?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHPLIB and Auth

2001-03-19 Thread Steve Haemelinck

Can it be that my Apache server is not well configured?
I think you have to allow methods like GET and POST ?

 -Original Message-
From:   Steve Haemelinck [mailto:[EMAIL PROTECTED]] 
Sent:   maandag 19 maart 2001 10:26
To: PHP Mailing Listl (E-mail)
Subject:[PHP] PHPLIB and Auth

Hi Guys,

I really have a stupid problem but I don't see it :).
I wanted to implement authentification with PHPLIB but it seems I am not
able to get it working.

What happens:

If I want to access a page which needs authentification I first get the
loginform, so far so good, but when I enter a username and password and
submit it, I always get the loginform with the message "Invalid username or
password try again".

First I thought it was because I had badly configured my database, but the
example below shows my database wasn't causing the problem.  I think the
problem is my loginform, but I don't see how.
Do I have to make a setting in my php.ini, what is wrong 

?php

class TIMEKEEPER_AUTH extends Auth{

/* Declare variables */
var $classname="TIMEKEEPER_AUTH";
var $magic="TIMEKEEPER_MAGIC";
var $lifetime=15; //Maximum 15 minutes idle time !!!
var $database_class = "TIMEKEEPER_DB";
var $database_table = "auth_user";

function auth_loginform() {
global $sess;

include("loginform.ihtml");
}

function auth_validatelogin() {
global $username, $password;

if(isset($username)) {
$this-auth["uname"]=$username;
}

$uid = false;

$this-db-query(sprintf("select * from %s where ( username = '%s' )
and ( password = '%s' )",
 $this-database_table,
addslashes($username),
addslashes($password)));

while($this-db-next_record()) {
$uid = $this-db-f("user_id");
$this-auth["perm"] = $this-db-f("perms");
}
return $uid;
}
}

/* test to see if everyting is working well with db-backend*/
$db = new TIMEKEEPER_DB;
$db-query("select count(*) as count from auth_user");
$db-Next_Record();
$count = $db-f("count"); //count gives 2 which is correct SO OK

$username="webadmin";
$password="wwwadmin";
$database_table="auth_user";
$db-query(sprintf("select * from %s where ( username = '%s' ) and (
password = '%s' )",
  $database_table,
  addslashes($username),
  addslashes($password)));
$db-Next_Record();
$uid = $db-f("user_id"); //uid gives ... which is correct SO OK --- The
must be something wrong with my loginform it does not submit the right
values WHY 

?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




FW: [PHP] PHPLIB and Auth

2001-03-19 Thread Steve Haemelinck



-Original Message-
From:   Steve Haemelinck [mailto:[EMAIL PROTECTED]]
Sent:   maandag 19 maart 2001 11:52
To: 'Steve Haemelinck'
Subject:RE: [PHP] PHPLIB and Auth

It has certainly got something to do with my config.
I just tried a simple form with POST
And it gave the following ERROR: Parse error: parse error, expecting
'T_STRING' or 'T_VARIABLE' or 'T_NUM_STRING'
What does this mean?
-Original Message-
From:   Steve Haemelinck [mailto:[EMAIL PROTECTED]]
Sent:   maandag 19 maart 2001 10:26
To: PHP Mailing Listl (E-mail)
Subject:[PHP] PHPLIB and Auth

Hi Guys,

I really have a stupid problem but I don't see it :).
I wanted to implement authentification with PHPLIB but it seems I am not
able to get it working.
What happens:
If I want to access a page which needs authentification I first get the
loginform, so far so good, but when I enter a username and password and
submit it, I always get the loginform with the message "Invalid username or
password try again".
First I thought it was because I had badly configured my database, but the
example below shows my database wasn't causing the problem.  I think the
problem is my loginform, but I don't see how.
Do I have to make a setting in my php.ini, what is wrong 
?php
class TIMEKEEPER_AUTH extends Auth{
/* Declare variables */ var $classname="TIMEKEEPER_AUTH"; var
$magic="TIMEKEEPER_MAGIC"; var $lifetime; //Maximum 15 minutes idle time
!!!  var $database_class = "TIMEKEEPER_DB"; var $database_table =
"auth_user";
function auth_loginform() {
global $sess;
include("loginform.ihtml");
}

function auth_validatelogin() {
global $username, $password;
if(isset($username)) {
$this-auth["uname"]=$username;
}

$uid = false;
$this-db-query(sprintf("select * from %s where ( username = '%s' )
and ( password = '%s' )",
$this-database_table,
addslashes($username), addslashes($password)));
while($this-db-next_record()) {
$uid = $this-db-f("user_id");
$this-auth["perm"] = $this-db-f("perms");
}
return $uid;
}
}

/* test to see if everyting is working well with db-backend*/ $db = new
TIMEKEEPER_DB;
$db-query("select count(*) as count from auth_user");
$db-Next_Record();
$count = $db-f("count"); //count gives 2 which is correct SO OK
$username="webadmin";
$password="wwwadmin";
$database_table="auth_user";
$db-query(sprintf("select * from %s where ( username = '%s' ) and (
password = '%s' )",
$database_table,
addslashes($username),
addslashes($password)));
$db-Next_Record();
$uid = $db-f("user_id"); //uid gives ... which is correct SO OK --- The
must be something wrong with my loginform it does not submit the right
values WHY 

?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHPLib Phorum

2001-03-12 Thread Matt Williams

Hi

Does anyone know if anyone has built phorum or any other BB with PHPLib
authentication??

I was wondering if I could save myself a lot of time..

TIA

M@


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PhpLib Template Not Parsing

2001-02-25 Thread Kyndig

Afternoon All,

  Been running through archives and posts throughout the net.
Hopin ta find an answer. Looks like the questions been asked,
but no public answer has been made.

  I'm using PhpLib's Template code. ( just pulled the file and
modified it a minor bit ) The problem I'm having is when I create
a dynamic page with the Template class, any php within that
page is not being parsed by the webserver. If you visit:
http://www.kyndig.com/listings  and look at the page source,
you'll see the php code to call the banner code in. Any pointers
in how to go about fixing this is much appreciated.

-- 
Kind Regards,
---
Kyndig
Online Text Game Resource Site:  http://www.kyndig.com
ICQ#10451240


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHPLIB-7.2 sessions

2001-02-17 Thread kaab kaoutar

Hi!
i'm trying to use sessions in my shopping cart!
i hadno idea about from where to start till one of u'r kind members send me 
url that points to devshed!
while sacnning titles and articles that had confused me cause i found no 
help in implementation! but i discovered this phplib-7-2 library !
can u help me in the steps to follow please !
cheers

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] phplib phplib-7.2b is severely inconsistent

2001-02-06 Thread Jeff

Can anyone explain this?  I thought phplib was supposed to
provide a consistent interface to databases.  If you depend
on the mysql and pgsql layers to work the same you are
screwed.  Their connect method inconsistency is pathetic. 
One function returns a value and the other does not.  This
code is straight from "phplib-7.2b"  If you don't believe me
download it yourself.

There are also other differences.  Member var
"Halt_On_Error" exists in db_mysql but not db_pgsql.  There
is no good reason for this inconsistency.

This is their "production" release.  From their own website:
"This is the most current production release of PHPLIB. It
is basically a 7.2 release with some minor bugfixes, such as
..."

//--
## THIS IS IN  "db_mysql.inc"

/* public: connection management */
  function connect($Database = "", $Host = "", $User = "",
$Password = "") {
/* Handle defaults */
if ("" == $Database)
  $Database = $this-Database;
if ("" == $Host)
  $Host = $this-Host;
if ("" == $User)
  $User = $this-User;
if ("" == $Password)
  $Password = $this-Password;

/* establish connection, select database */
if ( 0 == $this-Link_ID ) {

  $this-Link_ID=mysql_pconnect($Host, $User,
$Password);
  if (!$this-Link_ID) {
$this-halt("pconnect($Host, $User, \$Password)
failed.");
return 0;
  }

  if (!@mysql_select_db($Database,$this-Link_ID)) {
$this-halt("cannot use database ".$this-Database);
return 0;
  }
}

return $this-Link_ID;
  }

//--
## THIS IS IN  "db_pgsql.inc"

 function connect() {
  if ( 0 == $this-Link_ID ) {
  $cstr = "dbname=".$this-Database.
  $this-ifadd($this-Host, "host=").
  $this-ifadd($this-Port, "port=").
  $this-ifadd($this-User, "user=").
  $this-ifadd($this-Password, "password=");
  $this-Link_ID=pg_pconnect($cstr);
  if (!$this-Link_ID) {
  $this-halt("Link-ID == false, pconnect failed");
  }
  }
  } // ! WHERE IS THE DAMN RETURN
VALUE???!

//--

--
Jeff Greer
- B.S. computer science - Univ. MO - Rolla
- web developer/software engineer,
dedicated to the struggle against the fascist
Microsoft hegemony

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread Kevin Cawthorne

Hi,

I want to install  PHPLIB but one of the configuration notes says "turn off magic 
quotes in the php.ini file".

OK But I'm, using phpMyAdmin, which I understand NEEDS magic quotes on to work.

Has anyone done this using the two together?

Kevin Cawthorne




Re: [PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread [EMAIL PROTECTED]

On Tue, 16 Jan 2001, Kevin Cawthorne wrote:

 Hi,
 
 I want to install  PHPLIB but one of the configuration notes says "turn off magic 
quotes in the php.ini file".
 
 OK But I'm, using phpMyAdmin, which I understand NEEDS magic quotes on to work.
 
 Has anyone done this using the two together?
Yes, I use .htaccess files to control phplib (you can have multiple
phplibs)

Tarique



=
   B2B Application Providers
http://www.sanisoft.com
 Vortal for Nagpur http://nagpurcity.net
=


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread Krznaric Michael

How can you control 'magic quotes' with .htaccess?  I thought this
is a php.ini command?  

I kind of have the same problem.  My web host has magic quotes off and I
would like to use phpMyAdmin.  Is it possible to turn them on without
accesing the ini file?


Mike

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 7:16 AM
To: Kevin Cawthorne
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHPLIB and PHPMyAdmin


On Tue, 16 Jan 2001, Kevin Cawthorne wrote:

 Hi,
 
 I want to install  PHPLIB but one of the configuration notes says "turn
off magic quotes in the php.ini file".
 
 OK But I'm, using phpMyAdmin, which I understand NEEDS magic quotes on to
work.
 
 Has anyone done this using the two together?
Yes, I use .htaccess files to control phplib (you can have multiple
phplibs)

Tarique



=
   B2B Application Providers
http://www.sanisoft.com
 Vortal for Nagpur http://nagpurcity.net
=


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread Matt Friedman

Since phpmyadmin doesn't use an include path and an auto prepend file but
phplib does, what we do is run them under separate sub directories. Under
the phplib subdir we use an .htaccess to specify the phplib directives
needed to make it run and under the phpmyadmin subdir we don't specify
anything since phpmyadmin doesn't require this.

What we don't do is put the phplib .htaccess with it's directives under the
web root "/". That way we can specify varying configurations under various
sub directories.

So, you can have magic quotes on under one dir and off under another. Use
.htaccess for configuration.

best of both worlds.

Matt Friedman
Spry New Media

- Original Message -
From: "Ignacio Vazquez-Abrams" [EMAIL PROTECTED]
To: "Kevin Cawthorne" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, January 16, 2001 9:24 AM
Subject: Re: [PHP] PHPLIB and PHPMyAdmin


 On Tue, 16 Jan 2001, Kevin Cawthorne wrote:

  Hi,
 
  I want to install  PHPLIB but one of the configuration notes says "turn
off magic quotes in the php.ini file".
 
  OK But I'm, using phpMyAdmin, which I understand NEEDS magic quotes on
to work.
 
  Has anyone done this using the two together?
 
  Kevin Cawthorne
 

 Knowing which web server you're using helps, but if you're using Apache,
the
 way to do it is to turn it off in php.ini and then turn it on in
httpd.conf or
 .htaccess or wherever for the directory/location phpMyAdmin is in.

 --
 Ignacio Vazquez-Abrams  [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]