PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
MDB2::include_once(MDB2/Datatype.php)
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database
View previous topic :: View next topic  
Author Message
da



Joined: 26 Dec 2006
Posts: 1

PostPosted: Tue Dec 26, 2006 5:35 pm    Post subject: MDB2::include_once(MDB2/Datatype.php) Reply with quote

Hi all

This is my first post in this forum, it came after 2 days of amazing googling.

So..

Error:
Warning: MDB2::include_once(MDB2/Datatype.php) [function.MDB2-include-once]: failed to open stream:: No such file or directory in /home/mypath//include/MDB2.php on line 330

I have the mysql.php driver installed
I've no problem to do SELECT, I've problem only with INSERT.

This is my connect.php:

Code:
<?php

require_once 'MDB2.php';

$dsn = 'mysql://user:password@localhost/cane';
$options = array(

    'debug'       => 2,
    'portability' => MDB2_PORTABILITY_ALL,
);


$mdb2 =& MDB2::factory($dsn, $options);
if (PEAR::isError($mdb2)) {
    die($mdb2->getMessage());
}

?>


And this is the code that make error:

Code:
<?php
include ("../include/connect.php");

$sth = $mdb2->prepare('INSERT INTO number (ID, ma) VALUES (?, ?)', array('integer'), MDB2_PREPARE_MANIP);

$data=array(2, 6);
$sth->execute($data);
?>


This is my include structure:
Code:
MDB2
   -Driver
      --Datatype
      --Function
      --Native
      --Reverse
      --Manager
      --mysql.php
   -Date.php
   -Extended.php
   -Iterator.php

PEAR
   -Autoloader.php
   -Builder.php
   -ecc...

Auth
   -Anonimous.php
   -Auth.php
   -Controller.php

MDB2.php
PEAR.php
Auth.php
connect.php


What's happen? missing some dependencies?
Back to top
View user's profile Send private message
mrsocks



Joined: 03 Feb 2007
Posts: 14

PostPosted: Sun Feb 04, 2007 8:40 am    Post subject: Reply with quote

have you ever figured this out?

i am having the same issue and cannot seem to find what i am missing.

thanks.
Back to top
View user's profile Send private message
ready2rumble



Joined: 05 Feb 2007
Posts: 7

PostPosted: Mon Feb 05, 2007 2:49 pm    Post subject: Reply with quote

iam getting the same error when i use lastInsertID gives the exact same error its bugging me cause there is no file datatype.php anyone one know whats going on here?
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1051

PostPosted: Mon Feb 05, 2007 5:18 pm    Post subject: Reply with quote

People, is it really that hard to show your code here? Not everything is a bug in PEAR package, sometimes it is also the usage of the package.

Try to shorten your code so that it shows the problem and post it here (or use phpfi.com and give a link).
Back to top
View user's profile Send private message
ready2rumble



Joined: 05 Feb 2007
Posts: 7

PostPosted: Mon Feb 05, 2007 5:40 pm    Post subject: Reply with quote

mark wrote:
People, is it really that hard to show your code here? Not everything is a bug in PEAR package, sometimes it is also the usage of the package.

Try to shorten your code so that it shows the problem and post it here (or use phpfi.com and give a link).


there is something def a miss when not using pear installer taking a standard example dose not work when using inserts or using ids something isnt right you cant rely post your code when you take the exact same example that is provided.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1051

PostPosted: Mon Feb 05, 2007 6:25 pm    Post subject: Reply with quote

ready2rumble wrote:
there is something def a miss when not using pear installer taking a standard example dose not work when using inserts or using ids something isnt right you cant rely post your code when you take the exact same example that is provided.


Confused You don't really expect anybody to decrypt this jungle of words, do you?

I've tried to help, but without more details or code, I can't do it.
Back to top
View user's profile Send private message
mrsocks



Joined: 03 Feb 2007
Posts: 14

PostPosted: Mon Feb 05, 2007 7:24 pm    Post subject: Reply with quote

mark wrote:


Confused You don't really expect anybody to decrypt this jungle of words, do you?

I've tried to help, but without more details or code, I can't do it.



you dont have many friends do you?
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1051

PostPosted: Mon Feb 05, 2007 11:56 pm    Post subject: Reply with quote

mrsocks wrote:
mark wrote:


Confused You don't really expect anybody to decrypt this jungle of words, do you?

I've tried to help, but without more details or code, I can't do it.



you dont have many friends do you?


Okay, go to http://pear.php.net/package/MDB2, report the bug, let it be marked as bogus, and you're back at the beginning of your problem. If you like this approach more than real help ...

*plonk*
Back to top
View user's profile Send private message
mrsocks



Joined: 03 Feb 2007
Posts: 14

PostPosted: Tue Feb 06, 2007 1:31 am    Post subject: Reply with quote

I guess I missed the 'help' in:

mark wrote:

Confused You don't really expect anybody to decrypt this jungle of words, do you?
Back to top
View user's profile Send private message
ready2rumble



Joined: 05 Feb 2007
Posts: 7

PostPosted: Tue Feb 06, 2007 8:19 am    Post subject: Reply with quote

It works with the installer without something happens when you try do inserts or use id's it just bombs quering works fine i say there is a problem with this package somwhere.

Maybe you can understand the jungle of words, i have gone through the code and changed all the required_once paths to point to the files and the same thing comes up. So the question is why does quering work but inserts dosent when specify what type of fields they are example interger,text etc to me logic tells me something is not right somewhere and it could well be a bug.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1051

PostPosted: Tue Feb 06, 2007 1:41 pm    Post subject: Reply with quote

ready2rumble, just for clarification: By "jungle of words" I meant your posting from " Mon Feb 05, 2007 16:40" without any punctuation mark or capitalized letter. I don't have the time to decrypt such jungles of words. Remember that people that want to help here do this in their free time.
Back to top
View user's profile Send private message
ready2rumble



Joined: 05 Feb 2007
Posts: 7

PostPosted: Tue Feb 06, 2007 4:11 pm    Post subject: Reply with quote

mark wrote:
ready2rumble, just for clarification: By "jungle of words" I meant your posting from " Mon Feb 05, 2007 16:40" without any punctuation mark or capitalized letter. I don't have the time to decrypt such jungles of words. Remember that people that want to help here do this in their free time.


Then dont help simple as that i did not come here to get an english lesson and get some snide remark. I dont have the time to read your dribble either.

I saw someone was having a problem i tried to see if i could replicate since i use the package daily i managed to get the same problem with out using the pear installer.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1051

PostPosted: Tue Feb 06, 2007 7:47 pm    Post subject: Reply with quote

It wasn't meant as "snide", it was just a description of what I saw. I assume that you yourself wouldn't want to decrypt such a text from anybody else.

Anyway, EOD for me now here.
Back to top
View user's profile Send private message
ready2rumble



Joined: 05 Feb 2007
Posts: 7

PostPosted: Wed Feb 07, 2007 8:07 am    Post subject: Reply with quote

yes i would iam not analy retentive
Rolling Eyes
Back to top
View user's profile Send private message
hradtke



Joined: 11 Feb 2007
Posts: 2

PostPosted: Sun Feb 11, 2007 7:21 am    Post subject: Reply with quote

Here is the solution that worked for me:
http://www.pear-forum.org/viewtopic.php?p=876#876
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database All times are GMT + 2 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software