Thread: c compiler to php compiler

  1. #1
    Registered User
    Join Date
    Apr 2017
    Posts
    11

    c compiler to php compiler

    I have an code with executable file in c language basically my os is an linux.i want that executable .exe file to execute in the php compiler how can i do it.for example i have taken a simple hello world program

    Code:
    #include<stdio.h>
    
    int main()
    {
    printf("hello");
    }
    I changed it into .exe file c compiler to php compiler-executable-png

    From this how can i run in php compiler.

  2. #2
    Registered User
    Join Date
    Oct 2015
    Posts
    11
    Hello,
    What exactly do you mean ? Do you want to launch the executable from the PHP interpreter ?

  3. #3
    Registered User
    Join Date
    Apr 2017
    Posts
    80
    Is this what you're after? PHP: system - Manual It's a PHP rather than C question if so.

  4. #4
    Registered User
    Join Date
    Apr 2017
    Posts
    11
    Hi levenstein,
    Not exactly! I have an function in php in the format of in-built source code file of that function in c language.So now what i do is that on compile the c file i got an executable file using those executable file in c.I want to run the php function to get the output in php.

    For clarification Example:
    One of the function in php -> crypt( )
    I have an source code of that crypt( ) function which is built in c language.
    I do some of the modification in that in-built code which is in c language.
    After that now i compile the in-built code and got an executable file in c.
    By using this executable file i want to run the crypt() function in php compiler and want the output in php.

  5. #5
    Registered User
    Join Date
    Apr 2017
    Posts
    11
    Hi BpB,
    Ya well, is there any way to work because the code is in c language and c is major for all the other language.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 04-23-2012, 07:54 AM
  2. Replies: 7
    Last Post: 12-13-2010, 10:02 PM
  3. Replies: 4
    Last Post: 09-12-2009, 01:10 PM
  4. Replies: 2
    Last Post: 02-04-2008, 02:34 AM
  5. hp iPAQ 6300 && C compiler || C# compiler
    By xddxogm3 in forum Tech Board
    Replies: 2
    Last Post: 12-07-2004, 07:28 AM

Tags for this Thread