Re: [PHP] recv() socket question



OK, I will try and contact Juan. I wrote the Java server. I believe the
Java side is working because I can send/receive messages just fine
using other clients written in other languages, just not the php
client...

Regards,

-Jeff

--- Richard Lynch <ceo@xxxxxxxxx> wrote:

On Thu, September 28, 2006 10:14 am, Jeff Lanzarotta wrote:
I am writing a web page that contains some php code the will
send/receive a message from a java application running on our
server.

The php code successfully sends a message to the server but will
not,
as far as I know, receive the message back. The only way I know
this
is
that I attempt to echo out the message that is received and nothing
prints...

I am very new to php so I am using 'class.ClientSocket.php' written
by
Juan M. Hidalgo to do all the communications...

What is odd is that I receive no errors either from either side.

Any ideas would be greatly appreciated.

You could try contacting Juan and/or the Java guy who wrote the
code...

You should also start reading class.ClientSocket.php and figuring out
how it works and adding debugging statements to see what's going on.

Ye Olde 'echo "got here\n";' is often the best answer in this
situation.

--
Like Music?
http://l-i-e.com/artists.htm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


.



Relevant Pages

  • Re: Web services via httpd
    ... the server side. ... Java - although many people think so. ... no matter what language they're written in. ... PHP is just a variant of that system, ...
    (comp.os.linux.development.apps)
  • Re: my little comments on jsp and php
    ... I learned jsp for about 5 years, and learned php for about 4 ... You need to do the same with regular Web apps on any server. ... I have made many Java projects using the identical build.xml. ... presentation layer, logic layer, data layer. ...
    (comp.lang.java.programmer)
  • Re: Save an Image to a file
    ... I don't really know any java... ... -Do you or does anyone have a nice method that converts a BufferedImage ... Write the BufferedImage to your server ... I've never used PHP but I have processed form data with Perl. ...
    (comp.lang.java.programmer)
  • Re: New users query
    ... > My task is to develop a simple applet that will reside on a local web ... > server that will run on PCs connected to it. ... You may find HTML forms and something like PHP to be quicker and easier than ... if you want drop down boxes you will need to learn Java ...
    (comp.lang.java.help)
  • Re: Passing a Java variable to local PHP script.
    ... "Andy R." ... Now I need to pass the java variable ... > neccessary to generate the page via .php on the webserver and send it ... > returned to the server, ...
    (comp.lang.php)