Raised This Month: $ Target: $400
 0% 

calling all PHP coders!!!!


Post New Thread Reply   
 
Thread Tools Display Modes
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 08-18-2009 , 18:25   Re: calling all PHP coders!!!!
Reply With Quote #11

Quote:
Originally Posted by 8088 View Post
Because I added it.
traitor
__________________
minimiller is offline
Send a message via MSN to minimiller
vivalavida
Senior Member
Join Date: Jan 2009
Location: Fairfield County, CT
Old 08-18-2009 , 21:48   Re: calling all PHP coders!!!!
Reply With Quote #12

now, who wants to put together the clump of code 8088 gave me!
__________________
ew its sticky!
vivalavida is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 08-19-2009 , 17:22   Re: calling all PHP coders!!!!
Reply With Quote #13

Quote:
Originally Posted by vivalavida View Post
now, who wants to put together the clump of code 8088 gave me!
you

Uploading files is not a part of PHP, processing them and using them is.

If I get the time I might do it. ( It's EXTREMELY simple, you could probably do it yourself. )

Last edited by [ --<-@ ] Black Rose; 08-19-2009 at 17:28.
[ --<-@ ] Black Rose is offline
fang
Senior Member
Join Date: Nov 2007
Location: New Jersey
Old 08-19-2009 , 17:28   Re: calling all PHP coders!!!!
Reply With Quote #14

Quote:
Originally Posted by Superiority View Post
you
Way to be a waste of space.

@Vivalavida
http://github.com/digitarald/digitar...ad/tree/master

I'm assuming you just need to download and upload the required files into a directory on your web hosting :\

In the showcase/all-inclusive folder there's some files that display uploading sequences and settings. So I'm assuming there's a config file in there somewhere as well.
fang is offline
vivalavida
Senior Member
Join Date: Jan 2009
Location: Fairfield County, CT
Old 08-19-2009 , 22:57   Re: calling all PHP coders!!!!
Reply With Quote #15

ok i actually read the majority of the link 8088 gave me an its JUST the upload code NOT the code to actually save it on the host / rename it

all it is right now is a sexy looking upload box and progress bar that saves the file with flash cookies not on the ACTUAL HOST
__________________
ew its sticky!
vivalavida is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 08-20-2009 , 05:45   Re: calling all PHP coders!!!!
Reply With Quote #16

Really simple:
PHP Code:
<html>
<
body>
<
center>
<
table border=0>
<
tr><td>
<
H2>Simple</H2>
</
td></tr>
<
tr><td>
<
form action="upload.php" method="post" enctype="multipart/form-data">
<
input type="hidden" name="MAX_FILE_SIZE" value="3145728" />
<
input type="file" name="file" id="file" />
<
input type="submit" name="submit" value="Upload" />
<
br /><font size=-1>Max file size is 3MB</font>
</
form>
</
td></tr>
</
table
</center>
</
body>
</
html
PHP Code:
<html>
<center>
 
<?php
 
do {
 
$file mt_rand() . " - " $_FILES["file"]["name"];
} while ( 
file_exists("uploads/" $file) ); // This loop creates a random name that doesn't exist.
 
$filetype $_FILES["file"]["type"];
 
// Only allow .jpg, .gif, .png & .bmp
if ( ( $filetype == "image/png" || $filetype == "image/gif" || $filetype == "image/jpeg" || $filetype == "image/bmp" ) && $_FILES["file"]["size"] < 3145728 ) {
 
 if ( 
$_FILES["file"]["error"] > )
  die(
"Error: " $_FILES["file"]["error"] . "<br /><a href=\"index.php\">Go back</a>");
 
 else {
  
// Move the file from TEMP dir to the HTTP server.
  
move_uploaded_file($_FILES["file"]["tmp_name"], "uploads/" $file);
 }
 
}
 
else
 die(
"Image file not valid.<br /><a href=\"index.php\">Go back</a>");
 
// Your file is now placed in "uploads" named with a unique temp name ( $file )
 
?>
 
</center>
</html>
If you want to manipulate the image, for example: crop, resize... I suggest ImageMagick. It's free and easy, if you need help with it I could help you.

Last edited by [ --<-@ ] Black Rose; 08-20-2009 at 05:50.
[ --<-@ ] Black Rose is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 08-20-2009 , 08:18   Re: calling all PHP coders!!!!
Reply With Quote #17

Quote:
Originally Posted by crazyeffect View Post
well said
rofl
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
vivalavida
Senior Member
Join Date: Jan 2009
Location: Fairfield County, CT
Old 08-20-2009 , 12:22   Re: calling all PHP coders!!!!
Reply With Quote #18

Quote:
Originally Posted by Superiority View Post
if you need help with it I could help you.
yes please haha ive been insanely buisy lately so i dont really have time for anything these days
__________________
ew its sticky!
vivalavida is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode