FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How to make Apache to allow an executable to leave a file?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
How to make Apache to allow an executable to leave a file? [message #178823] Thu, 09 August 2012 15:00 Go to next message
thejustpark is currently offline  thejustpark
Messages: 5
Registered: August 2012
Karma: 0
Junior Member
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.
Re: How to make Apache to allow an executable to leave a file? [message #178826 is a reply to message #178823] Thu, 09 August 2012 16:07 Go to previous messageGo to next message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma: 0
Senior Member
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
Re: How to make Apache to allow an executable to leave a file? [message #178836 is a reply to message #178823] Fri, 10 August 2012 23:43 Go to previous message
behappy is currently offline  behappy
Messages: 1
Registered: August 2012
Karma: 0
Junior Member
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 ?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to NOT send empty files via email?
Next Topic: problem in creating Zip file
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Mon Nov 25 02:45:28 GMT 2024

Total time taken to generate the page: 0.02522 seconds