Re: Web services via httpd



On Feb 26, 3:18 pm, Bernhard Agthe <dark2s...@xxxxxxx> wrote:
Hi,

I need to build a web service application, I am wondering if PHP can
be used reliably because I have good familiarity with that language
(as opposed to Java). Again, I am talking about the architecture on
the server side.

"Web services" are not a new concept, nor are they linked in any way to
Java - although many (even competent) people think so.

Just search for unix man pages on the web - there are several servers.
The viewing is not static html but usually a CGI application with web
frontend.

Have a look at the "CGI-BIN" concept, you can link any application into
classical web-servers, no matter what language they're written in.

I just need an overall picture of the solution if anyone has done
something like this before.

Example:

Network -> Apache Web Server (not Tomcat) -> CGI interface -> your program

Your program communicates with Apache using stdin and stdout as well as
environment vaiables. It's all documented ;-)

PHP is just a variant of that system, although it bypasses the CGI
interface by linking directly into Apache and thus providing more
comfort and performance (which it sacrifices to the scripting engine).

Before everybody started writing "Web apps", PHP+Apache+MySQL was "THE
WAY", so there is nothing wrong with it, it's just not "trendy"...

I hope to have answered your questions ;-)

Yes, that was very helpful. Thank you. Indeed I did a Google search
for "web services with php" and got a lot of helpful links relating
exactly to what you mention and that I need.

I discovered the XML-RPC extension of PHP at http://www.xmlrpc.com/.
Now to get started developing some web enabled apps ;-)
.



Relevant Pages

  • Re: Is anybodys favorite computer programming language not included here?
    ... to talk about getting me some paying work writing Java classes. ... and could be copied to a script (as in Java BeanShell or Lisp PROG). ... >> please post a followup saying what language it is, ... Server: "Mother, ...
    (comp.programming)
  • Re: PHP or COLDFUSION
    ... I have to say, as a language, I think PHP is more ... > powerful/capable (without having to resort to Java). ... PHP is a coding language, ... early CF developers were good content-oriented ...
    (comp.lang.php)
  • Re: [PHP] Persistent Objects
    ... Do give the PHP way a fair shot, and do some real-world testing before ... Java way, just go back to Java and be happy :-) ... "web developers" at work. ... processes / crons and many other things then It would be a language of ...
    (php.general)
  • Re: How about the future of PHP compared with Java?
    ... have been looking around for a different language to add to my bag of ... skills, and a professor at a local college, who has experience in both ... PHP and Java,tells me he is sold on .NET. ... The problems he found with Java, he says, are "just fixed" in .NET. ...
    (comp.lang.php)
  • Re: Case sensitivity in programming languages.
    ... Is any language issued with a set of function names in different ... You get a warning if you reference an undeclared variable in PHP if your ... the transfer of this "convention" from an obviously inferior language is ... Java is inferior to PHP or COBOL? ...
    (comp.lang.php)