PHP exec calls a C program that creates a file

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

    PHP exec calls a C program that creates a file

    Hi,

    I'm using exec to call a compiled C program that creates/writes to a
    file...However this doesn't seem to be working....
    I tried setting all the permissions to 777 but still nothing...??

    Any help is appreciated..

    Thx,
    Joseph

  • Andy Hassall

    #2
    Re: PHP exec calls a C program that creates a file

    On 25 Feb 2005 12:25:02 -0800, "j3crowe" <joseph.crowe@g mail.com> wrote:
    [color=blue]
    >I'm using exec to call a compiled C program that creates/writes to a
    >file...Howev er this doesn't seem to be working....
    >I tried setting all the permissions to 777 but still nothing...??
    >
    >Any help is appreciated..[/color]

    Code, and in particular error messages would be a start. "doesn't seem to be
    working" and "still nothing" aren't very descriptive.

    --
    Andy Hassall / <andy@andyh.co. uk> / <http://www.andyh.co.uk >
    <http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool

    Comment

    • Default User

      #3
      Re: PHP exec calls a C program that creates a file

      j3crowe wrote:
      [color=blue]
      > Hi,
      >
      > I'm using exec to call a compiled C program that creates/writes to a
      > file...However this doesn't seem to be working....
      > I tried setting all the permissions to 777 but still nothing...??[/color]


      How could we possibly tell? What does "doesn't seem to be working" mean?

      The concept in general works. What error trapping have you tried? Have
      the C program spit out what filename it's trying to open, for a
      starter. Have you tested that program on its own?




      Brian
      #! rnews 553
      Xref: xyzzy misc.test:40788 4
      Newsgroups: misc.test
      Path: xyzzy!nntp
      From: Default User <brian_boeing@h otmail.com>
      Subject: Boeing test 2.1 (2/25)
      X-Nntp-Posting-Host: pls025033.mw.no s.boeing.com
      Content-Type: text/plain; charset=us-ascii
      Message-ID: <421F9B1C.C5022 772@hotmail.com >
      Sender: nntp@news.boein g.com (Boeing NNTP News Access)
      Content-Transfer-Encoding: 7bit
      Organization: The Boeing Company
      X-Accept-Language: en
      Mime-Version: 1.0
      Date: Fri, 25 Feb 2005 21:39:40 GMT
      X-Mailer: Mozilla 4.79 [en]C-CCK-MCD Boeing Kit (Windows NT 5.0; U)

      test

      Comment

      Working...