|
I just don't get it, whatever happened to simplicity?
I have the php5 and MySQL Bible as well as PHP fast and easy web development. These books are great for the most part, that's how I get started in anything.
I am working on a project here that requires a member (user) to be able to upload their picture so that it can be displaid in their profile. It should be easy enough, or so I thought.
Everything that I have found about how to do this, just is not working the way it should. So, I get on the web to look some more, and all the tutorials that I have seen, only reflect the same methods as the book do.
Everything in these books so far only explain how to use fopen() as a way to ftp into the site and write to or read from an existing document (that is of course unless I am missing something).
There is another way that requires uploading to a temp directory then moving the temp file to the folder that you want to move it to. My hosting service plan does not allow me to use this method.
So here is what I need to do, The user is logged into the system allready and is trying to upload a file. I need that file to be uploaded into the image directory directly, without having to move it from a temp folder at all, but I do need to automaticly give the file a number name and leave it's extension. The number name should be incrimental, based on the images that allready exhist. Then this file name should be entered into the database so that I can call it in the user's profile page.
Any suggestions on how to do this?
Thanks
Mike
__________________
Here's my latest project still in the works, and I need to get rid of this "frame" situation for real. www.prideofaustin.com
|