RE: [PHP-DB] DLL equivalent for php

From: Date: Sat, 07 Oct 2000 09:39:07 +0000
Subject: RE: [PHP-DB] DLL equivalent for php
References: 1  Groups: php.db php.general 
Request: Send a blank email to php-general+get-19023@lists.php.net to get a copy of this message
Create an object. If you want to keep the main body of your code small, you can use include() or require() statments to bring the object in from another source file. // get the code include "myclass.phps"; // perform other prep work ... // Create/initialize a new object $myObj = new dbHandler ("dbname","dbpassword","table","etc"); // get data $mydata = $myObj->get_items($category,$start,$count); while (...) { // use data } // or have the object handle the data internally: $myObj->show_items($category,$start,$count); HTH, -- Troy Settle Pulaski Networks 540.994.4254 ** -----Original Message----- ** From: alexandra fedorovna romantseva ** [mailto:afromant@midway.uchicago.edu] ** Sent: Friday, October 06, 2000 6:00 PM ** To: php-general@lists.php.net; php-db@lists.php.net ** Subject: [PHP-DB] DLL equivalent for php ** ** ** hi, ** i'm quite new to php and postgresql, and here's my question. ** i've previously worked in nt4 with sqlserver 7.0 and vbasic and asp ** pages. using these i was able to write .dll files in vb that ** would handle ** a particular database. then a package linked to the dll file would be ** created on the server, and then inside my asp pages i could just say ** set myitem1 = server.createobject("MyObj.Item1") where MyObj ** is the name ** of the package on the server referring to the dll file and ** Item1 is just ** some class in the dll. then myitem1 could use the member ** functions and ** methods of the Item1 class to manipulate the database from ** inside the asp ** pages. ** ** My question is, is there something equivalent to this in php and ** postgresqp, what is is and how does it work?? ** ** thanks very much, ** sasha ** ** ** ** ** -- ** PHP Database Mailing List (http://www.php.net/) ** To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net ** For additional commands, e-mail: php-db-help@lists.php.net ** To contact the list administrators, e-mail: ** php-list-admin@lists.php.net ** **

« previous php.general (#19023) next »