Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[REL]HabUpload[REL]

Status
Not open for further replies.
Junior Spellweaver
Joined
Nov 26, 2009
Messages
164
Reaction score
4
Well,this is my first PHP format website script since HTML Retro is useless.
HabUpload is a script that allows you to upload files to your website(/upload) directory.Currently not uploaded to MySQL database.
You can anyhow modify HabUpload so it looks to your fit.

Current supported file upload formats:
GIF
JPEG
PJPEG(For Mozilla Firefox)
You can add more file formats if you like.

Demo:
Download:

I built the Uploader from scratch.

Credits:
70% iCloudz for website layout
30% me for uploader.

Note:
Remember to change to your uploading path or website upload path!
Please rate! 1-10.Hope you all like it although it is a simple PHP work.Its my first.If download link is dead,please post it here.
 
Last edited:
Newbie Spellweaver
Joined
Dec 29, 2008
Messages
18
Reaction score
0
Well,this is my first PHP format website script since HTML Retro is useless.
HabUpload is a script that allows you to upload files to your website(/upload) directory.Currently not uploaded to MySQL database.
You can anyhow modify HabUpload so it looks to your fit.

Current supported file upload formats:
GIF
JPEG
PJPEG(For Mozilla Firefox)
You can add more file formats if you like.

Demo:
Download:

I built the Uploader from scratch.

Credits:
70% iCloudz for website layout
30% me for uploader.

Note:
Remember to change to your uploading path or website upload path!
Please rate! 1-10.Hope you all like it although it is a simple PHP work.Its my first.

Thanks for this! :]
 
Junior Spellweaver
Joined
Mar 14, 2009
Messages
149
Reaction score
31
Very nice!
9/10
But why should i host my images on your service?
Are you better than imageshack.
Assure me^^
 
I'm back!
Joined
Nov 29, 2008
Messages
526
Reaction score
95
Very nice!
9/10
But why should i host my images on your service?
Are you better than imageshack.
Assure me^^

He never said you had to....

He was simply releasing the script he made for a custom upload site.

Obviously he's not "advertising his service"

Anyway,
I really like this. 10/10 mate ;)
 
Junior Spellweaver
Joined
Mar 14, 2009
Messages
149
Reaction score
31
^^ Oh sorry... XD
I never said that he is advertising... oO
 
Crawl Me Maybe
Loyal Member
Joined
Aug 18, 2009
Messages
1,420
Reaction score
386
This is a very simple script.

PHP:
<form action="upload.php" method="POST" enctype="multipart/form-data">

<input type="file" name="image">

<input type="submit" value="Upload Image"></form>

Then you just create a page E.G Upload.PHP and insert this:

PHP:
<?php
// Turn the image that is being uploaded into a varible.
$imagename = $_FILES['image']['name'];

// Copies the image from your web servers temporary file to your web server
copy($_FILES['image']['tmp_name'], "./images/$imagename");

// Send out a message afterwards to say it has been uploaded
echo "Your image has been uploaded and can be viewed here: <br>";
echo "http://localhost/cf/images <hr>";
echo "<b>Preview:</b><br><img src='./images/$imagename'>";
?>
 
Junior Spellweaver
Joined
Nov 26, 2009
Messages
164
Reaction score
4
Nvm.Anyways,thanks.I am also releasing a V2 which you can uplaod files to MySQL database.And download the files from there.But the MySQL Settings,you will have to do it on your own.

---------- Post added at 02:48 PM ---------- Previous post was at 02:39 PM ----------

This is a very simple script.

PHP:
<form action="upload.php" method="POST" enctype="multipart/form-data">

<input type="file" name="image">

<input type="submit" value="Upload Image"></form>

Then you just create a page E.G Upload.PHP and insert this:

PHP:
<?php
// Turn the image that is being uploaded into a varible.
$imagename = $_FILES['image']['name'];

// Copies the image from your web servers temporary file to your web server
copy($_FILES['image']['tmp_name'], "./images/$imagename");

// Send out a message afterwards to say it has been uploaded
echo "Your image has been uploaded and can be viewed here: <br>";
echo "http://localhost/cf/images <hr>";
echo "<b>Preview:</b><br><img src='./images/$imagename'>";
?>

Can you help me to fix this:
Code:
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/grenovid/public_html/upload/download.php on line 32

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/grenovid/public_html/upload/download.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home/grenovid/public_html/upload/download.php:12) in /home/grenovid/public_html/upload/download.php on line 34

Then,my code for those lines are:
PHP:
$data = MYSQL_RESULT($result,0,"data"); 
 $type = MYSQL_RESULT($result,0,"filetype"); 
 Header( "Content-type: $type");

Please tell me how to fix this.
 
Skilled Illusionist
Joined
Oct 7, 2009
Messages
369
Reaction score
46
Website Layout = Habboarchive.net
Website Script = Hotscripts.com
What did you do? Copied the code and moved it..
 
Joined
Jun 15, 2007
Messages
3,154
Reaction score
1,254
Dude, its not down..
For me it don't work anymore.
Change this bit:

Code:
echo "http://localhost/cf/images <hr>";

To your site url. it works for me.

I am not a noob. I know PHP in and out. Just some weird error:

Code:
Warning: copy() [function.copy]: Unable to access in /home/********/public_html/upload/upload.php on line 43

Line 43 code:

Code:
copy($_FILES['image']['tmp_name'], "./uploaded-images/$imagename");

Anyone tell me how to fix this?

~Sean
 
Junior Spellweaver
Joined
Nov 26, 2009
Messages
164
Reaction score
4
HabUpload Version 2-

I need some help.Can anyone help me to fix this error?

URL:

Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/grenovid/public_html/uploader/v3/download.php:9) in /home/grenovid/public_html/uploader/v3/download.php on line 15

If you know how,please add me in msn jian-tin@hotmail.com or pm me.
 
Last edited:
Status
Not open for further replies.
Back
Top