Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Sun Dec 24, 2006 8:30 pm Reply with quote

Does anybody have some examples for me to study?

I have been looking at this example but it doesn't seem to fit my needs.

http://php.about.com/od/advancedphp/ss/php_file_upload.htm

At least I can't get it to work.

I want to utilize file upload in a module I am making. The files are images I need uploaded to an images/map directory.

Can you have the form and the upload part of the script on the same page?
 
View user's profile Send private message Visit poster's website ICQ Number
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Sun Dec 24, 2006 10:21 pm Reply with quote

I've looked at Only registered users can see links on this board! Get registered or login!, but Only registered users can see links on this board! Get registered or login! is ranked a little higher.

There are several factors that affect upload, including file size (both in the form settings and in the php.ini settings). You can often restrict by file type, too.

The form and upload can be part of the same php file, but it can't happen without submitting the form unless you use something like AJAX (even then, it's still not really the same form).

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Donovan







PostPosted: Tue Dec 26, 2006 3:50 pm Reply with quote

Trying this out.

My upload page is named MapUpload.php and is located in the admin directory of my module.

It looks like this.

http://www.eto-league.com/MapUpload.txt


I have a page called uploader.php in the same directory.

http://www.eto-league.com/uploader.txt


Then upload.class.php in the same as well.

http://www.eto-league.com/upload.class.txt

I don't think my <form action= is correct in the MapUpload page. It cannot find uploader.php since I have it pointed to ".$admin_file."

I change it to uploader.php and all I get is a blank page that has the url pointed to : http://www.eto-league.com/uploader.php

It also says

Quote:
http://www.eto-league.com/admin.php?op=MapUpload
75.179.154.205
/uploader.php
www.eto-league.com
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)
404
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©