communication with other applications

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wiky
    New Member
    • Jul 2007
    • 3

    communication with other applications

    Hi, i am new in php and working on solaris 9. I have an application (not in php) which is trying to connect at a specific IP and Port. After connection it sends messages.I want to write a php script that can communicate with it. Any guide ?
    Thanks.

    -Waqas
  • coolsti
    Contributor
    • Mar 2008
    • 310

    #2
    I am not sure really what you want to do. But here is this:

    The usual use of PHP is calling the scripts via a web page server, e.g. Apache, as a response to a page request of type php.

    However, PHP can also be used stand alone, where you can have a script run from a console window or as part of a scheduled batch job, or invoked from another application by having that application execute it.

    The keyword here for you to look up is CLI or command line interpreter. Your installation of PHP may not already include this by default, and you may need to separately install a module. Word of advice: it is often the case that the php initialization file php.ini for the CLI invokation of PHP is not the same as the php.ini file used by e.g. the Apache server. This led me to some confusion when I first started to use CLI since I could not figure out why some of the options I had set in the Apache php.ini were being ignored when calling a script on the command line.

    Comment

    • waqashabib
      New Member
      • May 2007
      • 1

      #3
      I want to write a server that can listen on that port(8060), and can accept connection from other applications. I am using socket's functions and i am facing problem using these. ??

      Comment

      • TheServant
        Recognized Expert Top Contributor
        • Feb 2008
        • 1168

        #4
        Originally posted by waqashabib
        I want to write a server that can listen on that port(8060), and can accept connection from other applications. I am using socket's functions and i am facing problem using these. ??
        Make your own post and do not hijack this one!

        Comment

        Working...