Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
problems with logon script
Old 04-12-2005, 11:56 AM problems with logon script
qnc
Skilled Talker

Posts: 74
Trades: 0
Hi have been trying to set up this log-on system.

http://www.free2code.net/plugins/art...read.php?id=99

installed pear seems ok lots of folders and files including the DB.php file mentioned in the db_connect.php

PHP Code:
<?php

//require the PEAR::DB classes.

require_once '../pear/PEAR/DB.php' ;
?>
was not sure about the notation of the require_once should it have brackets require_once ('../pear/PEAR/DB.php') ;

THE MAIN PROBLEM is that

I get the error message

Fatal error: Call to undefined function: assertextension() in /usr/lib/php/DB/mysql.php on line 114

can anyone tell me where I am going wrong if you need more info just ask as I got stumped at this point after If this is not clear please ask.

if you know of an easier log-on system that has details stored encrypted on the database and uses encrypted sessions then please tell me as well.

Last edited by qnc; 04-12-2005 at 12:05 PM..
qnc is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-12-2005, 12:40 PM
Tekime's Avatar
Experienced Talker

Posts: 46
Name: Gabriel Harper
Location: Maine
Trades: 0
Make sure you have the most updated version of DB.php.

It sounds like a bug:

http://pear.php.net/bugs/bug.php?id=3684
__________________

Please login or register to view this content. Registration is FREE

Programming is like sex: sure, it may give some practical results, but that's not why we do it.
Tekime is offline
Reply With Quote
View Public Profile Visit Tekime's homepage!
 
Old 04-12-2005, 04:36 PM
qnc
Skilled Talker

Posts: 74
Trades: 0
checked the code and neither

the bug
if (!DB::assertExtension('odbtp')) {
or the replacment
if (!PEAR::loadExtension('odbtp')) {

is in my DB.php file

i have * @version CVS: $Id: DB.php,v 1.80 2005/02/16 02:16:00 danielc Exp $

if that is any help

thought pear was suposed to make life easier!!
qnc is offline
Reply With Quote
View Public Profile
 
Old 04-12-2005, 10:02 PM
Tekime's Avatar
Experienced Talker

Posts: 46
Name: Gabriel Harper
Location: Maine
Trades: 0
Hmm... 1.8? The current stable release is 1.7.6, maybe you obtained the 1.8 beta by mistake?

You might try pear upgrade or just remove and reinstall it via shell for the heck of it:

Code:
pear uninstall DB
pear install DB
__________________

Please login or register to view this content. Registration is FREE

Programming is like sex: sure, it may give some practical results, but that's not why we do it.
Tekime is offline
Reply With Quote
View Public Profile Visit Tekime's homepage!
 
Old 04-13-2005, 05:33 AM
qnc
Skilled Talker

Posts: 74
Trades: 0
don't have shell access shall I just use ftp? or is that command line module the shell you where thinking off if so how do I use it?
qnc is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to problems with logon script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.74337 seconds with 12 queries