List Info

Thread: Adodb with Sybase it not work on CakePHP




Adodb with Sybase it not work on CakePHP
user name
2006-05-29 11:43:06
I'm using cakePHP and adodb (cake_1.0.1.2708.tar.gz ,
adodb481.tgz.gz)
and I query this sql in my.php as following:

my.php
-------------------------------------------------
class MyModel extends AppModel {

   var $name = 'My';
   var $useTable = false;
   var $useDbConfig = 'sybase';

   function view() {
      $sql = "SELECT name FROM sysobjects";
      $ret = $this->findBySql($sql);
      return $ret;
   }
}
-------------------------------------------------

When I run web browser
Then i've got an alert message box

"CGI / FastCGI has encountered a problem and needs to
close.  We are
sorry for the inconvenience."

and close message box
web browser have display:

CGI Error
The specified CGI application misbehaved by not returning a
complete
set of HTTP headers. The headers it did return are:

Please tell me the right way to use adodb-sybase


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Cake PHP" group.
To post to this group, send email to cake-phpgooglegroups.com
To unsubscribe from this group, send email to
cake-php-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Adodb with Sybase it not work on CakePHP
user name
2006-05-29 12:09:10
first, findBySql is deprecated, use query() instead.

Anyways, you have an error with CGI ? You haven't PHP as a
module in
Apache?  

If you comment findBySql, the CGI error is not shown?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Cake PHP" group.
To post to this group, send email to cake-phpgooglegroups.com
To unsubscribe from this group, send email to
cake-php-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Adodb with Sybase it not work on CakePHP
user name
2006-05-29 12:42:38
Ok,  I've change to using query().
But it same problem.

( I try to use adodb with mysql it no have problem.)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Cake PHP" group.
To post to this group, send email to cake-phpgooglegroups.com
To unsubscribe from this group, send email to
cake-php-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Adodb with Sybase it not work on CakePHP
user name
2006-05-29 16:05:50
I'm try to use native adodb with sybase its ok.
But when I use adodb with sybase via cakePHP the CGI error
is shown !

Please try solve for me.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Cake PHP" group.
To post to this group, send email to cake-phpgooglegroups.com
To unsubscribe from this group, send email to
cake-php-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Adodb with Sybase it not work on CakePHP
user name
2006-05-29 22:53:39
Okay *fine*.  I'll write a Cake-native Sybase driver!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Cake PHP" group.
To post to this group, send email to cake-phpgooglegroups.com
To unsubscribe from this group, send email to
cake-php-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Adodb with Sybase it not work on CakePHP
user name
2006-05-30 16:54:58
Thanks so much.
I'm waiting for your Cake-native Sybase and I'll very
happy to baking
with Sybase-Driver.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Cake PHP" group.
To post to this group, send email to cake-phpgooglegroups.com
To unsubscribe from this group, send email to
cake-php-unsubscribegooglegroups.com
For more options, visit this group at http://groups
.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )