#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Posts
    1
    Rep Power
    0
    Hi all,

    I was currious if someone could educate me on the possibilities of using PHP with an existing C/C++ codebase. I have a significant amount of data and computation intensive algorithms that need to retained in their C/C++ libraries. I would like to use PHP to abstract the presentation from the computation -- but I have not been able to determine if PHP will work, and how, with an existing C/C++ codebase.

    If anyone could tender their opinions I will look forward to reading them.

    Sincerely,
    Bill Robinson
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    59
    Rep Power
    15
    If you could run your C/C++ program as an outside program, make all it's output either go into a file, or to STDOUT, and then just call it from PHP you shouldn't have a problem, but I don't see anyway to actually combine the code into one.

    Chris
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Herne Bay, Kent, UK
    Posts
    30
    Rep Power
    14
    if you wanted to, you could compile support for your functions/libraries into your own version of PHP, but that's probably a bit too involved!!

Similar Threads

  1. Good devlopment IDE for PHP that indents code
    By grover in forum Development Software
    Replies: 5
    Last Post: May 6th, 2004, 07:36 AM
  2. PHP w/ Javascript - Mozilla adds </script> cuts off my code
    By aikoto in forum JavaScript Development
    Replies: 2
    Last Post: February 8th, 2004, 12:58 PM
  3. fread problem: doesn t compile php code
    By ghorghor2002 in forum PHP Development
    Replies: 2
    Last Post: February 3rd, 2004, 05:25 AM
  4. adding Table with PHP Code ?
    By php_beginner in forum PHP Development
    Replies: 4
    Last Post: February 2nd, 2004, 08:45 PM
  5. php code to use variables from the url
    By Nullified in forum PHP Development
    Replies: 2
    Last Post: January 30th, 2004, 02:19 PM

IMN logo majestic logo threadwatch logo seochat tools logo