Jump to content

Running a C program from PHP


Basab

Recommended Posts

Hi all
We need to compile a C program from PHP environment
and to execute the object file of the program.
  We used PHP system commands writing system('cc
programname.c -o objectfile') and
system('./objectfile').It works for small program(we
checked) but
in our application it was able to compile but failed
to run the objectfile.The object file when executed
should give a large(23 MB) binary file.The program is
working properly from the terminal provided we write
the command ' limit stacksize unlimited' before
running the program.The same command 'limit stacksize
unlimited' we tested in PHP but we did not get the
result.
Is it feasible in PHP or we r wrong somewhere? Can u
all please help??
                  Basab Goswami
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.