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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.