Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    4
    Member #
    29754
    I am just starting out creating websites. I have the site pretty much designed using Sandvox for mac. The only thing I cant figure out is how to allow users to upload .jpeg files. I want to allow people to upload the files but not be able to see them. I have been reading some other sites and I think I need to use PHP? I know very little about coding so please keep this in mind. I read something about creating scripts I think but, again, I don't know what this means.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,724
    Member #
    5580
    Liked
    718 times
    PHP is a server-side scripting language (most people call it programming) that resides
    on your webhost's server. Your scripts will be a mix of your HTML and PHP. I'm guessing
    you don't have a server, so you'll have to edit your stuff on your Mac, upload the files,
    and view them online. You can't execute PHP on your Mac, so you can't do this offline.

    Get yourself a webhost account (better to get one you pay for). Then you start scripting.
    Create your whole site without PHP to begin with. Lay out your pages, make them look
    the way you want, create the upload form (HTML), and then when that is all done, you
    can add the PHP scripting. Get your whole thing online and let us see it.


  4. #3
    Junior Member
    Join Date
    Oct 2011
    Posts
    4
    Member #
    29754
    here is the site: 2012politicaltees.com
    I haven't bought the licence for the design software yet so you can't view the whole site.
    As you can probably gather, I want to allow users to upload their designs. Right now I just have an email address for them to do that but I would really like an "upload" button. I have been looking at http://www.w3schools.com/php/php_file_upload.asp for help but I don't understand what them mean by creating scripts. I read on other sites that I had to put the code into a text file and save it as a .php file and then upload it to my server for it to be executed but I don't know where to put them.

  5. #4
    Junior Member
    Join Date
    Oct 2011
    Posts
    4
    Member #
    29754
    I think I've got most of it worked out. The only thing I'm having problems with is the "upload" script. Where should it be located? I put it in /designs because if I put it in the /uploads folder it says it cant find the file.

  6. #5
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,724
    Member #
    5580
    Liked
    718 times
    The "UploadSingle.php" script goes into the same directory as the page (or form) that they use
    to pick their photo on their PC and click submit. In your case, that's the "designs" directory.

    The "UploadSingle.php" script decides within the script where to store the photos. You can
    edit that location. The directory is stores them in will need to have permissions to write
    to the directory.

    You have some other things you need to think about first.

    1) So the user uploads a photo. How do you know who uploaded it?
    You're going to need some sort of database so that you, the admin person, can view the
    photos on a page, and you know who uploaded them. Maybe on the upload <form>, the user
    also enters their email address and name?

    2) Maybe you have the user register before they upload?
    That would allow you to know who uploaded, because they have to log-in first.

    3) What type of photos do they upload, and how big? filesize, resolution, dimensions?
    Do you specify that? Do you let them upload anything and change the size yourself?
    Are you going to upload the full-size photo, and then save a smaller "thumbnail" photo
    for another page that shows people (or the admin) what has been uploaded?

    4) How to limit people from uploading 5000 porn images and crashing your site?
    Will you have any control over that? Control over spammers and hackers?

    5) The admin person ...
    An admin person (like you) will need to be able to "log-in" and view all uploaded photos,
    who uploaded them, names, dates, and how to contact them. This can be done without
    using email. The admin can do this from any PC, anywhere in the world.

    6) Will the photo(s) be sized by a PHP script to be overlayed on a T-shirt graphic
    that will be shown on a page? Sort of giving users a "rough idea" of what it will look
    like on a shirt(s) (of different colors)?

    As you can see ... I'm making a point to direct you in a direction of either using a
    tried-and-true CMS system like Joomla, Drupal and hiring a professional freelance
    or development firm to do the scripting (programming) for you.

    Since you've told us you really don't even know what a PHP script is, this will be a
    steep learning curve for you. But, don't get me wrong ... I'm impressed that you're
    willing to learn, and take-on a project like this. And you should do that. But, maybe
    you should learn PHP, MySQL, AJAX, JQuery on a different site ... not your t-shirt site.

    We can answer scripting questions and problems, but keep in mind that we won't be
    able to see your scripts online and we can't test-out any of your scripts. All we can do
    is see what you show us. That will be a frustrating way for you to get your site done.

    Finally, (and sorry for my long-winded post), since you know you will be using PHP,
    you can start posting those questions in the PHP section of this forum. That will point
    your questions to the WDF users who take interest in PHP.

    Google is your best friend. For all PHP questions, type PHP first, followed by the thing you need.
    Example: php upload file


  7. #6
    Junior Member
    Join Date
    Sep 2011
    Posts
    21
    Member #
    29405
    This plug-in worked great for me!
    http://www.w3schools.com/php/php_file_upload.asp


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

5000porn

,

allow people to submit photos to website

,

build a website and allow customers to upload their photo

,

how do i create a site with users that can upload files

Click on a term to search for related topics.
All times are GMT -6. The time now is 01:01 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com