Jump to content

How can I upload a user selected file without enabling allow_url_fopen?


FalseProphet

Recommended Posts

I need a way a user can upload a file onto my website(it's a shared site, I believe, but I own the domain), I've tried using the cURL library but it seems a bit over my head at the moment. And everything I tried with it would not result in a file being uploaded into any folder.

 

What can I do what I need? I've searched around and never found anything that worked for me.

allow_url_fopen & curl have nothing to do with file uploading. I also refuse to believe that a Google search of 'php file upload' produced no results for you when I get over 33 million results, with this being the very first one.

allow_url_fopen & curl have nothing to do with file uploading. I also refuse to believe that a Google search of 'php file upload' produced no results for you when I get over 33 million results, with this being the very first one.

It's good that you refuse to believe this since I never said any such thing. I simply said that it produced nothing that would work for me(out of my own stupidity, probably as I am still very new to web development).

 

I receive this warning whenever I use move_uploaded_file:

Warning: move_uploaded_file() [function.move-uploaded-file]: URL file-access is disabled in the server configuration

 

Which is why I added allow_url_fopen in my topic. I thought the two were correlated together.

 

I tried the tizag code and it worked just fine.  :shrug:

The code I was using was near identical except I wasn't using basename().  :rtfm:

I think my problem was CHMOD in the folder not being set by filezilla(it seems to take several attempts to get it to set..).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.