₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,092 members, 8,448,616 topics. Date: Monday, 20 July 2026 at 03:32 PM

Toggle theme

Dhtml's Posts

Nairaland ForumDhtml's ProfileDhtml's Posts

1 2 3 4 5 6 7 8 9 10 11 12 13 (of 16 pages)

ProgrammingRe: PHP Interactive (learn And Teach) by dhtml(m): 8:58am On Jul 12, 2014
Adrenaline123: inyavic
i suspect so as well.
ProgrammingRe: Are Nigerian Web Devs Scared Of Java? by dhtml(m): 8:57am On Jul 12, 2014
If is that one, you hear of many developers for naija looking for naija hosting company for N1,000/year.
HealthRe: Baby Who Had Been "Cured" Of HIV Now Has The Virus Resurfacing by dhtml(m): 6:30am On Jul 12, 2014
Na wa o
WebmastersRe: Calling On All Web Designers/developers: Redesign Of Nigeria.gov.ng by dhtml(m): 6:11am On Jul 12, 2014
I wonder why this is still pinned, side-effect of the nairaland fallout mayhaps.
WebmastersRe: Hi. I'm Jide Ogunsanya; Owner Of Ogbongeblog.com. Ask Me Anything! by dhtml(m): 5:33am On Jul 12, 2014
Oga Jide, how do i get free browsing for my ipad?
WebmastersRe: 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.
ProgrammingRe: Are Nigerian Web Devs Scared Of Java? by dhtml(m): 4:54am On Jul 12, 2014
Oh i see, i was thinking he felt that naija developers are lazy and afraid of learning JAVA.
WebmastersRe: 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.
ProgrammingRe: Are Nigerian Web Devs Scared Of Java? by dhtml(m): 3:32am On Jul 12, 2014
webdezzi: so when has any language guaranteed security.
security is the job of the programmer, apps written in java can be as insecure as those written in php.

i write java apps and yes for the web.
the problem with it is the cost of running such apps as you may need at least a vps to get it up

on the plus side for php, a cheap shared server gets you up and running so why wont developers tilt to that direction?

php is as hard to learn as java, none is superior to the other
You are on point bro, I have always found the idea of one being superior amusing and do not wish to waste my time arguing about pointless issues like this.
@op, if you can use JAVA to solve all your problems, then please go ahead, but dont try to force everyone to share your views.
ProgrammingRe: Are Nigerian Web Devs Scared Of Java? by dhtml(m): 2:46pm On Jul 11, 2014
Interesting. I like the fact that most programmers that are not multi-language compliant almost want to promote their primary programming language as the best and most secure and condemn others.
I can use both java and php, but I stick to php for my own professional reasons.
WebmastersRe: A Good And Experienced Website Developer Is Needed For A Job. by dhtml(m): 2:33pm On Jul 11, 2014
Interesting
WebmastersRe: 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.
ProgrammingRe: How I Developed My First iPhone App In 2 Weeks by dhtml(m): 7:14am On Jul 11, 2014
arwontclickit lai lai!
WebmastersRe: 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]
WebmastersRe: 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!
WebmastersRe: I Need A Secure Image Upload Php Script. Anyone? by dhtml(m):
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.
ProgrammingRe: Results For Programming Challenge For Beginners by dhtml(m): 7:39pm On Jul 10, 2014
nnasino: grin grin ;Dwow, this is wonderful. I can't remember winning any competition before. I want to thank the organizers, judges and my fellow contestants for everything. I learnt the basics of jsp and a lot of new things in sql. Thanks to sisqology and everyone, I look forward to the next competition!!
Congratulations! You might win a fried turkey in that one, or a tasty fried chicken as an additional present. I envy you because me I have never WON any competition as far as application development is concerned and i am 'supposed to be quite vast' - it is possible that i never won because i never competed (prefers 'trollin) - NO GUTS, NO GLORY. So congratulations, at least you have accomplished something that I have not.
Maybe, I shall be joining the next competition after-all, and maybe win a Nokia 3310.
ProgrammingRe: A Teaching GIG For ROR Developers And Web Developers by dhtml(m): 6:56pm On Jul 10, 2014
pcguru1: The Criteria is simply interest,intelligence,agility, mindset and the drive, honestly as long as you are interested just go for it, times have changed when i was learning web development, it was dhtml on NL that taught me and advised and then there was no such thing as Udemy, Codeacademy then i had to either photocopy aptech books or read on it online from random places and mostly trial by error. as long you have the drive just apply, Writing code is nothing special even a monkey can do that, what sets anyone apart is the passion and interest. hope i answered well.
which dhtml are you talking about?
ProgrammingRe: Results For Programming Challenge For Beginners by dhtml(m): 6:54pm On Jul 10, 2014
I did not see my name in the results? what-a-ppened? I shall send my account details all the same (because i shall be suing for damages).
WebmastersRe: Seun Please,what Killed NAIRALIST by dhtml(m): 4:43pm On Jul 10, 2014
With atomic bombs too.
WebmastersRe: 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!
ProgrammingRe: A Teaching GIG For ROR Developers And Web Developers by dhtml(m): 3:24pm On Jul 10, 2014
Contemplating. . .nay, imposicant
WebmastersRe: 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') );
ProgrammingRe: Results For Programming Challenge For Beginners by dhtml(m): 11:06am On Jul 10, 2014
zicjoe: dhtml i saw it
What did you see?

Djtm: fried chicken? Ok, looking forward to the surprise.
What? how can i be awarding fried chicken when this is not a cooking competition.
ProgrammingRe: Results For Programming Challenge For Beginners by dhtml(m): 10:29am On Jul 10, 2014
Djtm: Toyota camry, 2014 model cheesy
You want indians to come and compete undercover ni? Just fried ***, wait, it is meant to be a surprise.
ProgrammingRe: Results For Programming Challenge For Beginners by dhtml(m): 9:39am On Jul 10, 2014
See you all in the next competition. I might be having a rather interesting surprise for the winner of the next season.
WebmastersRe: A Good And Experienced Website Developer Is Needed For A Job. by dhtml(m): 3:06am On Jul 10, 2014
Trolin'.
Hmn, this site is interesting, i shall do something like this - just for my archives. However, the site has some bugs, some of the links are not working as they should. In fact has many programmatic errors sef, i wonder who made the site sef.
ProgrammingRe: Java online compiler for swing programs by dhtml(m): 10:17pm On Jul 09, 2014
Passing by (arms behind my back)
WebmastersRe: Favicon (request) by dhtml(m): 9:08am On Jul 09, 2014
Thanks for the compliment,
And yes, i think he should pay the other guy. At least i have tried by providing 2 different free versions for him Free-Of-Charge.
WebmastersRe: Favicon (request) by dhtml(m): 5:55am On Jul 09, 2014
@op, you should be able to pay these guys for a good service nau? Meanwhile, you should have titled your thread- i need a favicon for free.
Hmn, let me give you a free second option.

WebmastersRe: Favicon (request) by dhtml(m): 7:46pm On Jul 08, 2014
In summary, soup wey sweet, na money kill am!

1 2 3 4 5 6 7 8 9 10 11 12 13 (of 16 pages)