PHP exec calls a C program that creates a file

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'...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2005
j3crowe
 
Posts: n/a
Default 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

Reply With Quote
  #2 (permalink)  
Old 02-25-2005
Andy Hassall
 
Posts: n/a
Default Re: PHP exec calls a C program that creates a file

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
Reply With Quote
  #3 (permalink)  
Old 02-25-2005
Default User
 
Posts: n/a
Default Re: PHP exec calls a C program that creates a file

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0