troubleshooting Question

Uploading a file via HTML and PHP on to ftp server

Avatar of piyushdabomb
piyushdabomb asked on
HTMLApache Web ServerServer Software
7 Comments1 Solution214 ViewsLast Modified:

I'm going nuts trying to figure out why this doesn't work. Essentially, I am trying to build a REALLY simple website with just the browse button. User clicks "Browse", selects the file to upload to the server, and after clicking "Upload", the file should be uploaded to the file ftp server.

After researching online for code snippets (since this is the first day I've played with this), I keep getting an invalid file message.

Here are my code snippets. I've attached the 2 files to this message. Could someone tell me where I am going wrong here?....

What I do know are a few things about this ftp server:
> If I go to the ftp://.... , I need to enter a username and password for me to login and manipulate files. If I am uploading a file to a ftp://... server, does it matter if I add a username/password to the upload_file.php file??

 In the *.php file, does anyone know how to add 'error' messages so that after I click on upload, I can actually see what the error message IS?

Otherwise...can someone give me any alternative solutions?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros