Thread: C, PHP interaction

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    11

    C, PHP interaction

    Does anyone know how to write functions in C or C++ and then use them in PHP?

    Thanks.

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    I wasnt aware that PHP was capable of such things. CGI can be used for this though.

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    11
    I'm not sure whether or not there is a built-in feature that does this.
    But since PHP is open-source, it may be possible to modify it in order to execute native C/C++

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    197
    only thing I can think of is having PHP exec(ing) programs.
    If any part of my post is incorrect, please correct me.

    This post is not guarantied to be correct, and is not to be taken as a matter of fact, but of opinion or a guess, unless otherwise noted.

  5. #5
    Registered User
    Join Date
    Mar 2004
    Posts
    220
    http://us3.php.net/exec

    There are of course some issues you will have to work around yourself like piping certain things, etc.
    OS: Windows XP Pro CE
    IDE: VS .NET 2002
    Preferred Language: C++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. PHP installation
    By ssharish2005 in forum Tech Board
    Replies: 8
    Last Post: 11-23-2007, 09:42 PM
  2. PHP on my Computer!
    By xxxrugby in forum Tech Board
    Replies: 4
    Last Post: 03-15-2005, 09:34 AM
  3. php script question (is this possible?)
    By Leeman_s in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 12-30-2003, 09:20 PM
  4. PHP 4.3.0 released
    By codingmaster in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-30-2002, 07:40 AM
  5. including files in php
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 07-06-2002, 10:32 AM