This is a discussion on PHP exec calls a C program that creates a file within the PHP Language forums, part of the PHP Programming Forums category; Hi, I'm using exec to call a compiled C program that creates/writes to a file...However this doesn'...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
On 25 Feb 2005 12:25:02 -0800, "j3crowe" <joseph.crowe@gmail.com> wrote:
>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.. 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.andyhsoftware.co.uk/space> Space: disk usage analysis tool |
|
|||
|
j3crowe wrote:
> 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...?? 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:407884 Newsgroups: misc.test Path: xyzzy!nntp From: Default User <brian_boeing@hotmail.com> Subject: Boeing test 2.1 (2/25) X-Nntp-Posting-Host: pls025033.mw.nos.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <421F9B1C.C5022772@hotmail.com> Sender: nntp@news.boeing.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 |