Jump to content
bambinou1980

Uploading pdf to folder below public_html with php

Recommended Posts

Hello,

 

I am on a shared server and currently developing an app where the admin can upload pdf to a folder.

 

My first problem is that the upload won't happen if this folder is not CHMOD777. But because it is a shared server I am quiet limited with what I can do.

 

My second problem is that I would prefer to have the upload folder below the root level, what can I do for this to happen code wise please? Shall I just treat it as as a normal upload?

 

Thank you,

 

Ben

Share this post


Link to post
Share on other sites

Why not read the php manual for functions that facilitate this?  Try move_uploaded_file for syntax and examples.

Edited by ginerjm

Share this post


Link to post
Share on other sites

We usually help people with their code.  Not write their code.

Share this post


Link to post
Share on other sites

This means that every single guy who ask a question about coding(for guidance) because they are not really sure about the best solution to adopt should actually never post in forum because there is a PHP manual out there......How stupid I am...really sorry. I could not have worked this one by myself, thanks again mate, you are the best.........

Share this post


Link to post
Share on other sites

When you get a coding method written then ask for help to perfect it or improve it. Til then enjoy the learning process.

Share this post


Link to post
Share on other sites

Anyway, we have found codingforums.com and the guys there have answered everything, so now we can move forward.... 

 

Thank you for your time.

Share this post


Link to post
Share on other sites

A lot of coders post multiple forums, doesn't matter where you got help, it matters if that person was willing

Share this post


Link to post
Share on other sites

yes, you are exactly pointing to what i just said, " the guys there have answered everything, so now we can move forward.... ".

 

I never said it matters where I am getting help from, I was pointing to the other forum just to say that the problem has been resolved and that we could all move on.

Edited by bambinou1980

Share this post


Link to post
Share on other sites

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.