Calling PHP from a windows process

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Horst Haas

    Calling PHP from a windows process

    Hallo NG,

    I'm calling PHP from a windowsprocess in a simple Webserver application. I'm using the createprocess Windows API command....

    C:\Php\PHP Filename.php


    In this file I will open a TCP/IP connection to my SQL-server. When I do so, I always get the following error
    mysql_connect() : Can't create TCP/IP socket (10106)

    No I start a command shell and I call the same...
    C:\Php\PHP Filename.php

    This will work without any error!!

    Same effect I get from all TCP/IP Actions (FTP etc....)

    Can somebody help me. Is it a PHP Setting, a server variable or a WindowsXP Access right problem???
    thanks

    horst.haas


  • Garp

    #2
    Re: Calling PHP from a windows process


    "Horst Haas" <100046.1205@Co mpuserve.com> wrote in message
    news:c68627$i1b $02$1@news.t-online.com...[color=blue]
    > Hallo NG,
    >
    > I'm calling PHP from a windowsprocess in a simple Webserver application.[/color]
    I'm using the createprocess Windows API command....[color=blue]
    >
    > C:\Php\PHP Filename.php
    >
    >
    > In this file I will open a TCP/IP connection to my SQL-server. When I do[/color]
    so, I always get the following error[color=blue]
    > mysql_connect() : Can't create TCP/IP socket (10106)
    >
    > No I start a command shell and I call the same...
    > C:\Php\PHP Filename.php
    >
    > This will work without any error!!
    >
    > Same effect I get from all TCP/IP Actions (FTP etc....)
    >
    > Can somebody help me. Is it a PHP Setting, a server variable or a[/color]
    WindowsXP Access right problem???[color=blue]
    > thanks
    >
    > horst.haas[/color]

    Google much?


    seems very comprehensive.

    Garp


    Comment

    Working...