Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How to make Apache to allow an executable to leave a file? |
|
Author |
|
thejustpark
Joined: 09 Aug 2012 Posts: 2 Location: USA, Houston
|
Posted: Thu 09 Aug '12 7:30 Post subject: 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. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 10 Aug '12 13:53 Post subject: |
|
|
Error log?
I guess that is has to do with the persmission of that folder. Which OS do you run? |
|
Back to top |
|
thejustpark
Joined: 09 Aug 2012 Posts: 2 Location: USA, Houston
|
Posted: Fri 10 Aug '12 18:05 Post subject: |
|
|
Yes I realized that error messages do not come.
And on the Internet I found why based on the first reply on http://php.net/manual/en/function.system.php.
And the error log talked about the permission, so I changed the permission to 777, and now it's working.
Anyway, thanks a lot! |
|
Back to top |
|
|
|
|
|
|