logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How to make Apache to allow an executable to leave a file?
Author
thejustpark



Joined: 09 Aug 2012
Posts: 2
Location: USA, Houston

PostPosted: Thu 09 Aug '12 7:30    Post subject: How to make Apache to allow an executable to leave a file? Reply with quote

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: 7298
Location: Germany, Next to Hamburg

PostPosted: Fri 10 Aug '12 13:53    Post subject: Reply with quote

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

PostPosted: Fri 10 Aug '12 18:05    Post subject: Reply with quote

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


Reply to topic   Topic: How to make Apache to allow an executable to leave a file? View previous topic :: View next topic
Post new topic   Forum Index -> Apache