dbTalk Databases Forums  

MV-database independence & PHP

comp.databases.pick comp.databases.pick


Discuss MV-database independence & PHP in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dawn
 
Posts: n/a

Default MV-database independence & PHP - 11-14-2005 , 09:58 AM






Has anyone developed an MV database-independent library for PHP that
works with at least U2 and OpenQM? --dawn


Reply With Quote
  #2  
Old   
Tony Gravagno
 
Posts: n/a

Default Re: MV-database independence & PHP - 11-14-2005 , 02:50 PM






"dawn" wrote:
Quote:
Has anyone developed an MV database-independent library for PHP that
works with at least U2 and OpenQM? --dawn
When running over Windows, PHP can use COM objects. So if you don't
have "native" PHP DBMS connectivity for a specific DBMS you can use
tools that are already available like UO or the D3 Class Library.
Specific to your "database-independent" query, note that mv.NET does
work with a wide variety of databases, and can be enhanced to work
with others based on demand. So...
PHP <> COM <> COM Interop <> mv.NET <> any MV DBMS

Again, the DBMS can be running on any OS, the other parts need to be
running in Windows.

If you're running PHP on a *nix web server, another way to do this is
to use Web Services from PHP to make a request to a Windows box that's
using whatever tools you're comfortable with. So... You can use the
above architecture, calling from PHP/*nix to PHP/Win. You can replace
the COM layer later as better options come available without
disturbing your web code (very MVC-friendly).
The Windows box doesn't need to be exposed to the net, a low-profile
box on the LAN is all that's required.

Abstracting even further (and I hope I haven't lost anyone), you can
write your own data access layer and use this as an abstraction from
your PHP application code, so that for example, you go direct into QM
but you use a Web Service to get into U2. Diagram:
PHP <> Data access abstraction <> platform-specific access

When comparing the cost of development vs the cost of purchase,
consider that what you're asking for is available starting at about
US$250. If you have an end-user that needs a solution "soon" then you
might want to consider this sort of architecture as an interrim
solution, as you seek or build something else.

These same techniques can be used for any language or platform
including Java, Perl, Ruby, etc.

Feel free to contact me off-list for more info.
Tony
TG @ removethisNebula-RnD .com



Reply With Quote
  #3  
Old   
michael@preece.net
 
Posts: n/a

Default Re: MV-database independence & PHP - 11-14-2005 , 05:11 PM



It might be interesting to hear from John Lombardo on this.


Reply With Quote
  #4  
Old   
qbits let the cat live
 
Posts: n/a

Default Re: MV-database independence & PHP - 11-14-2005 , 08:26 PM



the interest is that php is like proc


Reply With Quote
  #5  
Old   
Tony Gravagno
 
Posts: n/a

Default Re: MV-database independence & PHP - 11-15-2005 , 02:38 AM



michael (AT) preece (DOT) net wrote:
Quote:
It might be interesting to hear from John Lombardo on this.
Mike, please correct me if I'm wrong but I think you're referring to
this Perl code that John posted to CDP, not PHP:
http://tinyurl.com/dv9lf

Jumping in because I believe John has a real job these days, in a
non-MV environment. He probably doesn't visit CDP much anymore.
Could be wrong...

T


Reply With Quote
  #6  
Old   
Kevin Powick
 
Posts: n/a

Default Re: MV-database independence & PHP - 11-15-2005 , 08:09 AM



Tony Gravagno wrote:

Quote:
I believe John has a real job these days, in a
non-MV environment. He probably doesn't visit CDP much anymore.
Too bad. Just *look* at everything he's missing. ;-)

--
Kevin Powick


Reply With Quote
  #7  
Old   
dawn
 
Posts: n/a

Default Re: MV-database independence & PHP - 11-15-2005 , 10:02 AM




Glen B wrote:
Quote:
"dawn" <dawnwolthuis (AT) gmail (DOT) com> wrote in message
news:1131983909.737204.32750 (AT) f14g2000cwb (DOT) googlegroups.com...
Has anyone developed an MV database-independent library for PHP that
works with at least U2 and OpenQM? --dawn

Fishing for sharks can be painful. <g
And I realize it is a new spin on an old question.

Quote:
I guess the biggest question I
have is, how do you want the library interfaced?
I would like an API usable from within PHP for CRUD services where I
could specify a data source of any of the MV platforms. Additionally,
I would like performance to be great with scalability on each platform.
I'm sure I'm missing some requirements, but you get the idea ;-)

Quote:
I could put together a
couple of simple HTML or XML based modules through MVWWW and deploy it later
this week on QM,U2,D3,etc if you wanted. I doubt that's what you had in mind
though.
You have mentioned before that you have cross-platform connectivity --
can you point me to anything about it?

Quote:
With the vast variety of interfacing options, it's going to be hard
to build a "universal remote" for PHP unless you build it through a couple
of levels. If you want speed, then multiple levels is not an option.
If all work with asynch with the UI, that might help mitigate some of
the loss of speed.

Quote:
My
first choice with direct integration would be to build a monolithic C module
that has a separate driver service. The drivers would have to either be IPC
connected daemons/services or shared libs/dll. My choice there would be IPC
since it would be easy to load more than one driver service and access them
all, randomly, from the same client. An added, and quite important, benefit
is the load splitting that will occur among the interface module and the
services. A shared object will be loaded and run in the same user heap as
the module, while a driver service can be run in its own user space and
potentially on its own processor. I'll stop rambling senselessly now.
Some of it made sense to me. I have worked with UOJ, which needed
connection pooling to scale (which they have with the latest release
for a price). I have also worked with ODBC. But I have not written
any such driver and I have not worked on being cross-platform before,
so you know a lot more than I do about this. Thanks. --dawn

Quote:
Glen



--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access


Reply With Quote
  #8  
Old   
michael@preece.net
 
Posts: n/a

Default Re: MV-database independence & PHP - 11-15-2005 , 07:23 PM




Tony Gravagno wrote:

Quote:
michael (AT) preece (DOT) net wrote:
It might be interesting to hear from John Lombardo on this.

Mike, please correct me if I'm wrong but I think you're referring to
this Perl code that John posted to CDP, not PHP:
http://tinyurl.com/dv9lf

Jumping in because I believe John has a real job these days, in a
non-MV environment. He probably doesn't visit CDP much anymore.
Could be wrong...

T
I don't know why I get a 403 (forbidden by proxy) here when I try to
take that link but I do. A quick google of CDP for Lombardo & perl
showed 2 or three candidate postings. I wasn't actually referring to
any post in particular though. I never really understood why John was
giving us those perls of wisdom btw. Why not just use FC as is and do
things inside Pick? Sorry if that recurring theme is beginning to grate
- but it's how I think. Show me the error of my ways and I'll stop
making the mistake - if that's what it is.

<major point>Pick is a application server and a DBMS in one</major
point>

It's more that I took a fairly (OK - very) free interpretation on the
subject line - and took it to mean "How do we connect a web-server to
any MV flavour to run PickBasic subroutines/applications just like we
do with FlashCONNECT - with all of the 'extras' that come with FC -
maybe using PHP?" - and thought what a shame it is that the work John
did in porting FC to UniVerse (with plans for UniData & jBase too),
back in the day, was very likely wasted while RD wait for a business
case to roll it out. How will people (other than those who have "seen
the FC light") know it's any good if it's never released? A bit of a
catch-22 that.

John seems to me to be the best independent person, possibly along with
Doug Dumitru, to talk about authoring tools for connecting things on
the web-server with Pick - afaik. Where John's and Doug's approaches
differ is that John "plugged stuff in" to existing web-servers and Doug
took over and wrote a Pick web-server himself. Personally, I prefer
John's approach. Why? Well - it's similar to the reason we (at HHH)
went with FC rather than try to DIY. Let someone else take
responsibility for any "issues" and keep abreast of, or forge ahead in,
new developments in web-server technology. FC is, was, and is likely to
remain, an excellent way to connect web-severs to Pick. Just a shame
it's not free - as it once was - and that the plans to roll out
versions across all MV flavours have been shelved.

Mike.

PS. I hope you don't feel left out by the above Tony. You seem to me to
be really good at getting the best out of existing tools. I'm assuming
John and Doug are better at writing code to build tools. I'm not
confident in this belief though - you've proved yourself to be very
clever.



Reply With Quote
  #9  
Old   
Tony Gravagno
 
Posts: n/a

Default Re: MV-database independence & PHP - 11-17-2005 , 01:36 AM



michael (AT) preece (DOT) net wrote:
Quote:
FC is, was, and is likely to
remain, an excellent way to connect web-severs to Pick. Just a shame
it's not free - as it once was - and that the plans to roll out
versions across all MV flavours have been shelved.
All else acknowledged, I just wanted to respond to this last part.
When FC was free people didn't care any more than they do now, so
"free" doesn't seem to be a factor in it's acceptance. There are some
products that cost less than FC and others that cost more, success
doesn't seem to depend entirely on cost. I think it's more a matter
of marketing and public awareness - squeaky wheel gets the grease, so
to speak. FC was never marketed properly, no real drive to get people
to use it. Like all of RD's products it was just put out there and
PS/RD expects people to adopt it all on their own initiative. Even
now I'm tutoring a developer on how to use FC because there is
virtually no other information available for navigating this fine
product. This is precisely the reason why I wanted to do all of those
demos for WUC 2000, to open people's eyes to the possibilities. If RD
had marketed FC across platforms the same way they marketed to the D3
user base then it would have been a dud anyway, so maybe it's better
that they didn't even try.

And FC is only $1500 for end-users and still comes free with D3
developer licenses. If a VAR can sell their application to a new
audience of people that wants a web UI instead of telnet clients then
this is a small price to roll into the total product price - same goes
for any for-fee or for-free tools we discuss here. A non-persistent
web interface can be especially economical for end-users considering
the multiple client/license usage model which makes these web
solutions less expensive for the end-user than the persistent user,
per-seat model. So I've never been able to see how even at $1500 that
people can complain about price.

Quote:
Mike.

PS. I hope you don't feel left out by the above Tony. You seem to me to
be really good at getting the best out of existing tools. I'm assuming
John and Doug are better at writing code to build tools. I'm not
confident in this belief though - you've proved yourself to be very
clever.
No offense taken Mike, you're right, I don't pretend to be in their
calibre and I respect them both immensely. John and Doug have spent a
lot of time building tools in *nix with C and assembler. I never
enjoyed C or assembler (BAL or PA) and prefer to work with existing
tools at higher tiers of abstraction. Thanks for the nod.

T


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.