PHP, Wordpress, Bluehost... Upload function
Posted: Sun Jun 20, 2010 7:41 pm
Background... I don't know PHP very well at all. I've watched a number of tutorials. I can do basic stuff. I am actively trying to learn just enough to get what I need to do done.
What I am trying to do, is add the upload file function to my wordpress blog. I would like for visitors of my blog to be able to upload a file to me, particularly video and picture files. My blog is hosted on bluehost. Bluehost had a one click install of the wordpress architecture.
Wordpress inherently uses php programming. I added a PHP code plugin that allows me to add PHP code to a widget. This is what I want. I just want to throw a upload button in a column on my blog.
And this is where it gets confusing to me. The code isn't that hard to understand for the upload function. What I'm having a hard time understanding is how to make it work.
Does anyone have any experience with wordpress, and bluehost, that can point me in the right direction? What I need to know how to do, is to make sure that bluehost's set up by default allows uploads in it's installment of PHP, and if not, how to go about changing that. Also, I need to understand where the file structures are by default so that I can make a new folder to copy the files to after the script runs. Where does this folder need to be? And what will the data path look like in the PHP script?
I hope all of this makes sense. I have a general understanding of what I need to accomplish, and a begginer's understanding of PHP, I just need some advice on how to put it all together and make it work on my wordpress blog that's hosted on Bluehost. Any help would be appreciated.
What I am trying to do, is add the upload file function to my wordpress blog. I would like for visitors of my blog to be able to upload a file to me, particularly video and picture files. My blog is hosted on bluehost. Bluehost had a one click install of the wordpress architecture.
Wordpress inherently uses php programming. I added a PHP code plugin that allows me to add PHP code to a widget. This is what I want. I just want to throw a upload button in a column on my blog.
And this is where it gets confusing to me. The code isn't that hard to understand for the upload function. What I'm having a hard time understanding is how to make it work.
Does anyone have any experience with wordpress, and bluehost, that can point me in the right direction? What I need to know how to do, is to make sure that bluehost's set up by default allows uploads in it's installment of PHP, and if not, how to go about changing that. Also, I need to understand where the file structures are by default so that I can make a new folder to copy the files to after the script runs. Where does this folder need to be? And what will the data path look like in the PHP script?
I hope all of this makes sense. I have a general understanding of what I need to accomplish, and a begginer's understanding of PHP, I just need some advice on how to put it all together and make it work on my wordpress blog that's hosted on Bluehost. Any help would be appreciated.