It is a good idia to have uploader.php and all site .php in the same directory? Or not a good idia?
Best way or not
Collapse
X
-
he might have misunderstood you something else..jervy is right..it doesn't matter where you place your uploader.php, the most important is the security of that uploader and its directory of uploaded files..something else meant to say that you should not put your uploader.php in the directory of uploaded files 'cause hackers might have uploaded and run php files in that directory unless your uploader.php and its directory is fully secured, otherwise they might have hacked your site.My Blog: http://jhommark.blogspot.com
My Facebook: http://www.facebook.com/jhommark
My Official Site: http://www.undergroundweb.tk
My Community Site: http://undergroundwap.xtreemhost.com
Comment
-
Some tips for your uploader:
1. Place your Uploads folder outside of public_html ( you cand open files directly in php file eg. image.php?picid=69 )
2. Make validation for your files
3. Disable the next functions:PHP Code:exec, system, passthru, shell_exec, escapeshellarg, proc_close, proc_open, dl, popen, show_source, allow_url_fopen, eva and chmod
4. Give public_html permision 710
5. On upload rename the file after it is uploaded and save the last name of it.
6. You can simple dont use Upload in your server: You have host A and host B. On A you have the script on B the upload procesor and uploaded files. In a make a html form (upload form) that go on server B. In B you upload the files and save the file name and thumb name in 2 vars. Make 2 links: 1 for Back ( use thePHP Code:$HTTP_SERVER_VARS["HTTP_REFERER"];
That's all:PLast edited by i0nutzxp; 05.12.10, 07:31.<?php unlink('World/Europe/Romania.country'); ?>
Comment
Comment