Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6752 > unrolled thread

How to make Apache to allow an executable to leave a file?

Started bythejustpark <thejustpark@gmail.com>
First post2012-08-09 08:00 -0700
Last post2012-08-10 16:43 -0700
Articles 3 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  How to make Apache to allow an executable to leave a file? thejustpark <thejustpark@gmail.com> - 2012-08-09 08:00 -0700
    Re: How to make Apache to allow an executable to leave a file? "J.O. Aho" <user@example.net> - 2012-08-09 18:07 +0200
    Re: How to make Apache to allow an executable to leave a file? behappy <behappy.young@gmail.com> - 2012-08-10 16:43 -0700

#6752 — How to make Apache to allow an executable to leave a file?

Fromthejustpark <thejustpark@gmail.com>
Date2012-08-09 08:00 -0700
SubjectHow to make Apache to allow an executable to leave a file?
Message-ID<1c4f8604-e08e-4c83-aa09-e596f25c4267@googlegroups.com>
Hey guys, 

I am just wondering what I can do in this situation. 
I have this simple web page, through which I want to invoke a program that leaves a file on site. 
For your information, this web page itself can write (it saves uploaded files in a specific location in the server). 
But the problem is that when I invoke the program via the web page (using a native system call in php), it doesn't produce a file in the same specific location the web page succeeded to leave a file. 

Simply speaking, my situation is 
a web page can save a file to folder A, 
but when the web page invokes a program to leave a file in the folder, it can't. 
And the question is 
how I can make the program to do so when it's invoked by the web page? 

Thanks, 
HJ.

[toc] | [next] | [standalone]


#6755

From"J.O. Aho" <user@example.net>
Date2012-08-09 18:07 +0200
Message-ID<a8i5h8FuieU1@mid.individual.net>
In reply to#6752
On 09/08/12 17:00, thejustpark wrote:

> I am just wondering what I can do in this situation.
> I have this simple web page, through which I want to invoke a program that leaves a file on site.
> For your information, this web page itself can write (it saves uploaded files in a specific location in the server).
> But the problem is that when I invoke the program via the web page (using a native system call in php), it doesn't produce a file in the same specific location the web page succeeded to leave a file.
>
> Simply speaking, my situation is
> a web page can save a file to folder A,
> but when the web page invokes a program to leave a file in the folder, it can't.
> And the question is
> how I can make the program to do so when it's invoked by the web page?

You should provide the full path to the program and depending on the 
system you are running the script, the path may have unstandardised '\' 
as directory divider in the path.

Also the command to invoke the command may or may not have a $HOME set.

-- 

  //Aho

[toc] | [prev] | [next] | [standalone]


#6765

Frombehappy <behappy.young@gmail.com>
Date2012-08-10 16:43 -0700
Message-ID<7d49c787-c737-43b4-9cb3-7e65f2af57cc@googlegroups.com>
In reply to#6752
On Thursday, August 9, 2012 8:00:16 AM UTC-7, thejustpark wrote:
> Hey guys, 
> 
> 
> 
> I am just wondering what I can do in this situation. 
> 
> I have this simple web page, through which I want to invoke a program that leaves a file on site. 
> 
> For your information, this web page itself can write (it saves uploaded files in a specific location in the server). 
> 
> But the problem is that when I invoke the program via the web page (using a native system call in php), it doesn't produce a file in the same specific location the web page succeeded to leave a file. 
> 
> 
> 
> Simply speaking, my situation is 
> 
> a web page can save a file to folder A, 
> 
> but when the web page invokes a program to leave a file in the folder, it can't. 
> 
> And the question is 
> 
> how I can make the program to do so when it's invoked by the web page? 
> 
> 
> 
> Thanks, 
> 
> HJ.

I only can think of path or permission 

did you change permission for the target directory ?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web