| View previous topic :: View next topic |
| Author |
Message |
da
Joined: 26 Dec 2006 Posts: 1
|
Posted: Tue Dec 26, 2006 5:35 pm Post subject: MDB2::include_once(MDB2/Datatype.php) |
|
|
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 |
|
 |
mrsocks
Joined: 03 Feb 2007 Posts: 14
|
Posted: Sun Feb 04, 2007 8:40 am Post subject: |
|
|
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 |
|
 |
ready2rumble
Joined: 05 Feb 2007 Posts: 7
|
Posted: Mon Feb 05, 2007 2:49 pm Post subject: |
|
|
| 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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1051
|
Posted: Mon Feb 05, 2007 5:18 pm Post subject: |
|
|
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 |
|
 |
ready2rumble
Joined: 05 Feb 2007 Posts: 7
|
Posted: Mon Feb 05, 2007 5:40 pm Post subject: |
|
|
| 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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1051
|
Posted: Mon Feb 05, 2007 6:25 pm Post subject: |
|
|
| 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. |
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 |
|
 |
mrsocks
Joined: 03 Feb 2007 Posts: 14
|
Posted: Mon Feb 05, 2007 7:24 pm Post subject: |
|
|
| mark wrote: |
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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1051
|
Posted: Mon Feb 05, 2007 11:56 pm Post subject: |
|
|
| mrsocks wrote: | | mark wrote: |
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 |
|
 |
mrsocks
Joined: 03 Feb 2007 Posts: 14
|
Posted: Tue Feb 06, 2007 1:31 am Post subject: |
|
|
I guess I missed the 'help' in:
| mark wrote: |
You don't really expect anybody to decrypt this jungle of words, do you?
|
|
|
| Back to top |
|
 |
ready2rumble
Joined: 05 Feb 2007 Posts: 7
|
Posted: Tue Feb 06, 2007 8:19 am Post subject: |
|
|
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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1051
|
Posted: Tue Feb 06, 2007 1:41 pm Post subject: |
|
|
| 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 |
|
 |
ready2rumble
Joined: 05 Feb 2007 Posts: 7
|
Posted: Tue Feb 06, 2007 4:11 pm Post subject: |
|
|
| 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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1051
|
Posted: Tue Feb 06, 2007 7:47 pm Post subject: |
|
|
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 |
|
 |
ready2rumble
Joined: 05 Feb 2007 Posts: 7
|
Posted: Wed Feb 07, 2007 8:07 am Post subject: |
|
|
yes i would iam not analy retentive
 |
|
| Back to top |
|
 |
hradtke
Joined: 11 Feb 2007 Posts: 2
|
|
| Back to top |
|
 |
|