Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.php

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-09-2012, 03:00 PM
thejustpark
Guest
 
Posts: n/a
Default How to make Apache to allow an executable to leave a file?

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.
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 08-09-2012, 04:07 PM
J.O. Aho
Guest
 
Posts: n/a
Default Re: How to make Apache to allow an executable to leave a file?

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
Reply With Quote
  #3 (permalink)  
Old 08-10-2012, 11:43 PM
behappy
Guest
 
Posts: n/a
Default Re: How to make Apache to allow an executable to leave a file?

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 ?

Reply With Quote
 
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 08:10 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.