Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,799 members, 7,817,308 topics. Date: Saturday, 04 May 2024 at 09:56 AM

I Need A Secure Image Upload Php Script. Anyone? - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / I Need A Secure Image Upload Php Script. Anyone? (1343 Views)

Where To Get A Secure Online Sport Betting Script? / How To Enable Image Upload On Wordpress Comments / [help Needed]need To Embed A Secure Payment System For My Web Site (2) (3) (4)

(1) (Reply) (Go Down)

I Need A Secure Image Upload Php Script. Anyone? by Joel3(m): 9:28am On Jul 10, 2014
are you there? Help me point to one...
Re: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m): 1:44pm On Jul 10, 2014
print ('I ' . ($version=='free_version' ? 'No' : 'Yes') );
Re: I Need A Secure Image Upload Php Script. Anyone? by Joel3(m): 3:54pm On Jul 10, 2014
dhtml: print ('I ' . ($version=='free_version' ? 'No' : 'Yes') );

php?

<div= free version for now. >

<-- Yes free--> </div>
Re: I Need A Secure Image Upload Php Script. Anyone? by Joel3(m): 4:01pm On Jul 10, 2014
admin control yes
Register yes
Registered member yes
Registered member upload file yes
search yes
Login yes
Logout yes
Download yes
Image view yes
Re: I Need A Secure Image Upload Php Script. Anyone? by Nobody: 4:04pm On Jul 10, 2014
zz
Re: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m): 4:11pm On Jul 10, 2014
Joel3: admin control yes
Register yes
Registered member yes
Registered member upload file yes
search yes
Login yes
Logout yes
Download yes
Image view yes
I can do it in less than an hour, but FREE? NO FREAKING WAY EXCEPT I-DON-DEY-MADT!
Re: I Need A Secure Image Upload Php Script. Anyone? by Joel3(m): 10:39pm On Jul 10, 2014
rutchiekens:

That involves sql... U better learn it or pay someone to help u do it. Cos the things u listed is a website on its own.
ok what about the one with no sql table.

A secure script that do not accept any extension other than jpg, png and gif only. And rename of file oreginal filename. No .php trick.
Re: I Need A Secure Image Upload Php Script. Anyone? by onyengbu: 10:53pm On Jul 10, 2014
Joel3: ok what about the one with no sql table.

A secure script that do not accept any extension other than jpg, png and gif only. And rename of file oreginal filename. No .php trick.
You have no idea what you are asking.
Let me just sit back and see the person that will perform such charity for you...
Re: I Need A Secure Image Upload Php Script. Anyone? by Nobody: 10:57pm On Jul 10, 2014
zz
Re: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m): 12:21am On Jul 11, 2014
onyengbu:
You have no idea what you are asking.
Let me just sit back and see the person that will perform such charity for you...
A good samaritan maybe.
Re: I Need A Secure Image Upload Php Script. Anyone? by adewasco2k(m): 4:17am On Jul 11, 2014
I was here
Re: I Need A Secure Image Upload Php Script. Anyone? by tabontabon: 6:30am On Jul 11, 2014
Joel3: are you there? Help me point to one...
be specific about your requirement. i may help you for free,if PHCN behaves.
Re: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m): 6:47am On Jul 11, 2014
tabontabon:
be specific about your requirement. i may help you for free,if PHCN behaves.
Someone slap me thrice and hand me over to my mamma 'cos adonbilivit! a good samaritan comes at long last just as all hope for awoof was getting lost!
Re: I Need A Secure Image Upload Php Script. Anyone? by tabontabon: 6:53am On Jul 11, 2014
dhtml:
Someone slap me thrice and hand me over to my mamma 'cos adonbilivit! a good samaritan comes at long last just as all hope for awoof was getting lost!
do u need pinshures! to blivit? There is an if attached 2d offer sha,PHCN bhaving. Cant burn fuel for freebie.
Re: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m): 7:05am On Jul 11, 2014
Even with pinshures, adonbiliv-iwillbilivit!
[size=18pt]*WHISTLING AND CHEERING LOUDLY*[/size]
Re: I Need A Secure Image Upload Php Script. Anyone? by Joel3(m): 7:43am On Jul 11, 2014
i have a forum script and I want to integrate image upload option on forum menu, linking to image upload script I will install separately in another directory.

i wouldnt welcomes external link to image files such as [img]<--right here-->[/img].

It will be user friendly. The risk side is that. You know that image upload script has a lot of casualties when it come to security issues. In fact They are the most victims of hacking to gain access to host Server. the script can be easily trick with file name like image.jpg.php since it will be generating a link for each upload then it can easily becomes an open threat.

Google more about it.


image upload is a very dangerous. So a cropping of image and resizing also renaming is a most for top security.
Re: I Need A Secure Image Upload Php Script. Anyone? by olyivy(f): 8:03am On Jul 11, 2014
Joel3: i have a forum script and I want to integrate image upload option on forum menu, linking to image upload script I will install separately in another directory.
i wouldnt welcomes external link to image files such as [img]<--right here-->[/img].

It will be user friendly. The risk side is that. You know that image upload script has a lot of casualties when it come to security issues. In fact They are the most victims of hacking to gain access to host Server. the script can be easily trick with file name like image.jpg.php since it will be generating a link for each upload then it can easily becomes an open threat.

Google more about it.


image upload is a very dangerous. So a cropping of image and resizing also renaming is a most for top security.

You are quite good at dishing out specifications though I cant say same about cash.
You also seem to know more about risks attached to what you desire which, surprisingly and unfortunately, you have no idea how to put together.
What do I name your character? grin angry
Re: I Need A Secure Image Upload Php Script. Anyone? by Joel3(m): 8:27am On Jul 11, 2014
olyivy:
You are quite good at dishing out specifications though I cant say same about cash.
You also seem to know more about risks attached to what you desire which, surprisingly and unfortunately, you have no idea how to put together.
What do I name your character? grin angry

Name of Character? umm maybe funny.


As for the rest, Yes you are right i have no ideal how to put them togather, but sure i will know a secure one once i sees it.
Re: I Need A Secure Image Upload Php Script. Anyone? by Joel3(m): 8:38am On Jul 11, 2014
can someone help to fix this. Seems to be error. A good coder should glance at it. Prove to me you are good. Anyone there are you good. Show it to me...


<?php if(isset($_POST['submit'])){
if (isset ($_FILES['new_image'])){
$imagename = $_FILES['new_image']['name'];
$source = $_FILES['new_image']['tmp_name'];
$target = "temp/".$imagename; move_uploaded_file($source, $target); $imagepath = $imagename;
$save = "images/" . $imagepath; //This is the new
file you saving list($width, $height) = getimagesize($target); $modwidth = 500;
$diff = $width / $modwidth;
$modheight = $height / $diff; $tn = imagecreatetruecolor($modwidth,
$modheight) ;
$image = imagecreatefromjpeg($file) ;
imagecopyresampled($tn, $image, 0, 0, 0, 0,
$modwidth, $modheight, $width, $height) ; imagejpeg($tn, $save, 100) ;
unlink($target); //Delete our uploaded file echo "Large image: <img src='images/".
$save."'><br>";
}
}
?>
Re: I Need A Secure Image Upload Php Script. Anyone? by cbrass(m): 10:43am On Jul 11, 2014
*coughs* *coughs again* sneezes* coughs agan*.....lord am too young to die nw...back to the topic ,Op it seems I can help yah but we will have to do trade by bartha.
Re: I Need A Secure Image Upload Php Script. Anyone? by olyivy(f): 11:27am On Jul 11, 2014
Joel3:

Name of Character? umm maybe funny.


As for the rest, Yes you are right i have no ideal how to put them togather, but sure i will know a secure one once i sees it.

I doubt that. Seriously!
Re: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m): 2:30pm On Jul 11, 2014
What you need mister op is a complete, secure, mini-application and not a script.
You can easily get scripts online to upload images securely, even better than the nonsense php upload code above, but when it comes to complete solution with frontend, backend, security and all that - you need a programmer or do it yourself.

1 Like

Re: I Need A Secure Image Upload Php Script. Anyone? by Joel3(m): 8:39pm On Jul 11, 2014
olyivy:
I doubt that. Seriously!
by the way are u a guy... Why doubting me?
Re: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m): 3:48am On Jul 12, 2014
Joel3: i have a forum script and I want to integrate image upload option on forum menu, linking to image upload script I will install separately in another directory.

i wouldnt welcomes external link to image files such as [img]<--right here-->[/img].

It will be user friendly. The risk side is that. You know that image upload script has a lot of casualties when it come to security issues. In fact They are the most victims of hacking to gain access to host Server. the script can be easily trick with file name like image.jpg.php since it will be generating a link for each upload then it can easily becomes an open threat.

Google more about it.

image upload is a very dangerous. So a cropping of image and resizing also renaming is a most for top security.
Nay! ordinary pathinfo will tell you the extension of the file. And these days, i dont think there are still professional programmers who ehm do upload a file into a folder, and without any censoring, allow users to link directly to that file? You can simply rename the file with sha1_file technique of many other available techniques.
Also, getimagesize can tell you if it is truly an image or a masquerade. There are other techniques that can handle that as well mind you.

Joel3:

<?php if(isset($_POST['submit'])){
if (isset ($_FILES['new_image'])){
$imagename = $_FILES['new_image']['name'];
$source = $_FILES['new_image']['tmp_name'];
$target = "temp/".$imagename; move_uploaded_file($source, $target); $imagepath = $imagename;
$save = "images/" . $imagepath; //This is the new
file you saving list($width, $height) = getimagesize($target); $modwidth = 500;
$diff = $width / $modwidth;
$modheight = $height / $diff; $tn = imagecreatetruecolor($modwidth,
$modheight) ;
$image = imagecreatefromjpeg($file) ;
imagecopyresampled($tn, $image, 0, 0, 0, 0,
$modwidth, $modheight, $width, $height) ; imagejpeg($tn, $save, 100) ;
unlink($target); //Delete our uploaded file echo "Large image: <img src='images/".
$save."'><br>";
}
}
?>


can someone help to fix this. Seems to be error. A good coder should glance at it. Prove to me you are good. Anyone there are you good. Show it to me...
This your attitude will get you nowhere, If you have just stopped at can someone help to fix this - you would have gotten help already.
Fixing this code does not prove anything, i can even copy and paste solutions directly on internet to solve this problem without writing one line of code.
Re: I Need A Secure Image Upload Php Script. Anyone? by Joel3(m): 4:32am On Jul 12, 2014
ok @dhtml, can you help with a secure ok?
Re: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m): 5:28am On Jul 12, 2014
I already answered you earlier, I cannot do such for free.
Re: I Need A Secure Image Upload Php Script. Anyone? by cbrass(m): 9:20am On Jul 12, 2014
Joel3 you are realy a funny and perhaps a confused guy, why not use the script you pasted above. You want quality without paying, and schooling us on what we already know? Nawa for una o
Re: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m): 9:52am On Jul 12, 2014
Na wetin dey 'tired' (adontire tay tay) me for the guy be that.

(1) (Reply)

Google To Shut Down Its Orkut Social Network Today / I Want To Buy Blog / $1 VPS Hosting Services From Josidel Hosting.

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 35
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.