ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » MQSeries and PHP

Post new topic  Reply to topic
 MQSeries and PHP « View previous topic :: View next topic » 
Author Message
bduncan
PostPosted: Thu Aug 16, 2001 4:12 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

I have a lot of experience coding MQSeries applications in Perl. Sometimes these applications are standalone, othertimes they are executed as cgi in a web-server. But for about the past year or so I have been using PHP more and more for generating dynamic pages. Now I was thinking that with PHP and MQSeries on Linux, I could effectively create a poor man's scalable web site by having a bunch of machines running mysql databases, and put them in a cluster with a few webservers running apache. Using a PHP interface to MQSeries, I could send a SQL query to a clustered queue that exists on all the database servers, my queries would round-robin between them.
There's just one little problem. There is no PHP API for MQSeries. I was thinking about trying to code this myself, but I wanted to make sure of a few things...
1) There are others out there who might actually find use for this
2) Is it even feasible? The Perl API uses XLC as a front-door to the C API for MQSeries. I don't know of such a thing for PHP.
3) Am I going to get better performance than just using the Perl API? Because we all know PHP generates the exact same HTML faster than Perl (I can already feel the angry stares!) but is that any indication that it can talk to a queue manager any faster?
Any thoughts, inputs, advice, words of caution (or encouragement), would be appreciated!



_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
mauwolff
PostPosted: Wed Sep 03, 2003 7:01 am    Post subject: Reply with quote

Newbie

Joined: 03 Sep 2003
Posts: 1

http://pear.php.net/package/mqseries

but there's no binary version. if you can compile for win2k, please let me know.
Back to top
View user's profile Send private message
cmdmqm
PostPosted: Tue Nov 04, 2003 4:45 am    Post subject: Reply with quote

Novice

Joined: 04 Feb 2002
Posts: 24
Location: Berlin

Hi,

did someone succeed with this package?

Bye,
cmdmqm
Back to top
View user's profile Send private message
dpchiesa
PostPosted: Tue Aug 17, 2004 3:17 pm    Post subject: another option Reply with quote

Apprentice

Joined: 29 May 2002
Posts: 46

if you are on Windows, another option for getting to MQ from PHP may be to use the COM interface (MQAX).

I have previously used the PHP-COM stuff for other components, but never tried with MQAX.

-D
_________________
-dpchiesa
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 17, 2004 6:56 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Quote:
Now I was thinking that with PHP and MQSeries on Linux, I could effectively create a poor man's scalable web site by having a bunch of machines running mysql databases, and put them in a cluster with a few webservers running apache.


Brian:
Using Apache:... excuse me for asking a stupid question... Would a java servlet be too slow ??

Thanks
F.J.
Back to top
View user's profile Send private message Send e-mail
bduncan
PostPosted: Wed Aug 18, 2004 11:29 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

No, in fact it might be faster than PHP because it's compiled rather than interpreted on the fly. I only suggested it because many small-time websites are written in PHP or Perl rather than Java, so having an MQ API would be useful so you don't have to rewrite your site in Java.
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
GeraldMueller
PostPosted: Mon Oct 04, 2004 5:09 am    Post subject: Reply with quote

Newbie

Joined: 04 Oct 2004
Posts: 1

Hello,
I have the same problem. I want to test the connection PHP <--> MQseries.
Find youe a way to do this?

bduncan wrote:
I have a lot of experience coding MQSeries applications in Perl. Sometimes these applications are standalone, othertimes they are executed as cgi in a web-server. But for about the past year or so I have been using PHP more and more for generating dynamic pages. Now I was thinking that with PHP and MQSeries on Linux, I could effectively create a poor man's scalable web site by having a bunch of machines running mysql databases, and put them in a cluster with a few webservers running apache. Using a PHP interface to MQSeries, I could send a SQL query to a clustered queue that exists on all the database servers, my queries would round-robin between them.
There's just one little problem. There is no PHP API for MQSeries. I was thinking about trying to code this myself, but I wanted to make sure of a few things...
1) There are others out there who might actually find use for this
2) Is it even feasible? The Perl API uses XLC as a front-door to the C API for MQSeries. I don't know of such a thing for PHP.
3) Am I going to get better performance than just using the Perl API? Because we all know PHP generates the exact same HTML faster than Perl (I can already feel the angry stares!) but is that any indication that it can talk to a queue manager any faster?
Any thoughts, inputs, advice, words of caution (or encouragement), would be appreciated!


Back to top
View user's profile Send private message
kman
PostPosted: Thu Jan 12, 2006 12:05 am    Post subject: Reply with quote

Partisan

Joined: 21 Jan 2003
Posts: 309
Location: Kuala Lumpur, Malaysia

I am quite curious on this topic, and where it was heading. Any development on this?
Back to top
View user's profile Send private message Yahoo Messenger
Michael Dag
PostPosted: Wed Dec 20, 2006 2:07 am    Post subject: SAM: A PHP interface to messaging providers Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

SAM, or Simple Asynchronous Messaging, is a project to make accessing
messaging and queueing systems simpler. We have produced an
implementation which allows PHP systems to connect with IBM WebSphere MQ
queue managers, IBM WebSphere Business Integration Brokers over
Real-Time Transport, or with the default messaging provider found in IBM
WebSphere Application Server v6.

Project SAM is currently at version 0.3.0 - this includes publish /
subscribe functionality, along with point-to-point connectivity.

More details on the project, along with links to download the package,
can be found at the website http://project-sam.awardspace.com, or on the
Pecl site at http://pecl.php.net/package/sam.
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQSeries and PHP
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.