Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Image Upload Code

Name: Anonymous 2007-01-07 18:42

I figure people here will likely know the answer...

I'm trying to put together a little image gallery program for some friends using a website I run. I've got HTML, PHP, and an SQL database, but though I know how to write in each language, that doesn't mean I know what to write to put this thing together. I was hoping to find some open source image galleries on sourceforge to give me a clue, but I had no idea the project list on there was so huge.

Query: What open-source image gallery code can I find for PHP/SQL/HTML, and where?

Name: Anonymous 2007-01-07 19:51

After doing some more searching, I think I should clarify two things.

First, I need to be able to let users upload images as well as simply have something that makes a directory of images viewable.

Second, and relevant to more of the results I've been finding, I do not want to use someone else's code. I want good examples of code that allow me to write it myself. I'm not going to stick someone else's scripts on my site. The more advanced the script is, the harder it is to learn how to actually do anything just by reading through it.

Name: Anonymous 2007-01-07 20:01

First learn a better language. It's too easy to write something that can be exploited.

Using PHP for webpages is like believing that pulling out will prevent you from catching AIDS.

Name: Anonymous 2007-01-07 20:57

>>4

It will prevent you from catching AIDS

Name: Anonymous 2007-01-07 20:57 (sage)

>>4
It's too easy to write something that can be exploited.

Name: Anonymous 2007-01-07 21:06

#!/usr/bin/perl
use HTTP::Request;
my $file = "~/.bashrc"
my $request = POST 'http://youaregay.com/imageupload.php';,
                Content_Type => 'form-data',
                Content      => [ submit  => 'submit',
                        userfile   => [$file,basename($file)],
                ];

Name: Anonymous 2007-01-08 7:50

bump

Name: Anonymous 2007-01-08 18:35

>>8
Didn't expect someone else to bump my thread...

>>4
Noted for future use, but for right now the entire site is password-protected, has no registration, and I know where most of the users live. I'm only worried about functionality.

Oh, and saying "learn a better language" is more useful if you mention a better language. Obviously, I don't know of one, or I'd be learning it instead.

Name: Anonymous 2007-01-08 18:56

Pretty much any of the popular scripting languages, >>9. You hear about them all the time: Python, Ruby, and even (egads) Perl. It's a lot easier to write secure code in any of the above-mentioned compared with PHP, and here's an excellent excuse to learn one.

A language is a tool, not your lover. Don't become emotionally attached to one.

Name: Anonymous 2007-01-08 19:16

Errr since when PHP is less secure than Ruby/Perl ?

Name: Anonymous 2007-01-08 19:22

Where have you been, >>11? It's widely known. Shit, even the idiots on slashdot know it.

For your edification, here's just one of the problems: http://4-ch.net/code/kareha.pl/1120533289/9

Name: Anonymous 2007-01-08 19:45 (sage)

>>12
idiot.

Name: Anonymous 2007-01-08 20:00

I guess by idiot you mean I'm wrong.

Okay, explain away, >>13.

Name: Anonymous 2007-01-08 20:04 (sage)

>>14

Quoting one of the anonymouses from 4-ch :

"It's so cute how he blames it on the programming language instead of the crap libraries and crap code that uses the crap libraries. Nothing wrong with the language (other than a bad case of the ugly stick)"

Name: Anonymous 2007-01-08 20:06

Name: Anonymous 2007-01-08 20:09

>>15
Yeah? So I guess, uh, all those functions that come in the standard library don't count? Things like magic quotes are part of some crap external library too? That's a rather poor excuse.

If a language makes it as easy to write insecure code by default as PHP does, there's a problem. C also rightfully gets scorned for such issues as well.

Don't believe in programmer discipline. Even the best make mistakes.

Name: Anonymous 2007-01-08 20:58

>>17
C is scorned by idiots who are too stupid to understand the power that a lower level language offers.

Name: Anonymous 2007-01-08 21:00

Are you claiming that C code isn't prone to security flaws, >>18?

It's one of the few languages that are vulnerable to smashing the stack (for fun and profit!).

Name: Anonymous 2007-01-09 8:28

>>18
Define "power" in a way that makes me believe you know what the hell you're talking about.

Name: Anonymous 2007-01-09 19:29

Notice: >>18 has been pwned by >>20

Name: Anonymous 2009-01-14 12:28

LISP

Name: Anonymous 2009-03-06 9:46

Learning how to design   something for a   language that should   be a problem   which has time   complexity O f   o f i   keep going down   with a crash   in my computer   science course One   of the hottest   ones got an   enormous amount of   existence the sidebar   the cursor will   turn into a.

Name: Anonymous 2010-12-17 1:40

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2010-12-26 20:33

Name: Sgt.Kabu扌獘kimanꊫ� 2012-05-28 21:33

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List