It is a good idia to have uploader.php and all site .php in the same directory? Or not a good idia?
have connected with http://adexchat.com ? Fun up with http://forum.adexchat.com
Started on the old forum in December 2010 · view the original in the archive · old links redirect here
It is a good idia to have uploader.php and all site .php in the same directory? Or not a good idia?
have connected with http://adexchat.com ? Fun up with http://forum.adexchat.com
its safer to have the uploader not in the same directory so you can prevent php etc working in the uploaded file directory.
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
Some tips for your uploader:
exec, system, passthru, shell_exec, escapeshellarg, proc_close, proc_open, dl, popen, show_source, allow_url_fopen, eva and chmod
(not all if u use some of it) 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 the
$HTTP_SERVER_VARS["HTTP_REFERER"];
) and the second that pass the information http://siteA/upload.php?picname=$pic&thumbname=$thumb&sid=$sid ) That's all:P
yeah man i0nutzxp... that's a good trick, i've done that before too, keeps script safe away from uploads, so your script is safe even if they get sripts, etc through uploader...
C3 Themes: http://c3themes.wen.ru/index.html Find Files: http://mystarter.tk/?goto=X-search