graphicore Posted January 7, 2007 Posted January 7, 2007 I moved my downloads folder behind /public_html folder on the server to protect its contents from robots and search engines and configure the downloads to get the files from there. I also change the download configuration to redirect=true; so that it copies he files to be downloaded into the pub folder in osc. But when I click on the download link on the order I get the file but the content of the file says: <b>Warning</b>: symlink(): SAFE MODE Restriction in effect. The script whose uid is 32330 is not allowed to access /home/srise17/publi How can I avoid this??????
graphicore Posted January 8, 2007 Author Posted January 8, 2007 Download by redirect (False) Script used: readfile(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']); } Error: <br /> <b>Warning</b>: readfile() has been disabled for security reasons in <b>/home/srise17/public_html/osc/download.php</b> on line <b>98</b --------------------------------------------------------------- Download by redirect (True) Script used: tep_unlink_temp_dir(DIR_FS_DOWNLOAD_PUBLIC); $tempdir = tep_random_name(); umask(0000); mkdir(DIR_FS_DOWNLOAD_PUBLIC . $tempdir, 0777); symlink(DIR_FS_DOWNLOAD . $downloads['orders_products_filename'], DIR_FS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']); tep_redirect(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . $downloads['orders_products_filename']); Error: <br /> <b>Warning</b>: symlink(): SAFE MODE Restriction in effect. The script whose uid is 32330 is not allowed to access /home/srise17/publi IS anywhere a workaround to fix this????? Please need info asap...
graphicore Posted January 9, 2007 Author Posted January 9, 2007 Well... Here we go again. Since there was no response at all at this threat... and after hitting the wall with my head several times... :P I decided to make a deep research and came out with my second contribution to continue on this "Download Saga" :) This solved the problem described in this post: http://www.oscommerce.com/community/contri...y/search,140310 Enjoy and long live PHP & OSCommerce!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.