Gamingforce Interactive Forums
85242 35212

Go Back   Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk
Register FAQ GFWiki Community Donate Arcade ChocoJournal Calendar

Notices

Welcome to the Exploding Garrmondo Weiner Interactive Swiss Army Penis.
GFF is a community of gaming and music enthusiasts. We have a team of dedicated moderators, constant member-organized activities, and plenty of custom features, including our unique journal system. If this is your first visit, be sure to check out the FAQ or our GFWiki. You will have to register before you can post. Membership is completely free (and gets rid of the pesky advertisement unit underneath this message).


PHP Help (Upload Script)
Reply
 
Thread Tools
Secret Squirrel
River Chocobo


Member 89

Level 24.44

Mar 2006


Reply With Quote
Old Aug 14, 2008, 06:50 AM 1 #1 of 6
It's definitely doable, and probably isn't overly difficult so it should make a good little project for you to learn php.
  • Split the string $file_name[$i] and grab everything after the period (the extension)
  • Create a big if..then...elfseif block and compare that extension name to the types of files you're allowing to be uploaded (txt, jpg, etc.)
  • In each branch of the if statement, take the variable called $folder, and set it equal to the appropriate folder name (txt,jpg,etc.)

That should be all you need to do, barring any surprises.

Jam it back in, in the dark.
Slightly Dark -- updated weekly with rare out-of-print game music.
Secret Squirrel
River Chocobo


Member 89

Level 24.44

Mar 2006


Reply With Quote
Old Sep 1, 2008, 08:51 AM 1 #2 of 6
You could just tack the foldername onto the end of the url by sticking this line in front of the Echo:

Code:
$full_url .= $folder . "/";


Most amazing jew boots
Slightly Dark -- updated weekly with rare out-of-print game music.
Reply


Exploding Garrmondo Weiner Interactive Swiss Army Penis > Garrmondo Network > Help Desk > PHP Help (Upload Script)

Forum Jump


All times are GMT -5. The time now is 01:11 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2026, vBulletin Solutions, Inc.