php - Access external folders not on web server -


i wondering possible access folder not inside web server? eg. have xammp installation , inside htdocs folder have web app called mysite have upload folder

what wanted redirect uploads instead of going , being saved mysite\uploads saved d:\data\uploads.

is possible, presume should have been asked many times , answered many times, wasnt able find right answer maybe because haven't pinned right question.

please help.

it possible if webserver has write rights in folder.

for example if a:

file_put_contents("absolute_path_where_you_want_to_save", $file_contents); 

it work if user executing php script has correct rights (write) so.

this specially useful when reading files outside webserver, example retrieve mysql user , password file can't read if gains access folders of webserver.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -