SunQuest
           PEAR Packages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPEAR Packages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 1st, 2004, 05:45 PM
ResNet9 ResNet9 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 101 ResNet9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to ResNet9
portability error

just had a quick question, maybe someone else has run into this...

when I use the standard connection method:

php Code:
Original - php Code
  1.  
  2.             $dsn = 'mysql://my_username:my_password@my_vds';
  3.             $options = array(
  4.                 'debug'       => 2,
  5.                 'portability' => DB_PORTABILITY_ALL,
  6.             );
  7.  
  8.             $db =& DB::connect($dsn, $options);
  9.             if (DB::isError($db)) {
  10.                 die($db->getMessage());
  11.             }
  12.             else {
  13.                 return $db;
  14.             }


I get an error about the portability option:

"DB Error: unknown option portability"

any thoughts would be appreciated, thanks in advance

Reply With Quote
  #2  
Old September 1st, 2004, 05:56 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
RE: portability error

Just wondering, why are you using the DB package with PEAR instead of the core PHP functions for mysql?

Reply With Quote
  #3  
Old September 1st, 2004, 06:02 PM
ResNet9 ResNet9 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 101 ResNet9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via AIM to ResNet9
RE: portability error

don't know if I completely follow your question but I'm using pear so my web app can work on any of the major dbs.

Reply With Quote
  #4  
Old September 23rd, 2004, 05:03 PM
ednark ednark is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 25 ednark User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: portability error

check your version of DB.php.. perhaps you have an older or buggy version

you can also set portability options with the setOption() function, and if _ALL isn't working you could just bitwise AND the options you actually want together

php Code:
Original - php Code
  1.  
  2. <?php
  3.   $dbh->setOption('portability',
  4.   DB_PORTABILITY_LOWERCASE | DB_PORTABILITY_RTRIM);
  5. ?>


check this out for reference

http://pear.php.net/package/DB/docs/1.6.6/DB/DB_common.html#methodsetOption


see if any of that helps

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPEAR Packages > portability error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway